Quizmaster's picture

i everyone, I'm taking a web development class, where we've been introduced to hosting on a newly installed LAMP server for the first time and I need to learn how to execute a PHP script for the first time in the web shell... How do I run my script in web shellin Firefox,  and what do I run in command line to do so?

Forum: 
Jeremy Davis's picture

If you haven't already, you may need to install php5-cli (the php module which allows executing php from the commandline interface). 

apt-get update
apt-get install php5-cli

Then cd to the script location and run it like this:

./script.php

Hopefully that all works. It's off the top of my head so not 100% sure...

Add new comment