Frage

I'm trying to be able to run php scripts on my vps. I do have php5 installed but when I run the php file it says

/usr/bin/php: bad interpreter: No such file or directory

so I typed whereis php5

and the output is:

php5: /etc/php5 /usr/lib/php5 /usr/share/php5

Question is: what do I do at this point to make a php file run?

the top of my php file, what should i have? #!/etc/php5?

War es hilfreich?

Lösung

Then you don't have it installed. The commandline or CGI version can be installed with:

sudo apt-get install php5-cgi

Or -cli if it's only for console scripts, and you already have mod_php running for Apache.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top