I'm running wampserver and can't seem to use php files in the CLI. Supposedly there are two modes of running php, CGI and CLI. I can't figure out how to enable CLI since I don't see php-cli.exe in /wamp/bin/php/php5.2.6. When I try and execute php scripts they wont run. Does anyone know how to get the CLI running php scripts using wampserver 2?
Im basically trying to call a bake.php script to open a cake console.
You should have a file php.exe, which is the CLI version. So you can do
php.exe -f phpfile.php
to run a file using the command line.
If your having a problem with environmental variables, here is some steps to fix it:
Example: C:\wamp\bin\php\php5.2.9-2;C:\wamp\www\cake\cake\console;
NOTE: You will have to change the paths to match yours, also make sure you have ; seperating each path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With