mshannaq

ubuntu install apache2 mysql php

Feb 20th, 2019
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. sudo apt-get install apache2 -y
  2. sudo systemctl start apache2.service
  3. sudo update-rc.d apache2 defaults
  4.  
  5. sudo apt-get install mysql-server -y
  6. sudo /usr/bin/mysql_secure_installation
  7. sudo apt-get install php php-mbstring php-mcrypt php-curl php-mysql php-bz2 php-zip php-gd php-intl php-bcmath -y
  8. sudo apt-get install libapache2-mod-php -y
  9. sudo systemctl enable apache2.service
  10. sudo systemctl enable mysql.service
  11. systemctl restart apache2.service
  12. sudo a2enmod rewrite <-- enable mod_rewrite to diable sudo a2dismod rewrite
  13.  
  14.  
  15. if you want to use multiple php verions in the same box see https://www.tecmint.com/install-different-php-versions-in-ubuntu/
Advertisement
Add Comment
Please, Sign In to add comment