What were the exact command and error message?arie01 said:I logged in to my system as a regular user than[sic] I su'ed to root and then I tried to run a command and I got Permission denied. The root user is already a member of the wheel group. Why do I keet[sic] getting this error?
# [b]/usr/local/bin/php[/b] /usr/local/www/lilac/export.php id=1fonz said:PHP scripts usually cannot be executed standalone, they need to be run by an interpreter. For example, something like# [b]/usr/local/bin/php[/b] /usr/local/www/lilac/export.php id=1
Fonz
What is "it", standalone execution or interpreter usage?chatwizrd said:It is possible, but not recommended.
No, you weren't rude. And I didn't intend to appear angry either, it was just a gentle little hint :beerarie01 said:Oh, sorry.
[snip]
I read through it and saw that it may be the right post for my issue too, so I guess I highjacked it.
[snip]
Thank you and sorry if I was a rude.
Agreed, posts split off into it's own thread.fonz said:P.S. Although in this case I can to some extent understand that you posted your question in this thread, you should in most cases start a new thread for your question instead of "hijacking" an existing one.
fonz said:What is "it", standalone execution or interpreter usage?
Fonz
#!/usr/local/bin/php
<?php