ispCP - Board - Support
php is not pharsing - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: System Setup & Installation (/forum-32.html)
+--- Thread: php is not pharsing (/thread-2374.html)

Pages: 1 2


php is not pharsing - Meatwad - 02-09-2008 08:37 PM

hi,

i've upgraded vhcs 2.4.7.1 to ispcp 1.0.0 rc3 with the updatescript. after some problems which i solved, i've got 2 problems now:

1. php is not activated. probably suexec is not starting (suexec.log don't exist). the browser is trying to download the php-file. only the ispcp-subdomain for the interface works
2. when i type a other domain (which runs on ispcp) into my browser i get this error:
Quote:Forbidden

You don't have permission to access /phpinfo.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.3 (Debian) mod_fastcgi/2.4.2 Server at XXXX.de Port 80


what can i do?

here some me mor infos:
Quote:vps2:/etc/apache2/mods-enabled# ls -l
total 0
lrwxrwxrwx 1 root root 30 Feb 9 01:29 actions.load -> ../mods-available/actions.load
lrwxrwxrwx 1 root root 28 Feb 9 01:20 alias.load -> ../mods-available/alias.load
lrwxrwxrwx 1 root root 33 Feb 9 01:20 auth_basic.load -> ../mods-available/auth_basic.load
lrwxrwxrwx 1 root root 33 Feb 9 01:20 authn_file.load -> ../mods-available/authn_file.load
lrwxrwxrwx 1 root root 36 Feb 9 01:20 authz_default.load -> ../mods-available/authz_default.load
lrwxrwxrwx 1 root root 38 Feb 9 01:20 authz_groupfile.load -> ../mods-available/authz_groupfile.load
lrwxrwxrwx 1 root root 33 Feb 9 01:20 authz_host.load -> ../mods-available/authz_host.load
lrwxrwxrwx 1 root root 33 Feb 9 01:20 authz_user.load -> ../mods-available/authz_user.load
lrwxrwxrwx 1 root root 32 Feb 9 01:20 autoindex.load -> ../mods-available/autoindex.load
lrwxrwxrwx 1 root root 26 Feb 9 02:27 cgi.load -> ../mods-available/cgi.load
lrwxrwxrwx 1 root root 26 Feb 9 01:20 dir.conf -> ../mods-available/dir.conf
lrwxrwxrwx 1 root root 26 Feb 9 01:20 dir.load -> ../mods-available/dir.load
lrwxrwxrwx 1 root root 26 Feb 9 01:20 env.load -> ../mods-available/env.load
lrwxrwxrwx 1 root root 30 Feb 9 01:32 fastcgi.conf -> ../mods-available/fastcgi.conf
lrwxrwxrwx 1 root root 30 Feb 9 01:32 fastcgi.load -> ../mods-available/fastcgi.load
lrwxrwxrwx 1 root root 27 Feb 9 01:20 mime.load -> ../mods-available/mime.load
lrwxrwxrwx 1 root root 34 Feb 9 01:20 negotiation.load -> ../mods-available/negotiation.load
lrwxrwxrwx 1 root root 30 Feb 9 01:29 rewrite.load -> ../mods-available/rewrite.load
lrwxrwxrwx 1 root root 31 Feb 9 01:20 setenvif.load -> ../mods-available/setenvif.load
lrwxrwxrwx 1 root root 29 Feb 9 01:20 status.load -> ../mods-available/status.load
lrwxrwxrwx 1 root root 29 Feb 9 01:29 suexec.load -> ../mods-available/suexec.load

in addtition all www-dir owners are set to root (even the files). on one domain i tryed to change it to vu2004:www-data but it didn't help.


thanks,
} Meatwad


RE: php is not pharsing - Meatwad - 02-09-2008 10:43 PM

ok, i got ispcp working so far. php is runnung. but i still get the error with the permissions. is set the permissions to 777 and to the right vu-user and group!

what can i do?

edit: ..."apache2ctl -S" tells me, that the vhosts are installed correctly, but it's still not working


RE: php is not pharsing - BeNe - 02-10-2008 05:43 AM

Should work with vu2XXX:vu2XXX (user:group)
Check you passwd/group for more info. www-data as group is only set when system need to work there

Code:
drwxrwx--- 2 vu2003 www-data 4096 Feb  9 00:13 backups
drwxr-xr-x 2 vu2003 vu2003   4096 Oct 25 14:37 cgi-bin
drwxrwxr-x 3 vu2003 vu2003   4096 Oct 25 14:37 errors
drwxrwxr-x 7 vu2003 vu2003   4096 Jan 19 16:07 htdocs
drwxrwx--- 2 vu2003 www-data 4096 Oct 25 23:30 logs
drwxrwx--- 2 vu2003 www-data 4096 Feb  6 13:00 phptmp

Greez BeNe


RE: php is not pharsing - Meatwad - 02-10-2008 08:30 AM

Quote:vps2:/var/www/virtual/petrus.wcfan.de# ls -l
total 32
drwxr-x--- 7 vu2007 vu2007 4096 Feb 9 01:08 abischerz08
drwxr-x--- 2 vu2007 vu2007 4096 Feb 9 01:08 backups
drwxr-xr-x 2 vu2007 vu2007 4096 Feb 9 01:08 cgi-bin
drwxrwxrwx 6 vu2007 vu2007 4096 Feb 9 01:08 errors
drwxrwxrwx 5 vu2007 vu2007 4096 Feb 9 01:08 htdocs
drwxr-x--- 2 vu2007 vu2007 4096 Feb 9 01:08 logs
drwxrwx--- 2 vu2007 vu2007 4096 Feb 9 01:42 phptmp

yeah...permissions are set right... it's not working


RE: php is not pharsing - joximu - 02-10-2008 08:33 AM

Is there no more info in the apache error logs?


RE: php is not pharsing - Zothos - 02-10-2008 08:47 AM

which rights and users does the corresponding starter of your domain have?
ln -al /var/www/fcgi/domain.tld?


RE: php is not pharsing - Meatwad - 02-10-2008 08:50 AM

Quote:[Sat Feb 09 23:44:14 2008] [crit] [client 89.14.207.23] (13)Permission denied: /var/www/virtual/XXXX.de/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
no clue what it wants to tell me. in that directory is no .htaccess-file...

Quote:vps2:/var/www/virtual/domain.de# ls -al /var/www/fcgi/domain.de/
total 24
drwxr-xr-x 4 vu2007 vu2007 4096 Feb 9 01:42 .
drwxr-xr-x 9 vu2000 vu2000 4096 Feb 9 02:21 ..
drwxr-x--- 2 vu2007 vu2007 4096 Feb 9 01:42 php4
-rwxr-x--- 1 vu2007 vu2007 204 Feb 9 01:42 php4-fcgi-starter
drwxr-x--- 2 vu2007 vu2007 4096 Feb 9 01:42 php5
-rwxr-x--- 1 vu2007 vu2007 204 Feb 9 01:42 php5-fcgi-starter

this error is occuring at all domains and subdomains. only the ispcp interface works properly. i havn't change any apache2-templates of ispcp or so.


RE: php is not pharsing - raphael - 02-10-2008 09:09 AM

a2dismod fastcgi && a2enmod fastcgi_ispcp && /etc/init.d/apache2 restart
...


RE: php is not pharsing - Meatwad - 02-10-2008 09:11 AM

Quote:vps2:~# a2dismod fastcgi && a2enmod fastcgi_ispcp && /etc/init.d/apache2 restart
Module fastcgi already disabled
This module is already enabled!
Forcing reload of web server (apache2)... waiting .
nothing changed


RE: php is not pharsing - Meatwad - 02-11-2008 01:15 AM

damn, i found the problem: the directory of the domain it's self wasn't chrooted right.

this is solved now. but somehow i got a problem with proftpd:
when i connect to the proftpd it just disconects me right away. this is what my ftp-client gives me:
Quote:Status: Auflösen der IP-Adresse für xxxxx.de
Status: Verbinde mit xyz.xyz.xyz.xyz:21...
Status: Verbindung hergestellt, warte auf Willkommensnachricht...
Fehler: Herstellen der Verbindung zum Server fehlgeschlagen
translation: its trying to connect and waits for the welcome message. while waiting the connection is resetted.

here some log while connecting (from proftpd):
Quote:XXXXX.de - ROOT PRIVS at main.c:1185
XXXXX.de - RELINQUISH PRIVS at main.c:1189
XXXXX.de - no matching vhost found for xyz.xyz.xyz.xyz#21, using DefaultServer 'XXXXX.de'
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at main.c:1034
XXXXX.de (89.14.157.189[89.14.157.189]) - SETUP PRIVS at main.c:1039
XXXXX.de (89.14.157.189[89.14.157.189]) - FTP session requested from unknown class
XXXXX.de (89.14.157.189[89.14.157.189]) - performing module session initializations
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at mod_quotatab_sql.c:721
XXXXX.de (89.14.157.189[89.14.157.189]) - RELINQUISH PRIVS at mod_quotatab_sql.c:726
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at mod_quotatab.c:2329
XXXXX.de (89.14.157.189[89.14.157.189]) - RELINQUISH PRIVS at mod_quotatab.c:2336
XXXXX.de (89.14.157.189[89.14.157.189]) - ROOT PRIVS at mod_quotatab.c:2345
XXXXX.de (89.14.157.189[89.14.157.189]) - RELINQUISH PRIVS at mod_quotatab.c:2352
XXXXX.de - FS: using system lstat()
XXXXX.de - FS: using system lstat()
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to core
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_delay
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_ctrls
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_tls
XXXXX.de (89.14.157.189[89.14.157.189]) - dispatching event 'core.exit' to mod_quotatab
XXXXX.de (89.14.157.189[89.14.157.189]) - FTP session closed.