开发者

Debian: run php files with parser

开发者 https://www.devze.com 2023-03-05 19:29 出处:网络
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 sa开发者_JAVA技巧ys

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 sa开发者_JAVA技巧ys

/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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消