Jump to content

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

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.