New Server


  • Testers

    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

  • Senior Developer

    @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.


  • Developer

    @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?


  • Testers

    The web page also continues to show 403 forbidden.


  • Testers

    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

  • Senior Developer

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


  • Senior Developer

    You didn’t copy the fund command properly.


  • Testers

    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’


  • Senior Developer

    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 {} \;
    

  • Developer

    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)


 

425
Online

5.4k
Users

12.6k
Topics

118.9k
Posts