

Then execute mysql_secure_installation command to make your MySQL installation even more secure. You will be asked to provide root password for MySQL.
#INSTALL DRUPAL INSTALL#
4) Install MySQL sudo apt-get install mysql-server mysql-client You have installed Nginx with PHP-FPM on your server. Zend Engine v2.3.0, Copyright (c) 1998-2014 Zend TechnologiesĬongratulations! Most difficult part of installation is now over. Execute the following command: sudo echo "PATH=/opt/PHP-5.3/bin:\$PATH" > ~/.bashrcĮxecute the following command to make sure that PHP is not in your executable path: There is one more thing that we need to do that will come in handy later.

You must be able to see the PHP configuration similar to the image below: Now go to the browser again and reload the webpage. Let's create an index.php file in /usr/share/nginx/html folder and put the following content in it: You are seeing this error because there is no index.php file in /usr/share/nginx/html folder. This means that Nginx and PHP-FPM are working well together. Now go to the server using the browser and you show see the following error: You should be able to see php-fpm processes that were started automatically. Once the server is back up, execute the following command: ps aux | grep php-fpm Now execute the following command so that PHP-FPM will be started automatically after the service reboots. Make the above file executable by everyone. Assuming that your Drupal root directory is going to be /usr/share/nginx/html, open the file /etc/nginx/sites-available/default, delete everything in it and paste the following configuration in it. 1) Get the latest package information sudo apt-get update 2) Install and configure Nginx sudo apt-get install nginx On top of this, we will install Nginx and MySQL to have a working Drupal 7 website.
#INSTALL DRUPAL HOW TO#
In this article, we will show you how to install PHP 5.3.29 with PHP-FPM from source on Ubuntu 14.04. In that case, you may either need to fix the module or downgrade to a lower version of PHP. Although Drupal 7 core works on PHP 5.5, some contributed modules may not. Ubuntu 14.04's package manager (apt) installs PHP 5.5 by default.
