PHP Command

Using the Terminal I downloaded and extracted a zip file to the remote server. The next step according to the instructions I’m using is exactly:

  1. Execute the following command php vapor/vapor.php.

Is “php” part of the Terminal command? Because when I run the above I get this error:

Could not open input file: vapor/vapor.php

Todd

RSS: HugeDomains.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Try running just php -v, with no other arguments, and see if you get a reply from the server. On mine, it gives a little terse explanation of what version I have installed. Next, if you are in the same folder as vapor, so that vapor/vapor.php would be a local path, then try using the ./ construction at the beginning of the path to “anchor” to the current folder. So try

php ./vapor/vapor.php

Yes, php is part of the command. The specific error is that the path is wrong, so vapor/vapor.php is not a valid path to that file from your current shell location.

Walter

On Mar 11, 2013, at 10:21 PM, Todd wrote:

Using the Terminal I downloaded and extracted a zip file to the remote server. The next step according to the instructions I’m using is exactly:

  1. Execute the following command php vapor/vapor.php.

Is “php” part of the Terminal command? Because when I run the above I get this error:

Could not open input file: vapor/vapor.php

Todd
http://xiiro.com
RSS: HugeDomains.com


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter. You’re right, I thought I was already in the vapor directory having just extracted a zip file in it but I guess I wasn’t. I cd into the directory then ran the php command and it worked like a charm.

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter, you might be interested in this: the vapor stuff has to do with the MODX Cloud service <modxcloud.com> (which has a very slick UI). With minimal prep I can take a complete “snapshot” of any MODX site and import the whole shebang into their Cloud service with a single click and presto, I have a fully functional staging or development platform for free (you get 1 free dev Cloud). Easy updating and deployment when ready.

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options