📰WordPress configuration

  1. Access the /var/www/html directory with the command:

cd /var/www/html
  1. Copy the file wp-config-sample.php and rename it wp-config.php:

cp wp-config-sample.php wp-config.php
  1. Once we have renamed it we will edit the file wp-config.php:

nano wp-config.php
  1. modify the following values:

You have to replace them with the values that we have previously set when we created the database and the user so that WordPress can connect and make use of it.

  1. We enabled the fastcgi-php module in Lighttpd to improve the performance and speed of web applications on the server:

sudo lighty-enable-mod fastcgi
  1. We enabled the fastcgi-php module in Lighttpd to improve the performance and speed of PHP-based web applications on the server:

sudo lighty-enable-mod fastcgi-php
  1. We update and apply the changes in the configuration with the command:

sudo service lighttpd force-reload
  1. Once we have completed the previous steps we can go back to our browser and type localhost. You should see the following:

  1. We must fill in all the fields. In my case I have put the following:

  1. Once we have filled in all the fields we must click on Install WordPress and we will have finished the installation. You will see the next tab. Now WordPress can create the tables and dump all the data it needs to work in the database we have assigned to it.

  1. If we access again to our localhost from the browser we can see our functional page.

Last updated

Was this helpful?