Error trying to install wordpress

0

I'm trying to install wordpress on my local server using xampp but I get the following error:

Sorry, but I can’t write the wp-config.php file.

You can create the wp-config.php file manually and paste the following text into it.

Would anyone know how to get around it?

    
asked by anonymous 02.09.2018 / 05:02

2 answers

0

You probably need to set wp-config.php to 644 or 640.

If it's Linux;

sudo chmod 644 wp-config.php

If it's Windows.

Right button on top of file wp-config.php - > Properties - > Security - > Edit - > Add - > Type "All" in the field and give Ok.

    
02.09.2018 / 05:12
0

The error message says that you do not have write permission on the file wp-config.php .

Adding the Apache group www-data to the permissions group of the www directory:

sudo chown -R root:www-data /var/www/html/wordpress-project

And adding your user to this group already solves your problem:

sudo useradd -g www-data usuario
    
02.09.2018 / 05:15