Current time: 11-26-2024, 07:55 AM Hello There, Guest! (LoginRegister)


Post Reply 
fastcgi incomplete headers issues
Author Message
zpin Offline
Junior Member
*****
Dev Team

Posts: 160
Joined: Sep 2007
Reputation: 1
Post: #51
RE: fastcgi incomplete headers issues
well, but this time it's a bit different... "bad interpreter". I'd try google for that one

maybe this already helps:
http://209.85.129.104/search?q=cache:n4A...ient=opera

Quote:Solution:
Anyway, I needed to add the 'exec' option to the /etc/fstab file when mounting that partition. Smile
If it says 'defaults' on the line in /etc/fstab, then it also means you don't have exec rights on it.
(This post was last modified: 01-15-2008 09:25 PM by zpin.)
01-15-2008 09:24 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: #52
RE: fastcgi incomplete headers issues
what says

"ls -la /bin/sh"

/J
01-15-2008 09:29 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: #53
RE: fastcgi incomplete headers issues
I missed some of the topics written...I just saw the last.

here is the output of the previous post joximu:

ispcp:~# su -s /bin/bash - vu2000
vu2000@ispcp:~$ /var/www/fcgi/master/php5-fcgi-starter
-su: /var/www/fcgi/master/php5-fcgi-starter: /bin/sh: bad interpreter: Permission denied

and from ls:

ispcp:~# ls -la /bin/sh
lrwxrwxrwx 1 root root 4 Jan 8 10:13 /bin/sh -> bash
(This post was last modified: 01-15-2008 09:40 PM by blunt.)
01-15-2008 09:34 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: #54
RE: fastcgi incomplete headers issues
by the way zpin, this is a vps made with openvz. There is no content int /etc/fstab, just /etc/mtab. I think I mentioned this earlier...here is the output of /etc/mtab:

/dev/simfs / reiserfs rw,usrquota,grpquota 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
proc /proc proc rw,nosuid,nodev,noexec 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
01-15-2008 09:37 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: #55
RE: fastcgi incomplete headers issues
ok, so you can "su" to vu2000 - so far so good

try (as user vu2000) to run
/bin/bash
and then
/bin/sh


(weird problem... !!!)
/J
01-15-2008 09:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
zpin Offline
Junior Member
*****
Dev Team

Posts: 160
Joined: Sep 2007
Reputation: 1
Post: #56
RE: fastcgi incomplete headers issues
oh,ok... well, you could try adding the exec flag explicitly
01-15-2008 09:48 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: #57
RE: fastcgi incomplete headers issues
you tell me...weird as it can be...

here is the output:

ispcp:~# su -s /bin/bash - vu2000
vu2000@ispcp:~$ /bin/bash
vu2000@ispcp:~$ /bin/sh
sh-3.1$
01-15-2008 09:49 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: #58
RE: fastcgi incomplete headers issues
Can you post your /var/www/fcgi/master/php5-fcgi-starter?
What is the result, if you run the test.sh (from aove) as user vu2000?

/J
01-15-2008 09:51 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: #59
RE: fastcgi incomplete headers issues
zpin, I may be wrong, but it doesn't seem to be a problem with exec/noexec permissions on the partitions, because as root I can execute he file:

ispcp:~# /var/www/fcgi/master/test.sh
Hello!
ispcp:~#
01-15-2008 09:51 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: #60
RE: fastcgi incomplete headers issues
joximu:
executing file test.sh from vu2000:

ispcp:~# su -s /bin/bash - vu2000
vu2000@ispcp:~$ /var/www/fcgi/master/test.sh
-su: /var/www/fcgi/master/test.sh: /bin/sh: bad interpreter: Permission denied

contents of php5-fcgi-starter:
ispcp:~# cat /var/www/fcgi/master/php5-fcgi-starter
#!/bin/sh

umask 022

PHPRC="/var/www/fcgi/master/php5/"

export PHPRC
PHP_FCGI_CHILDREN=2
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=500
export PHP_FCGI_MAX_REQUESTS

exec /usr/bin/php5-cgi
01-15-2008 09:53 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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