Current time: 11-23-2024, 03:33 AM Hello There, Guest! (LoginRegister)


Post Reply 
fastcgi incomplete headers issues
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #71
RE: fastcgi incomplete headers issues
ok,

ls -la /var/www/

upd: and maybe "lsattr /var/www/"

?
(This post was last modified: 01-15-2008 10:33 PM by joximu.)
01-15-2008 10:32 PM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #72
RE: fastcgi incomplete headers issues
vu2000@ispcp:~$ ls -la /var/www/
total 32
drwxr-xr-x 8 root root 4096 Jan 15 12:31 .
drwxr-xr-x 14 root root 4096 Jan 15 12:30 ..
drwxr-xr-x 2 root root 4096 Jan 8 10:19 apache2-default
drwxr-xr-x 2 root root 4096 Jan 8 10:20 awstats
drwxr-xr-x 3 vu2000 vu2000 4096 Jan 15 12:31 fcgi
drwxr-xr-x 7 root root 4096 Jan 8 10:21 ispcp
drwxr-xr-x 2 root root 4096 Jan 8 10:20 scoreboards
drwxr-xr-x 2 vu2000 www-data 4096 Jan 8 10:20 virtual
vu2000@ispcp:~$ lsattr /var/www/
------------------ /var/www/apache2-default
------------------ /var/www/ispcp
------------------ /var/www/fcgi
------------------ /var/www/awstats
------------------ /var/www/virtual
------------------ /var/www/scoreboards
01-15-2008 10:35 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #73
RE: fastcgi incomplete headers issues
hm, looks good, allthough it's not the same as here:

ls -la /var/www/
drwxr-xr-x 13 root root 4096 2008-01-15 01:04 .
drwxr-xr-x 16 root root 4096 2007-12-28 22:09 ..
drwxr-xr-x 2 root root 4096 2008-01-10 00:12 apache2-default
drwxr-xr-x 2 root root 4096 2007-09-01 14:08 awstats
drwxr-xr-x 8 root root 4096 2007-12-15 21:56 fcgi
drwxr-xr-x 7 root root 4096 2008-01-15 01:10 ispcp
drwxr-xr-x 2 root root 4096 2007-12-15 21:56 scoreboards
drwxr-xr-x 7 vu2000 www-data 4096 2007-12-15 21:56 virtual

but I cannot figure out, why especially user vu2000 cannot execute anything in /var/www/fcgi - it's the user which is owner of the folder... (in your system).

do you have some sort of security software running (app-armor, or the other one, SE-Linux?)

/J
01-15-2008 10:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #74
RE: fastcgi incomplete headers issues
I installed a debian minimal system, then installed ispcp. nothing else...
01-15-2008 10:47 PM
Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #75
RE: fastcgi incomplete headers issues
well I changed the permissions on the folder and I no longer get permission denied...

if I do this:
ispcp:~# sudo -u vu2000 /var/www/fcgi/master/php5-fcgi-starter /var/www/ispcp/gui/index.php

I get no error but no outup either...but I think this is a start...any ideas on what I should check for?
01-15-2008 11:02 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #76
RE: fastcgi incomplete headers issues
I also get nothing with this...

do you still get the incomplete Header messages?

/J
01-15-2008 11:09 PM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #77
RE: fastcgi incomplete headers issues
Apache error log:

[Tue Jan 15 13:21:46 2008] [warn] FastCGI: server "/var/www/fcgi/master/php5-fcgi-starter" (pid 5879) terminated by calling exit with status '120'

the previous error was with status 1

Apache suexec log:

[2008-01-15 13:21:46]: uid: (vu2000/vu2000) gid: (vu2000/vu2000) cmd: php5-fcgi-starter
[2008-01-15 13:21:46]: target uid/gid (2000/2000) mismatch with directory (0/0) or program (2000/2000)

Apache/users/myuser log:

[Tue Jan 15 13:22:42 2008] [error] [client 192.168.1.234] FastCGI: comm with server "/var/www/fcgi/master/php5-fcgi-starter" aborted: idle timeout (30 sec)
[Tue Jan 15 13:22:42 2008] [error] [client 192.168.1.234] FastCGI: incomplete headers (0 bytes) received from server "/var/www/fcgi/master/php5-fcgi-starter"
01-15-2008 11:22 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #78
RE: fastcgi incomplete headers issues
Please check the permissions again - only the fcgi folder is root:root, the folders underneath not:

Code:
ls -la /var/www/fcgi/
insgesamt 68
drwxr-xr-x 17 root   root   4096 2008-01-14 02:52 .
drwxr-xr-x 10 root   root   4096 2008-01-14 03:22 ..
drwxr-xr-x  4 vu2013 vu2013 4096 2007-10-24 10:52 abc.test.ch
drwxr-xr-x  4 vu2003 vu2003 4096 2007-12-23 11:54 haha.ch
drwxr-xr-x  4 vu2014 vu2014 4096 2007-11-26 00:06 main-domain.tld
drwxr-xr-x  4 vu2000 vu2000 4096 2008-01-15 12:21 master

and

Code:
ls -la /var/www/fcgi/master/
insgesamt 48
drwxr-xr-x  4 vu2000 vu2000 4096 2008-01-15 12:21 .
drwxr-xr-x 17 root   root   4096 2008-01-14 02:52 ..
-rw-------  1 vu2000 vu2000    4 2008-01-15 12:21 .bash_history
-rw-r--r--  1 vu2000 vu2000  220 2007-09-14 16:05 .bash_logout
-rw-r--r--  1 vu2000 vu2000  414 2007-09-14 16:05 .bash_profile
-rw-r--r--  1 vu2000 vu2000 2227 2007-09-14 16:05 .bashrc
drwxr-xr-x  2 root   root   4096 2007-12-23 12:18 php4
-rwxr-xr-x  1 vu2000 vu2000  195 2007-09-14 16:05 php4-fcgi-starter
drwxr-xr-x  3 root   root   4096 2007-11-13 13:02 php5
-rwxr-xr-x  1 vu2000 vu2000  195 2007-10-30 09:52 php5-fcgi-starter

/J
(This post was last modified: 01-16-2008 12:01 AM by joximu.)
01-15-2008 11:43 PM
Visit this user's website Find all posts by this user Quote this message in a reply
blunt Offline
Junior Member
*

Posts: 40
Joined: Jan 2008
Reputation: 0
Post: #79
RE: fastcgi incomplete headers issues
ispcp:~# ls -la /var/www/fcgi/master/
total 44
drwxr-xr-x 4 root root 4096 Jan 15 11:52 .
drwxr-xr-x 3 root root 4096 Jan 15 12:31 ..
-rw------- 1 vu2000 vu2000 597 Jan 15 12:57 .bash_history
-rw-r--r-- 1 vu2000 vu2000 220 Jan 8 10:21 .bash_logout
-rw-r--r-- 1 vu2000 vu2000 414 Jan 8 10:21 .bash_profile
-rw-r--r-- 1 vu2000 vu2000 2227 Jan 8 10:21 .bashrc
drwxr-xr-x 2 root root 4096 Jan 8 13:36 php4
-rwxr-xr-x 1 vu2000 vu2000 195 Jan 8 13:36 php4-fcgi-starter
drwxr-xr-x 2 root root 4096 Jan 8 13:36 php5
-rwxr-xr-x 1 vu2000 vu2000 195 Jan 8 13:36 php5-fcgi-starter
-rwxr-xr-x 1 vu2000 vu2000 27 Jan 15 12:02 test.sh
01-15-2008 11:45 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #80
RE: fastcgi incomplete headers issues
ls -la /var/www/fcgi/master/
drwxr-xr-x 4 vu2000 vu2000 4096 2008-01-15 12:21 .

the master folder itself is owned by vu2000:vu2000 !

That's important
01-15-2008 11:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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