This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
lamp_setup_and_drupal_installation [2013/06/08 10:10] animesh |
lamp_setup_and_drupal_installation [2018/03/24 11:13] (current) |
||
|---|---|---|---|
| Line 18: | Line 18: | ||
| * If you have Debian OS installed in your system, type su and press enter it will prompt for password, enter your root password | * If you have Debian OS installed in your system, type su and press enter it will prompt for password, enter your root password | ||
| + | |||
| + | * If you have Ubuntu OS installed in your system, type sudo su and press enter it will prompt for password, enter your root password | ||
| * Update package sources | * Update package sources | ||
| Line 28: | Line 30: | ||
| apt-get install apache2 php5 libapache2-mod-php5 php5-gd | apt-get install apache2 php5 libapache2-mod-php5 php5-gd | ||
| - | chmod -R 777 /var/www | + | chmod -R 777 /var/www/html |
| Check if apache is working | Check if apache is working | ||
| /etc/init.d/apache2 restart | /etc/init.d/apache2 restart | ||
| - | nano /var/www/info.php | + | nano /var/www/html/info.php |
| Copy & paste the folowing php code in the nano editor | Copy & paste the folowing php code in the nano editor | ||
| Line 48: | Line 50: | ||
| apt-get install phpmyadmin | apt-get install phpmyadmin | ||
| - | When prompted for a password enter **hello**. | + | When prompted for a password enter **hello** (You can also set your own password). |
| * Creating a MySQL DB & user for your Drupal installation | * Creating a MySQL DB & user for your Drupal installation | ||
| - | mysqladmin -u root -p create d7 | + | mysqladmin -u root -p create d8 |
| - | Enter **hello** when you are prompted for password. If you get a "Database exists" error, please issue "mysqladmin -u root -p drop d7" to delete the existing database and then issue the create command. | + | Enter **hello** (mysql password) when you are prompted for password. If you get a "Database exists" error, please issue "mysqladmin -u root -p drop d8" to delete the existing database and then issue the create command. |
| * Configuring Apache for Clean URLs | * Configuring Apache for Clean URLs | ||
| a2enmod rewrite | a2enmod rewrite | ||
| - | /etc/init.d/apache2 restart | + | |
| - | chmod -R 777 /var/www | + | |
| + | nano /etc/apache2/apache2.conf | ||
| + | |||
| + | |||
| + | <Directory /var/www/> | ||
| + | Options Indexes FollowSymLinks | ||
| + | AllowOverride All | ||
| + | Require all granted | ||
| + | </Directory> | ||
| + | |||
| + | |||
| + | * Restart the apache server | ||
| + | |||
| + | service apache2 restart | ||
| | | ||
| ==Install Drupal== | ==Install Drupal== | ||
| - | * The Drupal is available at http://192.168.1.2/drupal-7.22.tar.gz . | + | * The Drupal is available at http://172.27.2.2 . |
| - | * Do this only if the previous step fails.Download the latest stable version of drupal from http://drupal.org/project/drupal | + | * **Note: Do this only if the previous step fails.**Download the latest stable version of drupal from http://drupal.org/project/drupal |
| * Prepare server for drupal setup | * Prepare server for drupal setup | ||
| - | * Copy the drupal-7.22.tar.gz file to /var/www and uncompress the files so that you get /var/www/drupal-7.22 finally | + | * Copy the drupal-8.x.tar.gz file to /var/www/html and uncompress the files so that you get /var/www/drupal-8.x finally |
| - | * Rename the drupal folder to d7 | + | * Rename the drupal folder to d8 |
| - | * Goto d7/sites/default, create a folder called files so that you have d7/sites/default/files | + | * Goto d8/sites/default, create a folder called files so that you have d8/sites/default/files |
| - | * Copy default.settings.php as settings.php so that you have d7/sites/default/settings.php | + | * Copy default.settings.php as settings.php so that you have d8/sites/default/settings.php |
| * Give 777 permissions to file(apply permissions to enclosed files) & settings.php | * Give 777 permissions to file(apply permissions to enclosed files) & settings.php | ||
| * Install drupal | * Install drupal | ||
| - | * Goto http://localhost/d7 | + | * Goto http://localhost/d8 |
| * Choose **Standard** installation profile and **save and continue** | * Choose **Standard** installation profile and **save and continue** | ||
| * Leave **English** as is and **save and continue** | * Leave **English** as is and **save and continue** | ||
| - | * Give **Database Name** as **d7**, **Database username** as **root** & **Database password** as **hello** for LAMP or leave blank for XAMPP and **Save and continue** | + | * Give **Database Name** as **d8**, **Database username** as **root** & **Database password** as **hello** for LAMP or leave blank for XAMPP and **Save and continue** |
| * configure **Site information** | * configure **Site information** | ||
| * **Site Name** your full name | * **Site Name** your full name | ||
| Line 85: | Line 101: | ||
| * configure **Server settings** | * configure **Server settings** | ||
| * Choose **India** under **Default country** | * Choose **India** under **Default country** | ||
| - | * Choose **Asia/Kolkata: Tuesday, June 21, 2011 - 14:51 +0530** under **Default time zone** and **Save and continue** | + | * Choose **Asia/Kolkata** and **Save and continue** |
| * Now click on **Visit your new site** | * Now click on **Visit your new site** | ||