PDA

View Full Version : PHP build manually through SSH not working


capbiker
08-31-2009, 09:38 AM
I am currently trying to rebuild my PHP to 5.2.10 and I have followed the instructions for 4.0.10 and logged in through my SSH and when I try to run the file manually I always ma getting the following message:-


-bash: /buildphp_manual_run.sh: No such file or directory
root@mydomain [/usr/local/lsws/phpbuild]#


I have checked and buildphp_manual_run.sh is actually present in that directory so I don't know why it is not being executed for.

cap

mistwang
08-31-2009, 01:59 PM
command should be.
./buildphp_manual_run.sh

MikeDVB
09-04-2009, 01:56 PM
mistwang is right.

If you run /scriptnamehere it will try to run the file located directly in / (base folder) which if you do "ls / | grep scriptname" you will see it does not exist.

"./" signifies the current directory. If you do "cd ." you will see that you don't change to a different directory so ./scriptnamehere will run the script in the current folder. You can do "ls ./ | grep scriptname" and you will see that the file shows up :)