PHP build manually through SSH not working

capbiker

Active Member
#1
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
 

MikeDVB

Well-Known Member
#3
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 :)
 
Top