How to add cronjob for phpBBB with cpanel

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Registered User
Posts: 21
Joined: Thu Jan 09, 2014 12:30 pm
Location: Berlin, Germany
Name: Matthias Henkel

How to add cronjob for phpBBB with cpanel

Post by MattisBLN » Sun May 06, 2018 7:26 am


can anyone please help me to set up a system cronjob for phpBB? My site is managed with cpanel, but I guess the syntax would be similar with any cron-tab.

The ACP says that you have to make sure "bin/phpbbcli.php cron:run" is called e. g. every 5 minutes.

So I tried php /path-to-phpbb/bin/phpbbcli.php cron:run - result is "this script has to be run from command line".

I tried /path-to-phpbb/bin/phpbbcli.php cron:run, this resuls in "no permission". I changed the file-permission to 755, then again I get "has to be run from command line".

What would be the correct entry for crontab to run the cronjob of phpbb?

Thanks in advance!

Sincerely Matthias

User avatar
Registered User
Posts: 124
Joined: Tue Aug 20, 2002 9:09 am
Location: Earth

Re: How to add cronjob for phpBBB with cpanel

Post by TheSa|nt » Thu Oct 25, 2018 1:19 am

Looks like the correct value is:

cd "/path/to/board"; ./bin/phpbbcli.php cron:run

If that doesn't work, then:

Code: Select all

curl -A=Mozilla/4.0
Whichever one works, you can add ">/dev/null" at the end (with a space between your command and it) if your cron system emails you everytime a cron is ran. That way you don't get hit with an email every so many minutes (or whatever you set the time for your cron at).


Unless you found another way to get it to work.

Post Reply

Return to “[3.2.x] Support Forum”