ISPConfig 3.0.5.2 Web Problem

Discussion in 'Installation/Configuration' started by jacopo.cappelli, May 7, 2013.

  1. jacopo.cappelli

    jacopo.cappelli New Member

    Hi,
    i've upgrade to ISPConfig 3.0.5.2 but now the admin web panel not work correctly.
    If i try to do some operation as add Website, add ftp user, add mysql database not load the page.
    Other feature works, for example add mail aliases or mail domain.

    After the upgrade i see that the permission of the admin web site is not correct (infact i see the website without css)
    I fix it and assign recursive 755 and www-data:www-data as user.

    I see the correct layout but some features not work.

    Someone can help me?


    Thanks very much,
    Jacopo Cappelli
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Did you made a backup before, as a recursive chown to this user and group destroys the ispconfig setup. ispconfig sites are never owned by this user or group, in no ispconfig version. Also the folders dont have 755 permissions. With thes echanges you opened up your server for hackers, so I highly recommedn to restore the original permissions.

    Regarding your original issue, check the apache error.log
     
  3. jacopo.cappelli

    jacopo.cappelli New Member

    HTML:
    [Tue May 07 15:02:12 2013] [warn] [client 31.197.160.137] mod_fcgid: stderr: PHP Warning:  include_once(/mnt/ispconfig/interface/lib/classes/tools_sites.inc.php): failed to open stream: Permission denied in /mnt/ispconfig/interface/lib/app.inc.php on line 99, referer: https://adminsite:8080/index.php
    [Tue May 07 15:02:12 2013] [warn] [client 31.197.160.137] mod_fcgid: stderr: PHP Warning:  include_once(): Failed opening '/mnt/ispconfig/interface/lib/classes/tools_sites.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/ispconfig/interface/lib/app.inc.php on line 99, referer: https://adminsite:8080/index.php
    [Tue May 07 15:02:12 2013] [warn] [client 31.197.160.137] mod_fcgid: stderr: PHP Fatal error:  Class 'tools_sites' not found in /mnt/ispconfig/interface/lib/app.inc.php on line 100, referer: https://adminsite:8080/index.php
    [Tue May 07 15:02:16 2013] [warn] [client 31.197.160.137] mod_fcgid: stderr: PHP Warning:  include_once(/mnt/ispconfig/interface/lib/classes/tools_sites.inc.php): failed to open stream: Permission denied in /mnt/ispconfig/interface/lib/app.inc.php on line 99, referer: https://adminsite:8080/index.php
    [Tue May 07 15:02:16 2013] [warn] [client 31.197.160.137] mod_fcgid: stderr: PHP Warning:  include_once(): Failed opening '/mnt/ispconfig/interface/lib/classes/tools_sites.inc.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /mnt/ispconfig/interface/lib/app.inc.php on line 99, referer: https://adminsite:8080/index.php
    [Tue May 07 15:02:16 2013] [warn] [client 31.197.160.137] mod_fcgid: stderr: PHP Fatal error:  Class 'tools_sites' not found in /mnt/ispconfig/interface/lib/app.inc.php on line 100, referer: https://adminsite:8080/index.php
    Thanks very much,
    Jacopo
     
  4. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please post the output of:

    ls -la /mnt/ispconfig/interface/lib/app.inc.php

    A problem might be that you dont run ispconfig in its usual location. ISPConfig should be installed in /usr/local/ispconfig/
     
  5. jacopo.cappelli

    jacopo.cappelli New Member

    I know it but on this virtual server i must do this for have more disk space.
    HTML:
    # ls -la /mnt/ispconfig/interface/lib/app.inc.php
    -rwxr-x--- 1 ispconfig ispconfig 10222 May  7 14:51 /mnt/ispconfig/interface/lib/app.inc.php
    
    It's a link
    HTML:
    # ls -alh /usr/local/
    total 40K
    drwxr-xr-x 10 root      root      4.0K Dec 17 12:20 .
    drwxr-xr-x 10 root      root      4.0K Dec 17 12:15 ..
    drwxr-xr-x  2 root      root      4.0K May  7 14:51 bin
    drwxr-xr-x  2 root      root      4.0K Oct  1  2012 etc
    drwxr-xr-x  2 root      root      4.0K Oct  1  2012 games
    drwxr-xr-x  2 root      root      4.0K Oct  1  2012 include
    lrwxrwxrwx  1 ispconfig ispconfig   15 Dec 17 12:20 ispconfig -> /mnt/ispconfig/
    drwxr-xr-x  4 root      root      4.0K Apr 22 09:55 lib
    lrwxrwxrwx  1 root      root         9 Oct  1  2012 man -> share/man
    drwxr-xr-x  2 root      root      4.0K Oct  1  2012 sbin
    drwxr-xr-x  7 root      root      4.0K Dec 17 12:06 share
    drwxr-xr-x  2 root      root      4.0K Oct  1  2012 src
    
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    The permissions and ownership of the file is fine. If php / apache cant read it then php is not running with suexec as user and group ispconfig. Did you choose tor econfigure sevices during update?

    A link miht cause problems with suexec. Better use a bind mount in /etc/fstab to mount /mnt/ispconfig as /usr/local/ispconfig
     
  7. jacopo.cappelli

    jacopo.cappelli New Member

    Resolved!

    I see that the permission problem is on other file: /mnt/ispconfig/interface/lib/classes/tools_sites.inc.php

    Now work correctly.


    Thanks very much,
    Jacopo

    PS for someone that have the same error control that ALL file have as ispconfig:ispconfig user and group
     

Share This Page