ispCP - Board - Support
fastcgi incomplete headers issues - 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: fastcgi incomplete headers issues (/thread-1741.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11


RE: fastcgi incomplete headers issues - zpin - 01-15-2008 09:24 PM

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:n4Ai6gmWHzQJ:forums.fedoraforum.org/archive/index.php/t-19374.html+/bin/sh:+bad+interpreter&hl=en&ct=clnk&cd=1&client=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.



RE: fastcgi incomplete headers issues - joximu - 01-15-2008 09:29 PM

what says

"ls -la /bin/sh"

/J


RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:34 PM

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


RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:37 PM

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


RE: fastcgi incomplete headers issues - joximu - 01-15-2008 09:48 PM

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


RE: fastcgi incomplete headers issues - zpin - 01-15-2008 09:48 PM

oh,ok... well, you could try adding the exec flag explicitly


RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:49 PM

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$


RE: fastcgi incomplete headers issues - joximu - 01-15-2008 09:51 PM

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


RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:51 PM

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


RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:53 PM

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