Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. # How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu 12.04
  2.  
  3. #### About Lemp
  4.  
  5. LAMP stack is a group of open source software used to get web servers up and running. The acronym stands for Linux, Apache, MySQL, and PHP. Since the virtual private server is already running Ubuntu, the linux part is taken care of. Here is how to install the rest.
  6.  
  7. #### If any existing lamp installation & you need to upgrade your old server, uninstall all things & backup first all databases & files.
  8.  
  9. * Unistall php, apache2
  10.  
  11. ````
  12. sudo apt-get purge php5*
  13. sudo apt-get purge apache2* or sudo apt-get purge apache2 apache2-utils apache2.2-bin apache2-common
  14. sudo apt-get update
  15. sudo apt-get autoremove
  16. sudo apt-get autoclean
  17. ````
  18.  
  19. * Install apache 2.4 (why 2.4 cause laravel 5.3 needs to 2.4 & latest php version >= 5.6.4)
  20.  
  21. * Update apt & software-properties
  22.  
  23. ````
  24. sudo apt-get update && sudo apt-get install python-software-properties
  25. ````
  26. * add ondrej PPA for apache 2.4 version:
  27. ````
  28. sudo add-apt-repository ppa:ondrej/apache2
  29. ````
  30. * update & install apache
  31. ````
  32. sudo apt-get update
  33. sudo apt-get install apache2
  34. ````
  35. * check apache version
  36. ````
  37. apache2 -v
  38. ## apache 2.4
  39. ````
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement