Welcome Guest, Not a member yet? Register   Sign In
Can get CLI to work on my localhost but not on server
#1

[eluser]hamobi[/eluser]
Hello, I have created a simple controller that is working just fine on my localhost through the command line.

However, when I upload it and try to access the controller using SSH I get no output. the best part is that my server has errors disabled so I am not able to see if it is outputting any errors.

My coworker was able to get his code to execute just fine, but I dont see any differences between his and mine.

What could I possibly be doing wrong?
#2

[eluser]CroNiX[/eluser]
We can't really just guess. We'd need to see the code, along with how you are calling it from the CLI.
#3

[eluser]hamobi[/eluser]
from SSH:

php /var/www/sites/mysite.com/index.php analytics cronEmail

my controller is just

echo 'hello';

i get no output
#4

[eluser]weboap[/eluser]
guessing here, check the name of your controller / method and make sure you are running the script as the user who own the CI files and that proper permissions on files is set.




Theme © iAndrew 2016 - Forum software by © MyBB