HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   ISPConfig 3.0.5.2 Web Problem (http://www.howtoforge.com/forums/showthread.php?t=61748)

jacopo.cappelli 7th May 2013 12:36

ISPConfig 3.0.5.2 Web Problem
 
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

till 7th May 2013 12:46

Quote:

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

jacopo.cappelli 7th May 2013 15:07

HTML Code:

[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

till 7th May 2013 15:12

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/

jacopo.cappelli 7th May 2013 15:23

I know it but on this virtual server i must do this for have more disk space.
HTML Code:

# 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 Code:

# 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


till 7th May 2013 15:41

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

jacopo.cappelli 7th May 2013 16:07

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


All times are GMT +2. The time now is 01:52.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.