Skip to content

Instantly share code, notes, and snippets.

@ambercouch
Last active September 18, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambercouch/061a3590bc0a6499e178647de4e1a0fb to your computer and use it in GitHub Desktop.
Save ambercouch/061a3590bc0a6499e178647de4e1a0fb to your computer and use it in GitHub Desktop.
phpMyAdmin on Scotchbox
# 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
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
#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
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