Advertisement
niammuddin

Install Nginx, PHP5, MYSQL, PhpMyAdmin di Ubuntu 12.04 LTS

Jan 2nd, 2014
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. PERSIAPAN
  2.  
  3. sudo apt-get update
  4. sudo apt-get upgrade
  5. sudo apt-get install python-software-properties
  6.  
  7. 1 >> INSTALL NGINX VERSI TERBARU DARI PPA: https://launchpad.net/~nginx/+archive/stable
  8.  
  9. sudo add-apt-repository ppa:nginx/stable
  10. sudo apt-get update
  11. sudo apt-get install nginx
  12.  
  13. 2 >> INSTALL PHP5 DARI PPA: https://launchpad.net/~ondrej/+archive/php5
  14.  
  15. sudo add-apt-repository ppa:ondrej/php5
  16. sudo apt-get update
  17. sudo apt-get install php5-common php5-mysqlnd php5-xmlrpc php5-curl php5-gd php5-cli php5-fpm php-pear php5-dev php5-imap php5-mcrypt
  18.  
  19. CEK VERSI PHP
  20.  
  21. php -v
  22.  
  23. hasilnya -+
  24.  
  25. PHP 5.5.3-1+debphp.org~precise+2 (cli) (built: Aug 27 2013 09:15:48)
  26. Copyright (c) 1997-2013 The PHP Group
  27. Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
  28. with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
  29.  
  30. 3 >> INSTALL MYSQL DARI PPA: https://launchpad.net/~ondrej/+archive/mysql-5.5
  31.  
  32. sudo add-apt-repository ppa:ondrej/mysql-5.5
  33. sudo apt-get update
  34. sudo apt-get install mysql-server mysql-client -y
  35.  
  36. KEMANAN MYSQL INSTALL
  37.  
  38. sudo mysql_secure_installation
  39.  
  40. 4 >> INSTALL PHPMYADMIN TERBARU DARI PPA: https://launchpad.net/~nijel/+archive/phpmyadmin
  41.  
  42. sudo add-apt-repository ppa:nijel/phpmyadmin
  43. sudo apt-get update
  44. sudo apt-get install phpmyadmin
  45.  
  46. cd /usr/share/nginx/html
  47. sudo ln -s /usr/share/phpmyadmin
  48.  
  49. >> SELESAI
  50.  
  51. update:8/24/2014
  52. bila phpmyadmin error "The mcrypt extension is missing. Please check your PHP configuration"
  53.  
  54. # sudo php5enmod mcrypt
  55.  
  56. BY: @niammuddin
  57.  
  58. referensi:
  59. https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04
  60. http://www.lonelycoder.be/nginx-php-fpm-mysql-phpmyadmin-on-ubuntu-12-04/
  61. https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement