

Now manage your databases from phpMyAdmin web interface.

Sudo ln -s /usr/share/phpmyadmin/ /usr/share/nginx/html Here our website root document directory is /usr/share/nginx/html/. The phpMyAdmin installation has been completed.Ĭreate a symbolic link between phpMyAdmin and the website root directory. PhpMyAdmin is a free open-source web interface tool used to manage your databases. Save and exit the file.Now Restart nginx service. # fastcgi_pass unix:/var/run/php5-fpm.sock Sudo nano /etc/nginx/sites-available/defaultįind the line fastcgi_pass unix:/var/run/php5-fpm.sock and change it to fastcgi_pass 127.0.0.1:9000 as shown below.įastcgi_split_path_info ^(.+\.php)(/.+)$ fastcgi_pass 127.0.0.1:9000 To make PHP-FPM use a TCP connection, open the file /etc/php5/fpm/pool.d/modify it to listen = 127.0.0.1:9000. PHP-FPM listens on the socket /var/run/php5-fpm.sock by default.
#PHPMYADMIN NGINX MARIADB INSTALL#
Sudo apt-get install php5 php5-fpm php5-mysqlįind the line ‘cgi.fix_pathinfo=1′, uncomment it and change the value 1 to 0.Ĭreate a sample “info.php” file in nginx document root folder. PHP (recursive acronym for PHP: Hypertext Pre-processor) is a widely used open-source general purpose scripting language that is especially suited for web development and can be embedded into HTML.

Sudo service mysql status Step : 3 Install PHP # Check if MariaDB is running or not, using the following command: # Check the MariaDB version using command:
#PHPMYADMIN NGINX MARIADB PASSWORD#
Sudo apt-get install mariadb-server mariadb-clientĭuring installation set database ‘root’ user password set password. # For Installing MariaDB enter this command in the terminal. Sudo service nginx restart Step 2 : Install MariaDB!Ī drop in replacement for MySQL and a reliable SQL server, MariaDB comes with a rich set of enhancements that makes it more robust and scalable. Nginx: configuration file /etc/nginx/nf test is successful Nginx: the configuration file /etc/nginx/nf syntax is ok Test the nginx configuration for any syntax errors using command: # NOTE: You should have "cgi.fix_pathinfo = 0 " in php.iniįastcgi_pass unix:/var/run/php5-fpm.sock Īdded an extra line ‘try_files $uri =404 ’ to prevent zero day exploits. Uncomment and modify the following lines as shown below. Under the Server section, as shown below add index.php line. The default vhost (server block) is defined in the /etc/nginx/sites-available/default file. Open the file /etc/nginx/nf and enter the following command in terminal Open up web browser and navigate to or a screen with message Welcome to Nginx! Here's a look at how I configured a LEMP server on Ubuntu 14.04.
