![]() |
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) |
RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:13 AM does anyone know why this is happening? I don't know what else to try... RE: fastcgi incomplete headers issues - joximu - 01-15-2008 09:19 AM We could make further tests: copy the php5-fcgi-starte into test.sh and change the content of the file to this: Code: #!/bin/sh and execute the file. Well, it's only to check where's the problem. If still problems to execute: move the file to somwehre else /var/www - and test it there... and so on... RE: fastcgi incomplete headers issues - blunt - 01-15-2008 08:11 PM well I changed the contents of the file to what you said, named it as test.sh. Here is the output: ispcp:/var/www/fcgi/master# sudo -u vu2000 /var/www/fcgi/master/test.sh sudo: unable to execute /var/www/fcgi/master/test.sh: Permission denied ispcp:/var/www/fcgi/master# sudo -u vu2000 mv /var/www/fcgi/master/test.sh /test.sh mv: cannot move `/var/www/fcgi/master/test.sh' to `/test.sh': Permission denied ispcp:/var/www/fcgi/master# sudo -u vu2000 mv /var/www/fcgi/master/test.sh /var/www/fcgi/test.sh ispcp:/var/www/fcgi/master# sudo -u vu2000 /var/www/fcgi/test.sh sudo: unable to execute /var/www/fcgi/test.sh: Permission denied ispcp:/var/www/fcgi/master# sudo -u vu2000 mv /var/www/fcgi/test.sh /var/www/test.sh mv: cannot move `/var/www/fcgi/test.sh' to `/var/www/test.sh': Permission denied ispcp:/var/www/fcgi/master# sudo -u vu2000 mv /var/www/fcgi/test.sh /var/test.sh mv: cannot move `/var/www/fcgi/test.sh' to `/var/test.sh': Permission denied ispcp:/var/www/fcgi/master# sudo -u vu2000 mv /var/www/fcgi/test.sh /test.sh mv: cannot move `/var/www/fcgi/test.sh' to `/test.sh': Permission denied I used sudo to move the file to check for permission problems... And I can't go anywhere beyond /var/www/fcgi/ still can't figure out the problem... here is the result of ls ispcp:/var/www/fcgi# ls -la total 16 drwxr-xr-x 3 vu2000 vu2000 4096 Jan 15 10:08 . drwxr-xr-x 8 root root 4096 Jan 8 10:20 .. drwxr-xr-x 4 vu2000 vu2000 4096 Jan 15 10:08 master -rwxr-xr-x 1 vu2000 vu2000 25 Jan 15 10:07 test.sh thank you RE: fastcgi incomplete headers issues - joximu - 01-15-2008 08:24 PM Well - the moving around is not possible for user vu2000 - only the executing. Just for your info:try a sudo -u vu2000 /bin/bash to get a new shell with vu2000 permissions - so you don't need to sudo everything... back with "exit". I'd open a second shell (putty if you come from windows) for root access. RE: fastcgi incomplete headers issues - blunt - 01-15-2008 08:28 PM sudo -u vu2000 /bin/bash bash: /root/.bashrc: Permission denied can't do that...is that the problem? RE: fastcgi incomplete headers issues - joximu - 01-15-2008 08:59 PM Well, there is the problem. it seems that all bash are trying to load /root/.bashrc - which of course is not possible for all users (thank god :-) could you do a "grep -r bashrc /etc" or maybe it's somewhere in /var/www/fcgi/master/.bash* and also grep vu2000 /etc/passwd /J RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:05 PM here is the output of the three commands. ispcp:~# grep -r bashrc /etc /etc/bash.bashrc:# System-wide .bashrc file for interactive bash(1) shells. grep: /etc/fonts/conf.d/30-defoma.conf: No such file or directory /etc/skel/.bash_profile:# include .bashrc if it exists /etc/skel/.bash_profile:if [ -f ~/.bashrc ]; then /etc/skel/.bash_profile: . ~/.bashrc /etc/skel/.bashrc:# ~/.bashrc: executed by bash(1) for non-login shells. /etc/skel/.bashrc:# this, if it's already enabled in /etc/bash.bashrc and /etc/profile /etc/skel/.bashrc:# sources /etc/bash.bashrc). ispcp:~# grep -r bashrc /var/www/fcgi/master/.bash* /var/www/fcgi/master/.bash_profile:# include .bashrc if it exists /var/www/fcgi/master/.bash_profile:if [ -f ~/.bashrc ]; then /var/www/fcgi/master/.bash_profile: . ~/.bashrc /var/www/fcgi/master/.bashrc:# ~/.bashrc: executed by bash(1) for non-login shells. /var/www/fcgi/master/.bashrc:# this, if it's already enabled in /etc/bash.bashrc and /etc/profile /var/www/fcgi/master/.bashrc:# sources /etc/bash.bashrc). ispcp:~# grep vu2000 /etc/passwd vu2000:x:2000:2000:vu-master:/var/www/fcgi/master:/bin/sh is it trying to find /root/.bashrc because I'm running as root? RE: fastcgi incomplete headers issues - zpin - 01-15-2008 09:17 PM You can try to run your commands with Code: sudo su vu2000 -c 'COMMAND' RE: fastcgi incomplete headers issues - blunt - 01-15-2008 09:20 PM I still get permission denied... ispcp:~# sudo su vu2000 -c '/var/www/fcgi/master/test.sh' sh: /var/www/fcgi/master/test.sh: /bin/sh: bad interpreter: Permission denied RE: fastcgi incomplete headers issues - joximu - 01-15-2008 09:22 PM blunt Wrote:is it trying to find /root/.bashrc because I'm running as root? I don't know why it tries to load the bashrc from /root - normally it should load it from his own homedir (which is set correctly in the passwd) But: just found out: i get the same if I change the permissions of /root to rwx------ instead of (default) rwxr-xr-x (I thought /root is more secured..) try this one su -s /bin/bash - vu2000 and then try with loading the php5... starter script as vu2000 /J |