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":2540,"date":"2019-12-06T14:14:48","date_gmt":"2019-12-06T14:14:48","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2540"},"modified":"2019-12-06T14:14:48","modified_gmt":"2019-12-06T14:14:48","slug":"install-lamp-on-centos","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/install-lamp-on-centos\/","title":{"rendered":"Install LAMP on centOS"},"content":{"rendered":"

LAMP stands for Linux, Apache, MySQL and PHP.<\/span><\/p>\n

Once\u00a0installed<\/strong>\u00a0you will be able to host your website on the sever you have installed LAMP on.<\/p>\n

Step 1: Start by going to your terminal and type the below command.
\n<\/strong>
\nsudo yum install httpd<\/code><\/p>\n

You should see the\u00a0download processing<\/strong>\u00a0before it asks you if you want to install:<\/p>\n

Type\u00a0\u201cy\u201d<\/span>\u00a0and hit Enter.<\/p>\n

Step 2: Start your Apache server by typing:<\/strong><\/p>\n

sudo service httpd start<\/code><\/p>\n

Apache should be installed properly now.\u00a0To check it, navigate to your IP address<\/strong>\u00a0in the address bar of your browser. You should see some form of a\u00a0test page<\/strong>\u00a0letting you know that Apache has installed properly.<\/p>\n

Step 3: Installing MySQL<\/strong><\/p>\n

MySQL is an open source database management system often used to store user data on a web server.<\/p>\n

With your\u00a0terminal still open<\/strong>, type in the following command:<\/p>\n

sudo yum install mysql-server<\/code><\/p>\n

If you are\u00a0running CentOS 7+<\/strong>, then you\u2019ll need to\u00a0install MySQL<\/strong>\u00a0using the following commands:<\/p>\n

yum install http:\/\/dev.mysql.com\/get\/mysql-community-release-el7-5.noarch.rpm
\nyum install mysql-community-server<\/code><\/p>\n

Once\u00a0MySQL is installed<\/strong>, start the service using:<\/p>\n

sudo service mysqld start<\/code><\/p>\n

Next you\u2019ll need to set up a root password:<\/strong><\/p>\n

sudo \/usr\/bin\/mysql_secure_installation<\/code><\/p>\n

When asked for your current root password, leave the field blank and hit Enter. Type\u00a0\u201cy\u201d<\/span>\u00a0and hit Enter again when it asks if you would like to set the root password.<\/p>\n

Set the password<\/strong>\u00a0and be sure to store the password somewhere safe.<\/p>\n

Next you will be asked a series of questions.\u00a0Read through them and determine what you want your answers to be.<\/strong><\/p>\n

Step 4: Installing PHP<\/strong><\/p>\n

PHP is a server-side scripting language<\/strong>\u00a0designed for web development.<\/p>\n

Type the\u00a0command below to install PHP<\/strong><\/p>\n

sudo yum install php php-mysql<\/code><\/p>\n

Then follow the\u00a0prompts to install PHP.<\/strong><\/p>\n

You have now installed LAMP<\/strong><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[231],"manual_kb_tag":[339],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2540"}],"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=2540"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2540\/revisions"}],"predecessor-version":[{"id":2541,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2540\/revisions\/2541"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2540"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2540"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}