From 2284461dedce7b1562f75dffa7ec615a8e4f319d Mon Sep 17 00:00:00 2001
From: bradymiller We will now ensure correct file permissions and directories before starting installation: We will now ensure correct file and directory permissions before starting installation: UNABLE to open file '".realpath($tempFile)."' for writing. UNABLE to open file '".realpath($tempFile)."' for writing. You can't proceed until all above files are ready (world-writable).
\n";
-$errorWritable = 0;
-foreach ($writableFileList as $tempFile) {
- if (is_writable($tempFile)) {
- echo "'".realpath($tempFile)."' file is ready.
\n";
+if ($checkPermissions == "TRUE") {
+ echo "
\n";
+ $errorWritable = 0;
+ foreach ($writableFileList as $tempFile) {
+ if (is_writable($tempFile)) {
+ echo "'".realpath($tempFile)."' file is ready.
\n";
+ }
+ else {
+ echo "
\n";
+ echo "(configure file permissions; see below for further instructions)
\n";
- echo "(configure file permissions; see below for further instructions)
\n";
+ echo "In linux, recommend changing file permissions with the 'chmod 666 filename' command.
\n";
+ echo "Fix above file permissions and then click the 'Check Again' button to re-check files.
\n";
+ echo "
You can't proceed until all above files are ready (world-writable).
\n";
- echo "In linux, recommend changing file permissions with the 'chmod 666 filename' command.
\n";
- echo "Fix above file permissions and then click the 'Check Again' button to re-check files.
\n";
- echo "
UNABLE to open directory '".realpath($tempDir)."' for writing by web server.
\n";
+ echo "(configure directory permissions; see below for further instructions)
UNABLE to find directory '".$tempPath."'.
\n";
- echo "(please create directory; see below for further instructions)
You can't proceed until all above directories exist.
\n";
- echo "In linux, recommend using the 'mkdir directory_name' command
\n";
- echo "Add above marked directories and then click the 'Check Again' button to re-check for directories.
\n";
- echo "
UNABLE to open directory '".realpath($tempDir)."' for writing by web server.
\n";
- echo "(configure directory permissions; see below for further instructions)
You can't proceed until all directories are ready.
\n";
+ echo "In linux, recommend changing owners of these directories to the web server. For example, in many linux OS's the web server user is 'apache', 'nobody', or 'www-data'. So if 'apache' were the web server user name, could use the command 'chown -R apache:apache directory_name' command.
\n";
+ echo "Fix above directory permissions and then click the 'Check Again' button to re-check directories.
\n";
+ echo "
You can't proceed until all directories are ready.
\n";
- echo "In linux, recommend changing owners of these directories to the web server. For example, in many linux OS's the web server user is 'apache', 'nobody', or 'www-data'. So if 'apache' were the web server user name, could use the command 'chown -R apache:apache directory_name' command.
\n";
- echo "Fix above directory permissions and then click the 'Check Again' button to re-check directories.
\n";
- echo "