install Nginx + MariaDB + PHP-FPM + Phpmyadmin Ubuntu 14.04

Saturday, October 25, 2014 2:28 PM 0 Comments


1. install mariadb server

sudo apt-get install mariadb-server

2. install nginx

sudo apt-get install nginx

3. install php5-fpm

sudo apt-get install php5-fpm  php5-mysql php5-curl php5-gd php-pear php5-imagick php5-mcrypt php5-memcache php5-sqlite

4. Config Nginx

- backup default config file /etc/nginx/sites-available/default

mv /etc/nginx/sites-available/default /etc/nginx/sites-available/default.bak

- edit file /etc/nginx/sites-available/default for config nginx pass fastcgi like this config

- restart nginx

5. change permission /usr/share/nginx/html depend on your config

chmod 777 /usr/share/nginx/html

6. test php that work

nano /usr/share/nginx/html/info.php
<?php

phpinfo();


http://localhost/info.php




7. install phpmyadmin

- download phpmyadmin here

- unzip to the folder /usr/share/nginx/html/phpmyadmin

- open http://localhost/phpmyadmin



0 comments: