Skip to content

Instantly share code, notes, and snippets.

@buonzz
Created March 29, 2014 21:53
Show Gist options
  • Save buonzz/9863646 to your computer and use it in GitHub Desktop.
Save buonzz/9863646 to your computer and use it in GitHub Desktop.
usual commands in vagrant box
# to login to local mysql as root
mysql -hlocalhost -uroot -pd3v0p5
# verify php version
php -v
# find the php.ini for cli
php -i | grep php\.ini
# edit which document root folder to use side from webroot (important for Laravel users)
sudo nano /etc/apache2/sites-available/vagrant_webroot
# edit apache config
sudo nano /etc/apache2/apache2.conf
# restart apache
sudo service apache2 restart
# restart mysql
sudo /etc/init.d/mysql restart
# view error log
tail /var/log/apache2/error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment