Current time: 06-03-2024, 06:33 PM Hello There, Guest! (LoginRegister)


Thread Closed 
php is not pharsing
Author Message
Meatwad Offline
Junior Member
*

Posts: 46
Joined: Feb 2008
Reputation: 0
Post: #1
php is not pharsing
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
02-09-2008 08:37 PM
Find all posts by this user
Meatwad Offline
Junior Member
*

Posts: 46
Joined: Feb 2008
Reputation: 0
Post: #2
RE: php is not pharsing
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
(This post was last modified: 02-10-2008 04:17 AM by Meatwad.)
02-09-2008 10:43 PM
Find all posts by this user
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #3
RE: php is not pharsing
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
02-10-2008 05:43 AM
Visit this user's website Find all posts by this user
Meatwad Offline
Junior Member
*

Posts: 46
Joined: Feb 2008
Reputation: 0
Post: #4
RE: php is not pharsing
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
02-10-2008 08:30 AM
Find all posts by this user
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #5
RE: php is not pharsing
Is there no more info in the apache error logs?
02-10-2008 08:33 AM
Visit this user's website Find all posts by this user
Zothos Offline
Release Manager
*****
Dev Team

Posts: 1,262
Joined: Feb 2007
Reputation: 10
Post: #6
RE: php is not pharsing
which rights and users does the corresponding starter of your domain have?
ln -al /var/www/fcgi/domain.tld?
02-10-2008 08:47 AM
Find all posts by this user
Meatwad Offline
Junior Member
*

Posts: 46
Joined: Feb 2008
Reputation: 0
Post: #7
RE: php is not pharsing
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.
02-10-2008 08:50 AM
Find all posts by this user
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #8
RE: php is not pharsing
a2dismod fastcgi && a2enmod fastcgi_ispcp && /etc/init.d/apache2 restart
...
02-10-2008 09:09 AM
Visit this user's website Find all posts by this user
Meatwad Offline
Junior Member
*

Posts: 46
Joined: Feb 2008
Reputation: 0
Post: #9
RE: php is not pharsing
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
02-10-2008 09:11 AM
Find all posts by this user
Meatwad Offline
Junior Member
*

Posts: 46
Joined: Feb 2008
Reputation: 0
Post: #10
RE: php is not pharsing
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.
02-11-2008 01:15 AM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)