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

New Server

Scheduled Pinned Locked Moved Solved
FOG Problems
3
10
4.1k
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.
  • J
    Joseph Hales Testers
    last edited by Oct 23, 2015, 7:29 PM

    Setup some new hardware today I think I am missing somthing obvious I installed ubuntu with a storage drive mounted as /images then installed fog 1.2 set permissions for the images directory ie. but now I am unable to access the fog management page all i get is.

    Forbidden

    You don’t have permission to access /fog/management on this server.

    root@934fog1:~# sudo touch /images/.mntcheck
    root@934fog1:~# sudo touch /images/dev/.mntcheck
    root@934fog1:~# sudo chown -R root:root /images
    root@934fog1:~# sudo chmod -R 777 /images

    RTFM

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Oct 23, 2015, 7:35 PM

      Do you see anything in the apache error_log? Please try restarting apache to see if you get any errors: service apache restart (or maybe apache2)

      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
      • T
        Tom Elliott
        last edited by Tom Elliott Oct 23, 2015, 1:40 PM Oct 23, 2015, 7:36 PM

        Sounds like the web folder has improper permissions . Try

        sudo chmod -R 755 /var/www/html
        sudo find /var/www/html -type f -exec chmod 644 {} \;
        

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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 1
        • J
          Joseph Hales Testers
          last edited by Oct 23, 2015, 7:39 PM

          chmod: cannot access ‘/var/www/fog’: Too many levels of symbolic links
          root@934fog1:~# sudo find /var/www/html -type f -exec chmod 644 {};
          find: missing argument to `-exec’

          RTFM

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Oct 23, 2015, 7:40 PM

            You didn’t copy the fund command properly.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            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

            T 1 Reply Last reply Oct 23, 2015, 7:41 PM Reply Quote 0
            • T
              Tom Elliott @Tom Elliott
              last edited by Oct 23, 2015, 7:41 PM

              @Tom-Elliott updated the command I gave a bit below.

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              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
              • J
                Joseph Hales Testers
                last edited by Oct 23, 2015, 7:59 PM

                After commands apache2 fails to restart here is the apache error log.

                [Fri Oct 23 14:24:26.511019 2015] [core:error] [pid 2403] [client 10.200.32.18:63439] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/fog
                [Fri Oct 23 14:41:48.982413 2015] [mpm_prefork:notice] [pid 2400] AH00169: caught SIGTERM, shutting down
                [Fri Oct 23 14:41:50.072348 2015] [mpm_prefork:notice] [pid 6813] AH00163: Apache/2.4.16 (Ubuntu) configured -- resuming normal operations
                [Fri Oct 23 14:41:50.072387 2015] [core:notice] [pid 6813] AH00094: Command line: '/usr/sbin/apache2'
                [Fri Oct 23 14:41:59.618161 2015] [core:error] [pid 6816] [client 10.200.32.18:56969] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/fog
                [Fri Oct 23 14:43:13.083367 2015] [core:error] [pid 6817] [client 10.200.32.18:57001] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/fog
                [Fri Oct 23 14:43:31.093977 2015] [mpm_prefork:notice] [pid 6813] AH00169: caught SIGTERM, shutting down
                [Fri Oct 23 14:45:52.701347 2015] [mpm_prefork:notice] [pid 2298] AH00163: Apache/2.4.16 (Ubuntu) configured -- resuming normal operations
                [Fri Oct 23 14:45:52.708395 2015] [core:notice] [pid 2298] AH00094: Command line: '/usr/sbin/apache2'
                [Fri Oct 23 14:53:26.707315 2015] [core:error] [pid 2301] [client 10.200.32.18:62259] AH00037: Symbolic link not allowed or link target not accessible: /var/www/html/fog

                RTFM

                1 Reply Last reply Reply Quote 0
                • J
                  Joseph Hales Testers
                  last edited by Oct 23, 2015, 8:04 PM

                  The web page also continues to show 403 forbidden.

                  RTFM

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by Sebastian Roth Oct 23, 2015, 11:28 PM Oct 24, 2015, 5:21 AM

                    @Joseph-Hales said:

                    Symbolic link not allowed or link target not accessible

                    Please see if you can find out which links you have in your web dir: find -P /var/www/ -type l -exec ls -al {} \;

                    And take a look at your apache config as well /etc/apache/sites-enabled/… Keep your eyes open for FollowSymLinks in the config. Maybe it is disabled in the main config?

                    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

                    T 1 Reply Last reply Oct 24, 2015, 2:05 PM Reply Quote 0
                    • T
                      Tom Elliott @Sebastian Roth
                      last edited by Oct 24, 2015, 2:05 PM

                      @Uncle-Frank I remotes in with Joseph last night. We fixed the issue. Basically he had a link in www and www/html. They both pointed at each other which was causing the problem.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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 2
                      • 1 / 1
                      1 / 1
                      • First post
                        4/10
                        Last post

                      158

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project