Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:installation:drupal_installation [2017/09/07 08:03] Usman Nasir [Drupal Installation] |
litespeed_wiki:installation:drupal_installation [2017/09/07 13:13] Lisa Clarke [Drupal Installation] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Drupal 8 Installation ====== | ====== Drupal 8 Installation ====== | ||
- | This guide will explain how to get up and running with Drupal on LiteSpeed Web Server. | + | This guide will explain how to get up and running with Drupal 8 on LiteSpeed Web Server. |
===== Install PHP modules ===== | ===== Install PHP modules ===== | ||
Line 20: | Line 20: | ||
- | =====Mariadb Installation:===== | + | =====MariaDB Installation:===== |
Install MariaDB: | Install MariaDB: | ||
<code>sudo yum install mariadb-server | <code>sudo yum install mariadb-server | ||
Line 28: | Line 28: | ||
Enter ''$yourpassword'' | Enter ''$yourpassword'' | ||
=====Create Drupal DB Account ===== | =====Create Drupal DB Account ===== | ||
- | Create the Drupal database and your XenForo user/password: | + | Create the Drupal database and your Drupal user/password: |
<code> mysql -u root -p$yourmysqlpassword | <code> mysql -u root -p$yourmysqlpassword | ||
create database drupal; grant all privileges on drupal.* to drupal@localhost identified by 'drupal'; exit;</code> | create database drupal; grant all privileges on drupal.* to drupal@localhost identified by 'drupal'; exit;</code> | ||
Line 35: | Line 35: | ||
===== Set Index File ===== | ===== Set Index File ===== | ||
- | An index file needs to be set in Litespeed web admin console. Navigate to **Virtual Hosts > Select Virtual Host from List > General > Index Files**, click **Edit** on top right, now inside **Index Files** files box enter **index.html,index.php**. | + | An index file needs to be set in the LiteSpeed Web Admin Console. Navigate to **Virtual Hosts > Select Virtual Host from List > General > Index Files**, click **Edit** in the top right corner, and enter **index.html,index.php** in the **Index Files** box. |
{{ :litespeed_wiki:installation:selection_010.png?600 |}} | {{ :litespeed_wiki:installation:selection_010.png?600 |}} | ||
Line 43: | Line 43: | ||
To illustrate setting up Drupal on a vhost we'll use the default virtual host, “Example”. You can download drupal from their official [[https://www.drupal.org/download|download page]]. | To illustrate setting up Drupal on a vhost we'll use the default virtual host, “Example”. You can download drupal from their official [[https://www.drupal.org/download|download page]]. | ||
- | Please note that document root of 'Example' virtual host is **/usr/local/lsws/Example/http/** | + | Please note that the document root of 'Example' virtual host is **/usr/local/lsws/Example/http/** |
If you have downloaded in zip format, use following: | If you have downloaded in zip format, use following: | ||
Line 62: | Line 62: | ||
===== Drupal Installation ===== | ===== Drupal Installation ===== | ||
- | Open browser with URL server_IP:8088/ | + | Open the browser with URL ''<nowiki>http://server_IP:8088/</nowiki>'' |
- | This will start Drupal web installer and it will look something like this: | + | ==== Choose language ==== |
+ | |||
+ | This will start the Drupal web installer and it will look something like this: | ||
{{ :litespeed_wiki:installation:drupal-1.png?600 |}} | {{ :litespeed_wiki:installation:drupal-1.png?600 |}} | ||
- | Select your preferred language and click "Save and Continue". | + | Select your preferred language and click **Save and Continue**. |
- | ** Select an installation profile ** | + | ==== Choose profile ==== |
{{ :undefined:installation-profile.png?600 |}} | {{ :undefined:installation-profile.png?600 |}} | ||
- | Next step is to choose installation profile, you have two options here: | + | Select your installation profile. You have two options here: |
* Standard. | * Standard. | ||
* Minimal. | * Minimal. | ||
- | Standard would be fine for most users, with minimal you will have the options to install all required functionalities manually, for now, you should select Standard. | + | Standard would be fine for most users. With Minimal, you will have the option to manually choose which functions to install. For now, you should select Standard. |
- | ** Requirements ** | + | ==== Verify requirements ==== |
- | On next step, Drupal check if all the requirements are met on the server side. First make sure to create following file ''sites/default/settings.php'', you can do that using ''cp sites/default/default.settings.php sites/default/settings.php''. | + | On the next step, Drupal checks if all of the requirements are met on the server side. First, make sure to create a settings file using the following command: |
- | Second, you need to make sure that the folder which contains Drupal (and all folders/files inside it) must be owned by the user under which web server runs, in this case user ''nobody''. | + | cp sites/default/default.settings.php sites/default/settings.php |
- | Once the requirements are met you will be redirected to enter database information. | + | Second, make sure that the folder which contains Drupal (and all folders/files inside of it) is owned by the user under which the web server runs, in this case user ''nobody''. |
- | **Database Configuration** | + | Once the requirements are met you will be directed to enter database information. |
- | {{ :litespeed_wiki:installation:drupal-db.png?600 |}} | + | ==== Set up database ==== |
+ | {{ :litespeed_wiki:installation:drupal-db.png?600 |}} | ||
- | We've created database above, just enter the database details and click "Save and continue". If Drupal installer is successfully able to connect to the database, it will start the installation process. | ||
- | ** Configure site ** | + | We've created the database above. Just enter the database details and click **Save and continue**. If the Drupal installer is successfully able to connect to the database, it will start the installation process. |
- | On this step installer will let you configure settings for your site, example settings are: | + | ==== Configure site ==== |
- | **Site name:** Litespeedtech | + | On this step, the installer will let you configure settings for your site. Example settings are: |
- | **Site email address:** drupal@example.com | + | |
- | **Username:** litespeedtech | + | |
- | **Password:** litespeedtech | + | |
+ | * **Site name:** ''Litespeedtech'' | ||
+ | * **Site email address:** ''drupal@example.com'' | ||
+ | * **Username:** ''litespeedtech'' | ||
+ | * **Password:** ''litespeedtech'' | ||
- | Once you are satisfied, you can finally click "Save and continue" and your installation is successfully completed, you will now be redirected to Drupal homepage, which looks something like: | + | Once you are satisfied, you can finally click **Save and continue** and your installation is successfully completed. You will now be redirected to the Drupal homepage, which looks something like: |
{{ :litespeed_wiki:installation:drupal-installed.png?600 |}} | {{ :litespeed_wiki:installation:drupal-installed.png?600 |}} | ||