first fixes for webhosting
This commit is contained in:
@ -69,12 +69,11 @@ $line .= "\"";
|
||||
$line .= "\n";
|
||||
|
||||
// prepare error message
|
||||
$user = shell_exec( "whoami" );
|
||||
$emsg = "The webserver has no permissions to read and/or write $file.<br>";
|
||||
$emsg .= "How to fix it:<br>";
|
||||
$emsg .= "~# touch $file<br>";
|
||||
$emsg .= "~# chown $user $file<br>";
|
||||
$emsg .= "~# chmod 644 $file";
|
||||
$emsg .= "1. also copy faccess.log into same directory";
|
||||
$emsg .= "2. ~# chown www-data $file<br>";
|
||||
$emsg .= "3. ~# chmod 644 $file";
|
||||
|
||||
// delete oldest log line if max is reached
|
||||
if( $log = file( $file ) ) {
|
||||
|
Reference in New Issue
Block a user