Jump to content

Can someone setup a cron job to execute a script for me?


EliReid

Recommended Posts

Hi 

 

I've been stuck trying to execute a script for a few weeks now and I really need help.

 

The script is supposed to schedule social media posts via functions.php and wp-load.php but I get errors.

 

Can someone do me a favour?

 

Drop your email and I'll send you the details to connect to my database.

 

Thanks

If you show the errors someone can most likely help.

 

Does it come down to owner permissions such as root or www-data?

 

are you calling to a shell file then execute?

directly calling to the php script?

 

Most admin panels have the ability to easily create a new cron job

You could research which panel you are using and find out how.

 

I use webmin

Go to system/Scheduled Cron Jobs

Create a new scheduled cron job.

select the user for permission

insert a command something like this

/usr/bin/php -q /var/www/my-php-script.php

select when or how often would like it to run

click Create

 

Is other places to set crons as well such as in

etc/cron.d

etc/cron.daily

etc/cron.hourly

etc/cron.monthly

etc/cron.weekly

 

Since I use ubuntu will link you to here which is similar to other linux versions and cron commands

https://help.ubuntu.com/community/CronHowto

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.