first fixes for webhosting

This commit is contained in:
2018-11-16 15:06:39 +01:00
parent 54bfc7fbbb
commit ce6ee27936
2 changed files with 4 additions and 4 deletions

View File

@ -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 ) ) {