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":2962,"date":"2019-12-30T09:14:43","date_gmt":"2019-12-30T09:14:43","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2962"},"modified":"2019-12-30T09:14:43","modified_gmt":"2019-12-30T09:14:43","slug":"install-lighttpd-with-php5-and-mysql-llmp-stack-on-ubuntu-14-04","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/install-lighttpd-with-php5-and-mysql-llmp-stack-on-ubuntu-14-04\/","title":{"rendered":"Install Lighttpd with PHP5 and MySQL (LLMP Stack) on Ubuntu 14.04"},"content":{"rendered":"

Lighttpd is a popular event-based web server alternative to Nginx. Lighttpd can be used to serve high traffic sites even on a small VPS.<\/p>\n

Here, I will explain how to install Lighttpd with PHP 5 (PHP5-FPM) and MySQL on Ubuntu 14.04.<\/p>\n

Step 1: Install Lighttpd<\/h3>\n

Install Lighttpd with the following commands.<\/p>\n

sudo apt-get update\r\nsudo apt-get install lighttpd\r\n<\/code><\/pre>\n

This will start Lighttpd once the install finishes. You can test the status of the server by accessing the IP address of your VPS in a web browser. Upon success, you will see the Lighttp welcome page.<\/p>\n

If the page does not load, you can force-restart the service.<\/p>\n

sudo service lighttpd start\r\n<\/code><\/pre>\n

Step 2: Install PHP 5<\/h3>\n

Install PHP5 with the following command.<\/p>\n

sudo apt-get install php5-cgi php5-mysql\r\n<\/code><\/pre>\n

Note that the “php5-mysql” package is needed to use MySQL server with PHP.<\/p>\n

Step 3: Enable FastCGI<\/h3>\n

Enable PHP5 CGI modules in Lighttpd with the following commands.<\/p>\n

sudo lighty-enable-mod fastcgi \r\nsudo lighty-enable-mod fastcgi-php\r\n<\/code><\/pre>\n

After enabling the modules, you need to restart the Lighttpd service.<\/p>\n

sudo service lighttpd force-reload\r\n<\/code><\/pre>\n

Step 4: Test PHP integration<\/h3>\n

Test the PHP integration with Lighttpd. To do this, create a test file inside the\u00a0\/var\/www\/<\/code>\u00a0folder.<\/p>\n

nano \/var\/www\/info.php\r\n<\/code><\/pre>\n

Paste the following content into this file.<\/p>\n

<?php phpinfo(); ?>\r\n<\/code><\/pre>\n

Now, access\u00a0http:\/\/[SERVER_IP]\/info.php<\/code>\u00a0in your web browser. If the configuration was setup properly, you will see the PHP info page.<\/p>\n

Step 5: Install MySQL<\/h3>\n

Run the following command to install MySQL server. During the installation, you need to give the administrator password for MySQL root.<\/p>\n

sudo apt-get install mysql-server\r\n<\/code><\/pre>\n

Once the install finishes, install a MySQL database.<\/p>\n

mysql_install_db\r\n<\/code><\/pre>\n

Additionally, you can use the secure MySQL installation by running the following command.<\/p>\n

mysql_secure_installation<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[109,247],"manual_kb_tag":[475],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2962"}],"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=2962"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2962\/revisions"}],"predecessor-version":[{"id":2963,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2962\/revisions\/2963"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2962"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2962"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}