You are not logged in.

#1 2023-08-18 21:51:48

Codegirl99
Member
Registered: 2023-08-18
Posts: 2

Unable to write to wp-config.php file

Greetings everyone,

I am new to Linux operating systems and have recently invested a significant amount of time in learning about Arch Linux. My current goal is to set up my own WordPress server. I diligently followed the installation guide for WordPress on the Arch Linux Wiki, successfully completing all the required steps. However, I have encountered an obstacle at the final stage – creating the last configuration file.

I have meticulously reviewed my actions multiple times to ensure their correctness, yet I remain perplexed as to why this final step is not functioning as expected. Despite conducting extensive research spanning ten pages of Google search results and dedicating ten hours to debugging, I find myself utterly baffled by the root cause of the issue.

Initially, I used Nginx, but to my dismay, I encountered the same setback when experimenting with Apache. I would be immensely grateful for any form of assistance or guidance provided.

The error message I am currently encountering is as follows:


Unable to write to wp-config.php file.

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

Configuration rules for wp-config.php:

// CFG RULES

After you’ve done that, click “Run the installation”.

Run the installation

Last edited by Codegirl99 (2023-08-18 21:58:31)

Offline

#2 2023-08-18 22:01:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: Unable to write to wp-config.php file

Instead of telling us how much time you spent searching and trying to solve this, why not spend some time telling us what you learned from that effort and what you have tried already so we don't need to rehash the same steps.

Without such information, I'd start with the very first result of a google search for that error which would give you the solution; the wiki page you claimed to have followed is also very clear about what must be done to not get that error.

Notably, though, there are two methods outlined in the wiki: which one did you follow?

Last edited by Trilby (2023-08-18 22:02:51)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-08-18 22:40:15

Codegirl99
Member
Registered: 2023-08-18
Posts: 2

Re: Unable to write to wp-config.php file

Trilby wrote:

Instead of telling us how much time you spent searching and trying to solve this, why not spend some time telling us what you learned from that effort and what you have tried already so we don't need to rehash the same steps.

Without such information, I'd start with the very first result of a google search for that error which would give you the solution; the wiki page you claimed to have followed is also very clear about what must be done to not get that error.

Notably, though, there are two methods outlined in the wiki: which one did you follow?

I manually installed WordPress and experimented with both the Nginx and Apache web servers (if this is what you're referring to by "method").

I created the configuration file following the instructions in the wiki. I verified that Apache is running under the user/group combination http/http, and the directory containing the configuration PHP file has the appropriate permissions for that user/group.

I configured the host settings, Apache, MariaDB, and PHP as per the guidelines provided in the wiki: https://wiki.archlinux.org/title/Wordpress

I also revisited the first search result on Google, but I am still unable to comprehend the issue.

While the connection between WordPress and MariaDB is functional, I remain perplexed about the reasons why the PHP file cannot be read/written.

Last edited by Codegirl99 (2023-08-18 22:41:04)

Offline

#4 2023-08-19 02:34:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,462
Website

Re: Unable to write to wp-config.php file

It seems you skipped this section of step 3:

wiki wrote:

If you installed wordpress, then this setup procedure will not have the correct permissions to create the wp-config.php file used by WordPress. You will have to do this step yourself as root using information WordPress will provide.

A page will appear saying WordPress can not write the wp-config.php file. Copy the text in the edit box and open /usr/share/webapps/wordpress/wp-config.php as root in your text editor. Paste the copied text into the editor and save the file.

And after you do that you'll need to follow the subsequent step (again) to set the permissions of that file.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB