In many cases, you’re going to see webmasters installing WordPress on Ubuntu 16.04 LTS with Apache2 or Nginx and MariaDB with PHP support… Well, this post shows you how to use an alternative HTTP server called Lighttpd HTTP server instead…
Lighttpd is a secure, fast and flexibly HTTP server with a small memory footprint compared to other web-servers… Its event-driven architecture is optimized for a large number of parallel connections (keep-alive) which is important for high performance dynamic applications..
WordPress, the most powerful and popular content management systems (CMS) is the right tool to develop and build powerful and dynamic websites based on PHP is flexible and can be run on variety or HTTP servers..
This brief tutorial is going to show students and new users how to install WordPress on Ubuntu 16.04 LTS with Lighttpd, MariaDB and PHP 7.1 Support
When you’re ready to setup WordPress with Lighttpd support, follow the steps below:
Step 1: Install Lighttpd HTTP Server
sudo apt install lighttpd
After installing Lighttpd, the commands below can be used to stop, start and enable Lighttpd service to always startup when the server boots up.
After that, run the commands below to install PHP7.1-FastCGI and related PHP modules. There are many PHP modules that perform different functions.. however, these ones below maybe needed when developing PHP based websites.
Then run the commands below to open WordPress configuration file.
sudo nano /var/www/html/wordpress/wp-config.php
Enter the highlighted text below that you created for your database and save.
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
/** Database Charset to use in creating database tables. */
/** The Database Collate type. Don't change this if in doubt. */
Restart Lighttpd services
sudo systemctl restart lighttpd.service
After that, open your browser and browse to your domain name to launch WordPress configuration wizard.
You should see WordPress setup wizard to complete. Please follow the wizard carefully.
Then type the WordPress website name and create a new admin user and password.. the click install.
This should install WordPress.
Congratulations! You’ve successfully installed WordPress on Ubuntu.