Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My host has quoted me this:

Have you checked that your php script runs OK from the command line? The cron process needs to activate the command-line version of php - /usr/bin/php - because it can't by itself process php scripts without an interpreter running. So, I've set the job to run using the command-line.

You can check it by logging into the server using an ssh connection and running the script like so:

/usr/bin/php <script name>

My question is how do I perform this below so that I can run the script:

You can check it by logging into the server using an ssh connection and running the script like so:

/usr/bin/php <script name>

Does it require a particular software to or anything like that? I am a complete novice on this so please explain it to me in with as less technical words as possible.

All my scripts are transferred using filezilla, I don't know if this is important?


share|improve this question

closed as too localized by EEAA, Michael Hampton, HopelessN00b, voretaq7 Oct 26 '12 at 16:22

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

I'm sorry but this is way too basic for Server Fault -- this site is geared toward professional system administrators: We assume that you can figure out how to run ssh and connect to your system. If that is beyond your skills you really need to hire a sysadmin, or spend some time with Google (search for how to use SSH). – voretaq7 Oct 26 '12 at 16:22
up vote 2 down vote accepted

Assuming you are using linux, you can simply open your terminal and then type:

ssh yourusername@yourservername

and then log in with your password.

If you are the windows kind of guy, you may need to install putty and then issue the command above

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.