Guest User

Untitled

a guest
Feb 19th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. Development Environment
  2.  
  3. 1. Init Vagrant
  4.  
  5. 2. Vagrantfile - Config:
  6. config.vm.box = "ubuntu/trusty64"
  7. config.vm.network "forwarded_port", guest: 80, host: 8080
  8. config.vm.network "public_network"
  9.  
  10. 3. Connect to machine using Putty (must convert certificate) - Username: vagrant
  11.  
  12. 4. Run "sudo apt-get update"
  13.  
  14. 5. Install Apache, PHP, PHPLibrary for apahce
  15. Command: "sudo apt-get install -y apache2 php5 libapache2-mod-php5"
  16.  
  17. 6. Install MySQL-Server, -Client, PHP5-MySQL
  18. Command: "sudo apt-get install -y mysql-server mysql-client php5-mysql"
  19. *Enter password for root user of MySQL server (since dev use "root")
  20.  
  21. 7. Change documentroot for apache
  22. Command: "sudo nano /etc/apache2/sites-enabled/000-default.conf"
  23.  
  24. 1. Change "DocumentRoot /var/www/html" to "DocumentRoot /vagrant"
  25.  
  26. 2. Insert:
  27.  
  28. <Directory /vagrant>
  29. Options -Indexes +FollowSymLinks +MultiViews
  30. AllowOverride all
  31. Require all granted
  32. </Directory>
  33.  
  34. 3. Reboot apache
  35. Command: "sudo service apache2 restart"
  36.  
  37. 8. Install rewritemod
  38. Command: "sudo a2enmod rewrite"
  39.  
  40. 9. Install mcrypt
  41. Command: "sudo apt-get install -y php5-mcrypt php5-curl"
  42. Command: "sudo php5enmod mcrypt"
  43.  
  44. 10. Restart apache
  45. Command: "sudo service apache2 restart"
  46.  
  47. 11. Install PHP My Admin
  48. Command: "sudo apt-get install -y phpmyadmin"
  49. *First prompt {TAB + ENTER}, Seccond prompt {NO}
  50.  
  51. 1. Create shortcut for phpmyadmin in vagrant folder
  52. Command: "sudo ln -s /usr/share/phpmyadmin/ /vagrant/"
Add Comment
Please, Sign In to add comment