Last active
September 18, 2018 15:08
-
-
Save ambercouch/061a3590bc0a6499e178647de4e1a0fb to your computer and use it in GitHub Desktop.
phpMyAdmin on Scotchbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fatal error: Cannot 'break' 2 levels in /usr/share/phpmyadmin/export.php on line 864 | |
vagrant ssh | |
sudo su | |
nano /usr/share/phpmyadmin/export.php | |
# You can solve this issue my modifying line 864, change : | |
# break 2; | |
# to | |
# break; | |
break; | |
[Ctrl] + O | |
[enter] | |
[Ctrl] + x | |
exit | |
vagrant reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant ssh | |
sudo su | |
nano /etc/php/7.0/apache2/php.ini | |
#use the sort cut to find the setting 'memory_limit' and update | |
[ctrl]+[w]memory_li | |
memory_limit 1024M | |
#use the sort cut to find the setting 'post_max_size' and update | |
[ctrl]+[w]post_max | |
post_max_size 256M | |
#use the sort cut to find the setting 'upload_max_filesize' and update | |
[ctrl]+[w]upload_max | |
upload_max_filesize 64M | |
#save the file | |
[ctrl]+[o] | |
#exit nano | |
[ctrl]+[x] | |
#restart apache | |
sudo /etc/init.d/apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ssh into your scotch box (vagrant ssh) | |
#switch to root user (sudo su) | |
#follow the following tutorial | |
#https://www.liquidweb.com/kb/how-to-install-and-configure-phpmyadmin-on-ubuntu-14-04/ | |
vagrant ssh | |
sudo su | |
apt-get -y update | |
apt-get -y install phpmyadmin | |
nano /etc/apache2/apache2.conf | |
#past the following at the bottom of the file | |
#phpMyAdmin Configuration | |
Include /etc/phpmyadmin/apache.conf | |
service apache2 restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
apt-get update | |
apt-get upgrade | |
apt-get install mysql-server-5.6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment