Jump to content

Cron Setup


phpretard

Recommended Posts

I know how to setup cron.  I need to know if there is a way to setup cron via php.

 

For example.  When you install wordpress or Joomla there is a wizard of sort to install the database and configure some files. 

 

Is there such a script to do the same with cron?

Link to comment
Share on other sites

Can I write $this into linux using exec() not having to use SSH or Plesk?

 

You can, but its far from a valid command. Firstly, cron jobs need to go in a users crontab file. Secondly, the user apache runs as will need to have sufficient permissions to act as this user to add jobs to crontab.

 

Instead of explaining how you need to do things, explain (in basic terms) what it is you want to do. There might be easier ways.

Link to comment
Share on other sites

I don't want to have to manually set up a cron job everytime I set up a domain

 

Firstly, why would you need to? Secondly, why wouldn't you just script this into whatever script adds the domain?

 

Once again, I think your only telling half the story.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.