$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Error during installation|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Error during installation

matteradmin7PV0评论

I was installing WORDPRESS on my Ubuntu 18.04 LTS and it showed the following which i have tried but has failed to work it out, so help me guys solve it.Thanks

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

I was installing WORDPRESS on my Ubuntu 18.04 LTS and it showed the following which i have tried but has failed to work it out, so help me guys solve it.Thanks

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

Share Improve this question edited Apr 3, 2019 at 21:32 Jean Dedieu Rwasa asked Apr 3, 2019 at 20:56 Jean Dedieu RwasaJean Dedieu Rwasa 112 bronze badges 1
  • 2 Welcome to WordPress Stack Exchange! We love to help you but debugging always needs to be done by you. In your case the error message pretty clearly states what's wrong. So please update your question and tell us what you've tried so far and where exactly you are stuck. Thank you! – norman.lol Commented Apr 3, 2019 at 21:24
Add a comment  | 

1 Answer 1

Reset to default 0

This is probably one for ServerFault, but it's basically because, as the message says, the permissions on the wp-config.php file are incorrect, or the ownership is incorrect. Your webserver is unable to edit the file to save your database details.

Do you have a server control panel, or SSH access? You need Apache or whatever user your server is using to be able to read and write to that file (initially). The file should be 644 initially, but you then want to tighten that down to 440 or 400.

Have a look at the documentation here: https://wordpress/support/article/changing-file-permissions/

You may need to run a chmod or chown on the file.

Alternatively, just edit the file manually and fill our your database connection details.

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far