diff --git a/core/01-settings.fragment.php b/core/01-settings.fragment.php index a3930ba..766ae23 100644 --- a/core/01-settings.fragment.php +++ b/core/01-settings.fragment.php @@ -42,7 +42,7 @@ if(!file_exists($settingsFilename)) { if(file_put_contents("peppermint.json", json_encode($settings, JSON_PRETTY_PRINT)) === false) { http_response_code(503); header("content-type: text/plain"); - exit("Oops! It looks like $settings->sitename wasn't able to write peppermint.json to disk.\nThis file contains all of $settings->sitename's settings, so it's really important!\nHave you checked that PHP has write access to the directory that index.php is located in (and all it's contents and subdirectories)? Try\n\nsudo chown USERNAME:USERNAME -R path/to/directory\n\nand\n\nsudo chmod -R 0644 path/to/directory;\nsudo chmod -R +X path/too/directory\n\n....where USERNAME is the username that the PHP process is running under."); + exit("Oops! It looks like $settings->sitename wasn't able to write peppermint.json to disk.\nThis file contains all of $settings->sitename's settings, so it's really important!\nHave you checked that PHP has write access to the directory that index.php is located in (and all it's contents and subdirectories)? Try\n\nsudo chown USERNAME:USERNAME -R path/to/directory\n\nand\n\nsudo chmod -R 0644 path/to/directory;\nsudo chmod -R +X path/to/directory\n\n....where USERNAME is the username that the PHP process is running under."); } } else diff --git a/core/07-unpack.php b/core/07-unpack.php index 40a6481..a34f0af 100644 --- a/core/07-unpack.php +++ b/core/07-unpack.php @@ -13,7 +13,7 @@ if(!file_exists($paths->extra_data_directory) || filemtime(__FILE__) > filemtime($paths->extra_data_directory) || is_directory_empty($paths->extra_data_directory)) { - $error_message_help = "
Have you checked that PHP has write access to the directory that index.php
is located in (and all it's contents and subdirectories)? Try sudo chown USERNAME:USERNAME -R path/to/directory
and sudo chmod -R 0644 path/to/directory; sudo chmod -R +X path/too/directory
, where USERNAME
is the username that the PHP process is running under.
Have you checked that PHP has write access to the directory that index.php
is located in (and all it's contents and subdirectories)? Try sudo chown USERNAME:USERNAME -R path/to/directory
and sudo chmod -R 0644 path/to/directory; sudo chmod -R +X path/to/directory
, where USERNAME
is the username that the PHP process is running under.