Advertisement
dedeanshi

PHP 7.2 ubuntu 16.xx

Feb 7th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. # php -v
  2. # apt-get remove php7.0
  3. # apt-get purge php7.0-common
  4. # apt-get remove --auto-remove php7.0
  5. # apt-get update && apt-get upgrade
  6. # apt-get install software-properties-common
  7. # add-apt-repository ppa:ondrej/php
  8. # apt-get update
  9. # apt-get install php7.2
  10. # php -v
  11. # apt-get install php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml
  12. # systemctl restart apache2
  13.  
  14. # sudo apt-get install mysql-server
  15. # mysql_secure_installation
  16.  
  17. # apt-get install phpmyadmin php-mbstring php-gettext
  18. # phpenmod mcrypt
  19. # phpenmod mbstring
  20. # systemctl restart apache2
  21.  
  22. # apt-get install mariadb-server
  23. # mysql -u root -p
  24. > USE mysql
  25. > UPDATE user SET plugin='mysql_native_password' WHERE User='root';
  26. > FLUSH PRIVILEGES;
  27. > SET PASSWORD FOR 'root'@'localhost' = PASSWORD('New-Password');
  28. > quit
  29.  
  30. if database connection error http://avistudcorp.blogspot.com/2017/02/mengatasi-connection-for-controluser-as.html
  31.  
  32. if error 404 permalink module do :
  33. - edit .htaccess (module ON)
  34. - a2enmod rewrite && service apache2 restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement