Welcome Guest, Not a member yet? Register   Sign In
calling codeigniter from the command line
#1

[eluser]ggoforth[/eluser]
Hello all, I'm having an issue with Codeigniter from the command line. I'm following the instructions as outlined here:

http://phpstarter.net/2008/12/run-codeig...-line-ssh/

I've created the proper files (cli.php which is a copy of index.php with some extra code added at the top)and they have all been uploaded to the server. When I log in as root to my web server with Putty, and cd into the directory to run the file, say my directory is called cron, I CD into cron and type the following:

./cli.php test send_email

cli.php is the file to run, test is the controller, and send_email is the method. I'm getting the following response:

"You do not have access"

Any ideas why I might be getting that since I'm logged in as root? All the files are 777 (for the purposes of testing this), and they all belong to the "root" user group. Thanks for any help!

Greg




Theme © iAndrew 2016 - Forum software by © MyBB