Current time: 11-27-2024, 02:41 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] PHP CLI, cron
Author Message
Boter Offline
Junior Member
*

Posts: 42
Joined: Jan 2010
Reputation: 0
Post: #1
[SOLVED] PHP CLI, cron
How can I enable CLI for php, for some user?

"Must be able to run PHP from the command line (CLI) with exec()"
and

Allowed execution of background processes with exec("binary > /dev/null &")

How to do that for some ispcp user? Is there already any way to add crons for the same user?
(This post was last modified: 03-19-2010 04:33 PM by BeNe.)
03-19-2010 08:49 AM
Find all posts by this user Quote this message in a reply
gOOvER Offline
Banned

Posts: 3,561
Joined: Jul 2007
Post: #2
RE: PHP CLI, cron
You can enable it in the php.ini of your costumer Smile

=> disabled_functions Wink
(This post was last modified: 03-19-2010 08:53 AM by gOOvER.)
03-19-2010 08:52 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Boter Offline
Junior Member
*

Posts: 42
Joined: Jan 2010
Reputation: 0
Post: #3
RE: PHP CLI, cron
I removed exec, shell_exec, proc_open. should that do the trick?
Now I commented whole disabled_functions, but still can't create background process with php script
(This post was last modified: 03-19-2010 09:04 AM by Boter.)
03-19-2010 09:01 AM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #4
RE: PHP CLI, cron
Take a look at this thread...
03-19-2010 11:49 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Boter Offline
Junior Member
*

Posts: 42
Joined: Jan 2010
Reputation: 0
Post: #5
RE: PHP CLI, cron
Thank's for help, I figured it out. Some with your help, some on my own. You can close thread
03-19-2010 12:18 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)