500 Internal Server Error ispconfig 3

Discussion in 'Installation/Configuration' started by med0101, Aug 31, 2016.

  1. Joey Devs

    Joey Devs Member

    Thanks just update to latest ISPCONFIG 3.1.9 and can access now my ISPCONFIG. my problem now all in web owner www-data
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    See post #13, I posted instructions what you can do to get the correct permissions back for the websites.
     
  3. Joey Devs

    Joey Devs Member

    I can't find update permission. Under System, Server Config, can you make screenshots Sir. thanks
     
  4. Joey Devs

    Joey Devs Member

    Sorry I got yah.
    Update: After resyncronized still the owner of all web is www-data
     

    Attached Files:

    Last edited: Dec 22, 2017
  5. Joey Devs

    Joey Devs Member

    What if I root all web owner
    IS this command safe?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    This would not make it any better. These directories shall not be owned by root.

    And you enabled the option that permissions shall be changed on update under System > server config > web first? When this option is not enabled, then a resync cannot change permissions.
     
  7. Joey Devs

    Joey Devs Member

    Yes just check the set folder permission update. Check my attachment if right.

    All permission is ok but the owner is www-data
    what if I try this command
    Just change web1:client1 to the client registered in your ispconfig each website
     

    Attached Files:

  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Doing a chown manually is probably the only way to restore permission then when the resync did not work. Here an example on how the permissions should look like:

    Code:
    root@server1:/var/www/clients/client0/web1# ls -la
    total 40
    drwxr-xr-x 10 root root    4096 Dec 14 22:06 .
    drwxr-xr-x  5 root root    4096 Sep 24 16:25 ..
    drwxr-xr-x  2 web1 client0 4096 Sep 19 16:36 cgi-bin
    drwxr-xr-x  2 root root    4096 Dec 16 00:00 log
    drwx--x---  2 web1 client0 4096 Sep 19 16:36 private
    drwx------  2 web1 client0 4096 Dec 14 22:06 .ssh
    drwxr-xr-x  2 root root    4096 Sep 19 16:36 ssl
    drwxrwx---  2 web1 client0 4096 Sep 19 16:36 tmp
    drwx--x--x  4 web1 client0 4096 Sep 23 08:14 web
    drwx--x---  2 web1 client0 4096 Sep 19 16:36 webdav
    root@server1:/var/www/clients/client0/web1#
    
    Please note that username and group for each site is different. you can see the required user and group in the path when you use the 'real' paths in /var/www/clients/ to access the site.

    /var/www/clients/client0/web1

    the group name is 'client0' in this case and the username is 'web1'.
     
  9. Joey Devs

    Joey Devs Member

    than
    here's mine

    Code:
    drwxr-xr-x 10 root     root      4096 Dec 22 10:16 .
    drwxr-xr-x  3 www-data www-data  4096 Aug 21 15:06 ..
    drwxr-xr-x  2 web1     client0   4096 Aug 21 15:06 cgi-bin
    drwxr-xr-x  2 www-data www-data  4096 Dec 22 04:04 log
    drwx--x---  2 web1     client0   4096 Aug 21 15:06 private
    drwx------  2 web1     client0   4096 Dec 22 10:16 .ssh
    drwxr-xr-x  2 root     root      4096 Aug 26 13:52 ssl
    drwxrwx---  2 web1     client0  12288 Dec 22 00:00 tmp
    drwx--x--x 23 web1     client0   4096 Dec 22 04:30 web
    drwx--x---  2 web1     client0   4096 Aug 21 15:06 webdav
    root@blah:/var/www/www
    So the command is
    this could get back the owner in all directory?
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, this should fix the ownerships of the files and folders that you uploaded to the website. as you can see from your post, the ownerships of the other directories were fixed by the resync already. Just the log directory should be changed as well with:

    chown web1:client0 /var/www/clients/client0/web1/web

    (do not use -R option for the log dir, for the web dire -R is fine).
     
  11. Joey Devs

    Joey Devs Member

    Thanks for the clarification but I tried this

    chown web1:client0 /var/www/clients/client0/web1/web

    Code:
    root@materialvpn:~# chown web1:client0 /var/www/clients/client0/web1/web
    chown: cannot access '/var/www/clients/client0/web1/web': No such file or directrory
    
    I found out my client directory is
    chown web1:client0 /var/www/clients/0x3a_0/web1/web

    this work for me
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    The path is quite unusual, you must have changed the path defaults in ISPConfig.
     
  13. Joey Devs

    Joey Devs Member

    btw Thanks my website now running fine and just observing for any error. How about how to change path in ISPCONFIG?
     

Share This Page