Re: shebang line drive me nuts.
| From: | Chris | Date: | Mon, 07 Aug 2006 09:00:04 +0000 |
| Subject: | Re: shebang line drive me nuts. | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-240226@lists.php.net to get a copy of this message | ||
Jochem Maas wrote:
Chris wrote:damn ;) maybe time to try strac'ing it? strace ./file.php -- Postgresql & php tutorials http://www.designmagick.com/Jochem Maas wrote:it's debian, no selinux installed. the mystery continues :-)Robert Cummings wrote:Yeh, dirs should be 755, the file should be at least 755. What o/s is this? If it's fedora 4+ do you have seLinux enabled or something? I wonder if something else is getting in the way..On Mon, 2006-08-07 at 09:59 +0200, Jochem Maas wrote:all dirs in that path are readable by everyone (read and execute flag set), the executable is also readable & executable by everyone. that is correct right?I have a php shell script (the execute bit of the file is set) of which the first line is this: #!/usr/lib/php5/bin/php -q or this: #!/usr/bin/php -q or this: #!php -q in all cases I get the following error when I run (as root) the script: -bash: ./makemicrositeml: /usr/lib/php5/bin/php: bad interpreter: Permission denied php is where I think it is: # which php /usr/bin/php # ls -lart /usr/bin/php lrwxrwxrwx 1 root root 21 May 9 11:40 /usr/bin/php -> /usr/lib/php5/bin/php any know what idiot thing I'm doing wrong?Check the permissions on /usr/lib/php5 and on /usr/lib/php5/bin and on /usr/lib/php5/bin/php Any one of those being set incorrectly can deny you access.