• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php

Scheduled Pinned Locked Moved Solved
FOG Problems
apache permission
2
3
1.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    RobTitian16
    last edited by RobTitian16 Aug 8, 2018, 8:21 AM Aug 8, 2018, 2:20 PM

    Hi all,

    In my clients recently, the FOG log has been reporting the following error:

    08/08/2018 15:56 Client-Info Client Version: 0.11.16
    08/08/2018 15:56 Client-Info Client OS: Windows
    08/08/2018 15:56 Client-Info Server Version: 1.5.2
    08/08/2018 15:56 Middleware::Response ERROR: Unable to get subsection
    08/08/2018 15:56 Middleware::Response ERROR: Object reference not set to an instance of an object.
    08/08/2018 15:56 Service Sleeping for 110 seconds

    I’ve checked the Apache log, and I can see the following error:
    [Wed Aug 08 15:14:08.956419 2018] [proxy_fcgi:error] [pid 39315] [client 10.1.1.107:58244] AH01071: Got error ‘PHP message: PHP Warning: fopen(/var/log/apache2/error.log): failed to open stream: Permission denied in /var/www/html/fog/status/logtoview.php on line 86\n’

    Running the following check seems to come back OK (ls -la /var/www/html/fog/status/😞
    total 60
    drwxrwxrwx 2 www-data www-data 4096 May 17 07:33 .
    drwxrwxrwx 10 www-data www-data 4096 May 17 09:42 …
    -rwxrwxrwx 1 www-data www-data 3304 May 17 07:33 bandwidth.php
    -rwxrwxrwx 1 www-data www-data 884 May 17 07:33 dbrunning.php
    -rwxrwxrwx 1 www-data www-data 1184 May 17 07:33 freespace.php
    -rwxrwxrwx 1 www-data www-data 1437 May 17 07:33 getfiles.php
    -rwxrwxrwx 1 www-data www-data 772 May 17 07:33 gethash.php
    -rwxrwxrwx 1 www-data www-data 661 May 17 07:33 getservertime.php
    -rwxrwxrwx 1 www-data www-data 813 May 17 07:33 hw.php
    -rwxrwxrwx 1 www-data www-data 587 May 17 07:33 index.php
    -rwxrwxrwx 1 www-data www-data 1515 May 17 07:33 kernelvers.php
    -rwxrwxrwx 1 www-data www-data 4416 May 17 07:33 logtoview.php
    -rwxrwxrwx 1 www-data www-data 830 May 17 07:33 mainversion.php
    -rwxrwxrwx 1 www-data www-data 721 May 17 07:33 newtoken.php

    I’ve restarted Apache, etc. but still this error persists in the log. It’s annoying as I can’t deploy any snapins to my client machines at the moment, which, as you all know, is pretty useful.
    Any help with this would of course be greatly appreciated as always!

    FOG INFO:
    You are currently running version: 1.5.2

    Latest stable version is 1.5.4

    Latest svn version is 6078

    Latest git version is 1.5.4

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Aug 8, 2018, 10:11 PM

      @RobTitian16 Check permissions on your log file: ls -al /var/log/apache2/error.log

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      1 Reply Last reply Reply Quote 0
      • R
        RobTitian16
        last edited by Aug 9, 2018, 11:10 AM

        This can be marked as solved. I updated to 1.5.4 and everything is confirmed to be working once more. Thanks!

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 / 1
        • First post
          3/3
          Last post

        203

        Online

        12.0k

        Users

        17.3k

        Topics

        155.2k

        Posts
        Copyright © 2012-2024 FOG Project