Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":3018,"date":"2020-01-09T21:26:36","date_gmt":"2020-01-09T21:26:36","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=3018"},"modified":"2020-01-09T21:26:36","modified_gmt":"2020-01-09T21:26:36","slug":"install-drupal-7-on-the-one-click-lemp-application","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/install-drupal-7-on-the-one-click-lemp-application\/","title":{"rendered":"Install Drupal 7 on the One-Click LEMP Application"},"content":{"rendered":"

Introduction<\/h3>\n

Drupal is a popular open-source content management platform. In this article, we will show you how to install Drupal 7 on a AKLWEB HOST server based on the One-Click LEMP application.<\/p>\n

Prerequisites<\/h3>\n

Deploy a One-Click LEMP app on your AKLWEB HOST account. Once the app has finished installing, login as the root user. You may also login as a non-root user, but you will need to use the\u00a0sudo<\/code>\u00a0command throughout this tutorial.<\/p>\n

Step one: Create a database<\/h3>\n

Display the MySQL root password in the terminal, then log into MySQL using that password.<\/p>\n

cat \/root\/.my.cnf\r\nmysql -u root -p\r\n<\/code><\/pre>\n

Setup a MySQL database for Drupal. Substitute the database name (drupal<\/code>) and the username\/password (myusername<\/code>\/mypassword<\/code>) in the example below, if you would like.<\/p>\n

create database drupal;\r\ncreate user 'myusername'@'localhost' identified by 'mypassword';\r\ngrant all privileges on drupal.* to 'myusername'@'localhost' identified by 'mypassword' with grant option;\r\nflush privileges;\r\nexit;\r\n<\/code><\/pre>\n

Step two: Download the Drupal package<\/h3>\n

First, delete the default template files created by AKLWEB HOST.<\/p>\n

cd \/usr\/share\/nginx\/html\/\r\nrm -f background.jpg index.php logo.png\r\n<\/code><\/pre>\n

At the time of writing, the latest stable version of Drupal is 7.37. Download and unzip the Drupal package to a user-friendly directory by running the following commands.<\/p>\n

wget http:\/\/ftp.drupal.org\/files\/projects\/drupal-7.37.tar.gz\r\ntar --strip-components=1 -zxvf drupal-7.37.tar.gz\r\n<\/code><\/pre>\n

Remove the archive file that you just downloaded.<\/p>\n

rm -f drupal-7.37.tar.gz\r\n<\/code><\/pre>\n

Step three: Configure and install Drupal from your browser<\/h3>\n

Before the installation, you need to copy the default configuration file\u00a0default.settings.php<\/code>\u00a0as a new file called\u00a0settings.php<\/code>\u00a0in the same directory. Do not simply rename the default file, because you need both files for the Drupal installation.<\/p>\n

cp sites\/default\/default.settings.php sites\/default\/settings.php\r\n<\/code><\/pre>\n

Also, you need to add write permissions to directory\u00a0sites\/default<\/code>\u00a0and file\u00a0sites\/default\/settings.php<\/code>, or you will encounter a permission error.<\/p>\n

chmod a+w sites\/default\r\nchmod a+w sites\/default\/settings.php\r\n<\/code><\/pre>\n

Visit\u00a0http:\/\/[SERVER_IP]\/<\/code>\u00a0in your browser. Substitute the\u00a0[SERVER_IP]<\/code>\u00a0with the IP address of your VPS. Follow the on-screen instructions to configure Drupal.<\/p>\n

On the step of “Choose profile”, you can choose “Standard” to use the standard settings. If you are an experienced Drupal user, you can choose “Minimal” to customize your installation. Click the button labeled “Save and continue”.<\/p>\n

On the step of “Choose language”, click “Save and continue” to use English (built-in). If you want to use a language other than English, click the “Learn how to install Drupal in other languages” link.<\/p>\n

On the step of “Set up database”, you need to input database parameters as specified below.<\/p>\n

Remember to replace the database name\u00a0drupal<\/code>, the database username\u00a0myusername<\/code>, the database password\u00a0mypassword<\/code>, and the table prefix\u00a0drupal_<\/code>\u00a0with your own ones. Do not modify other fields.<\/p>\n

Database type: MySQL, MariaDB, or equivalent\r\nDatabase name: drupal\r\nDatabase username: myusername\r\nDatabase password: mypassword\r\nDatabase table prefix: drupal_\r\n<\/code><\/pre>\n

On the step of “Configure site”, the installation wizard will notify you to remove write permissions to directory\u00a0sites\/default<\/code>\u00a0and file\u00a0sites\/default\/settings.php<\/code>. Input the following commands in your terminal window:<\/p>\n

chmod a-w sites\/default\r\nchmod a-w sites\/default\/settings.php\r\n<\/code><\/pre>\n

Next, input the site name, site email address, administrator’s username, password, and email address from your browser. Select the default country and time zone. Click “Save and continue” to proceed.<\/p>\n

On the step of “Finished”, click “Visit your new site” to finish the installation.<\/p>\n

That’s it. You have installed Drupal 7 onto your AKLWEB HOST VPS.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[242,245],"manual_kb_tag":[501],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3018"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=3018"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3018\/revisions"}],"predecessor-version":[{"id":3019,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/3018\/revisions\/3019"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=3018"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=3018"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=3018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}