Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Development Environment
- 1. Init Vagrant
- 2. Vagrantfile - Config:
- config.vm.box = "ubuntu/trusty64"
- config.vm.network "forwarded_port", guest: 80, host: 8080
- config.vm.network "public_network"
- 3. Connect to machine using Putty (must convert certificate) - Username: vagrant
- 4. Run "sudo apt-get update"
- 5. Install Apache, PHP, PHPLibrary for apahce
- Command: "sudo apt-get install -y apache2 php5 libapache2-mod-php5"
- 6. Install MySQL-Server, -Client, PHP5-MySQL
- Command: "sudo apt-get install -y mysql-server mysql-client php5-mysql"
- *Enter password for root user of MySQL server (since dev use "root")
- 7. Change documentroot for apache
- Command: "sudo nano /etc/apache2/sites-enabled/000-default.conf"
- 1. Change "DocumentRoot /var/www/html" to "DocumentRoot /vagrant"
- 2. Insert:
- <Directory /vagrant>
- Options -Indexes +FollowSymLinks +MultiViews
- AllowOverride all
- Require all granted
- </Directory>
- 3. Reboot apache
- Command: "sudo service apache2 restart"
- 8. Install rewritemod
- Command: "sudo a2enmod rewrite"
- 9. Install mcrypt
- Command: "sudo apt-get install -y php5-mcrypt php5-curl"
- Command: "sudo php5enmod mcrypt"
- 10. Restart apache
- Command: "sudo service apache2 restart"
- 11. Install PHP My Admin
- Command: "sudo apt-get install -y phpmyadmin"
- *First prompt {TAB + ENTER}, Seccond prompt {NO}
- 1. Create shortcut for phpmyadmin in vagrant folder
- Command: "sudo ln -s /usr/share/phpmyadmin/ /vagrant/"
Add Comment
Please, Sign In to add comment