Skip to content

Commit

Permalink
FIX vari nano, php.ini, phpmyadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
lopadova committed Jan 12, 2022
1 parent f277921 commit 069370c
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/deployment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/homestead-custom.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/markdown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Homestead.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
ip: "192.168.10.10"
memory: 2048
cpus: 2
memory: 3072
cpus: 3
provider: virtualbox
backup: true

Expand Down
11 changes: 9 additions & 2 deletions user-customizations.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ if [ ! -f /usr/local/extra_homestead_software_installed ]; then
if [ -f /etc/nanorc ]; then
sudo rm -f /etc/nanorc
fi
sudo cat /usr/share/nano/scopatz/nanorc/*.nanorc >> /etc/nanorc
#sudo cat /usr/share/nano/scopatz/nanorc/*.nanorc >> /etc/nanorc
sudo cat /usr/share/nano/scopatz/nanorc/*.nanorc | sudo tee -a /etc/nanorc
cd $VAGRANTHOME

#
Expand Down Expand Up @@ -111,11 +112,17 @@ if [ ! -f /usr/local/extra_homestead_software_installed ]; then
# configuring memory_limit && max_execution_time php.ini for 7.4/8.0/8.1
#
sudo sed -i 's/max_execution_time[[:space:]]=[[:space:]]30/max_execution_time=120/' /etc/php/7.4/fpm/php.ini
sudo sed -i 's/max_execution_time[[:space:]]=[[:space:]]30/max_execution_time=120/' /etc/php/7.4/cli/php.ini
sudo sed -i 's/memory_limit[[:space:]]=[[:space:]]512M/memory_limit=4096M/' /etc/php/7.4/fpm/php.ini
sudo sed -i 's/memory_limit[[:space:]]=[[:space:]]512M/memory_limit=4096M/' /etc/php/7.4/cli/php.ini
sudo sed -i 's/max_execution_time[[:space:]]=[[:space:]]30/max_execution_time=120/' /etc/php/8.0/fpm/php.ini
sudo sed -i 's/max_execution_time[[:space:]]=[[:space:]]30/max_execution_time=120/' /etc/php/8.0/cli/php.ini
sudo sed -i 's/memory_limit[[:space:]]=[[:space:]]512M/memory_limit=4096M/' /etc/php/8.0/fpm/php.ini
sudo sed -i 's/memory_limit[[:space:]]=[[:space:]]512M/memory_limit=4096M/' /etc/php/8.0/cli/php.ini
sudo sed -i 's/max_execution_time[[:space:]]=[[:space:]]30/max_execution_time=120/' /etc/php/8.1/fpm/php.ini
sudo sed -i 's/max_execution_time[[:space:]]=[[:space:]]30/max_execution_time=120/' /etc/php/8.1/cli/php.ini
sudo sed -i 's/memory_limit[[:space:]]=[[:space:]]512M/memory_limit=4096M/' /etc/php/8.1/fpm/php.ini
sudo sed -i 's/memory_limit[[:space:]]=[[:space:]]512M/memory_limit=4096M/' /etc/php/8.1/cli/php.ini



Expand Down Expand Up @@ -263,7 +270,7 @@ sudo mv -f $VAGRANTHOME.zshrc-omztemp $VAGRANTHOME.zshrc
#Download and install phpMyAdmin latest version
echo "Installing phpmyadmin lastest version..."
cd /home/vagrant/codephp80
if [ -d /home/vagrant/codephp80 ]; then
if [ -d /home/vagrant/codephp80/phpmyadmin ]; then
echo "remove existent /home/vagrant/codephp80/phpmyadmin directory..."
sudo rm -R --interactive=never phpmyadmin
fi
Expand Down

0 comments on commit 069370c

Please sign in to comment.