Request Path

Status
Not open for further replies.

mikesla

New Member
Messages
11
Reaction score
0
Points
0
Hi, please forgive me, I'm very new with all of this.

I have read everything that I could think of, and I still can't find my answer to my path problem.

FUDform uses an internal Job's script (very much like cron) which requires the path to the php executable in order to do backup's, importing of usenet posts etc.

Would anyone know the path to php? I have tried /usr/bin/php, /usr/lib/php and my forum software cannot find the executable.

Also, I am trying to setup a cron job to execute the nntp.php script to maybe overcome the problem I mentioned above, but how does one do that? What would the actual command line be?

Any help would be appreciated.
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
For cron, simply use "php yourscript.php", you don't need to specify the full path to php. You may have to use cron in order to do these backups, as all exec functions for php are disabled on free hosting (meaning that your php scripts are unable to run command line commands, and since your forums ask for the path to php, it appears that they may be trying to run it via the command line).

Please note that only one cron job per 5 minutes is allowed on free hosting, so when setting up your cron jobs, keep that restriction in mind (If you only have one cron job, then doing it once every 5 minutes is fine. If you have 2 cron jobs, however, note that they each have to be 5 minutes apart from each other).
 
Last edited:

mikesla

New Member
Messages
11
Reaction score
0
Points
0
For cron, simply use "php yourscript.php", you don't need to specify the full path to php. You may have to use cron in order to do these backups, as all exec functions for php are disabled on free hosting (meaning that your php scripts are unable to run command line commands, and since your forums ask for the path to php, it appears that they may be trying to run it via the command line).

Please note that only one cron job per 5 minutes is allowed on free hosting, so when setting up your cron jobs, keep that restriction in mind (If you only have one cron job, then doing it once every 5 minutes is fine. If you have 2 cron jobs, however, note that they each have to be 5 minutes apart from each other).

Hi.

Okay, I'll give it a try, and thanks for the quick response.

Cheers...
 
Status
Not open for further replies.
Top