📰WordPress configuration
Access the /var/www/html directory with the command:
cd /var/www/html
Copy the file wp-config-sample.php and rename it wp-config.php:
cp wp-config-sample.php wp-config.php
Once we have renamed it we will edit the file wp-config.php:
nano wp-config.php
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.

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
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
We update and apply the changes in the configuration with the command:
sudo service lighttpd force-reload
Once we have completed the previous steps we can go back to our browser and type
localhost
. You should see the following:


If it doesn't work, you can try http://localhost:81
We must fill in all the fields. In my case I have put the following:

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.

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

Last updated
Was this helpful?