Menu

can't safe preferences

simenon s
2018-01-25
2018-01-25
  • simenon s

    simenon s - 2018-01-25

    Hi
    Somehow it does not safe preferences anymore:

    2018/01/25 17:24:49 [error] 14012#14012: *7540 FastCGI sent in stderr: "PHP message: PHP Warning:  file_put_contents(prefs/prefs.var): failed to open stream: Permission denied in /var/www/default/htdocs/rompr/includes/vars.php on line 222
    PHP message: ERROR!              : COULD NOT SAVE PREFS
    PHP message: PHP Warning:  file_put_contents(prefs/prefs.var): failed to open stream: Permission denied in /var/www/default/htdocs/rompr/includes/vars.php on line 222
    

    So i created the file prefs/prefs.var, but now it can not be loaded:

    2018/01/25 17:39:16 [error] 14012#14012: *9042 FastCGI sent in stderr: "PHP message: ERROR!              : COULD NOT LOAD PREFS" while reading response header from upstream, client: 192.168.0.86, server: local, request: "GET /rompr/ HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.socket:", host: "local"
    

    why though?

     

    Last edit: simenon s 2018-01-25
  • Fat German Productions

    I don't know why but 'permission denied' means your webserver does not have permisson to write to the file. I don't know how this could have changed, but that's what the error means.

    Creating an empty file will definitely not work. You should delete the file and check write permissions on the prefs directory.

    Note that on some operating systems read/write access depends on the entire directory tree.
    Some operating systems have an automated process that resets directory permissions on a scheduled basis.
    Perhaps one of the above two reasons might explain it, but the explanation is not really important.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.