Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th September 2011, 17:33
Skyflash Skyflash is offline
Member
 
Join Date: Sep 2011
Posts: 56
Thanks: 4
Thanked 2 Times in 2 Posts
Send a message via Skype™ to Skyflash
Default Wordpress and client scheduled db backup

Hi!
i have a question related to Wordpress, ISPConfig 3 (CentOS 5.5 x64) and some plugins that make backups of the database (i.e.: WP-DB Backup)

We installed and configured ISPConfig following the CentOS 5,5 Perfect Server hotwo, and all seems happy. The user connects via FTP, is able to load his Worpdress, makes the db, installs Worpdress and more.

But every plugin that requires a schedule, as the db backup, don't works. If i (as user, not admin) make it in manual mode, the db backup is ok. If i set a schedule, the backup does not.

Someone can help me, pls?

P.S.: sorry for my bad english
Reply With Quote
Sponsored Links
  #2  
Old 27th September 2011, 18:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,991
Thanks: 825
Thanked 5,375 Times in 4,222 Posts
Default

Most likely you try to run a php script with the php binary directly which can not work in a jailed cronjob as the php binary is outside of the jail. Instead of using the php binary, insert just the url to the script in the command field of the cronjob in ispconfig like this:

http://yourdomain.tld/mycronscript.php

ISPConfig will then take care that the script under that url is executed at the scheduled times.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th September 2011, 09:38
Skyflash Skyflash is offline
Member
 
Join Date: Sep 2011
Posts: 56
Thanks: 4
Thanked 2 Times in 2 Posts
Send a message via Skype™ to Skyflash
Default

Quote:
Most likely you try to run a php script with the php binary directly which can not work in a jailed cronjob as the php binary is outside of the jail. Instead of using the php binary, insert just the url to the script in the command field of the cronjob in ispconfig like this:

http://yourdomain.tld/mycronscript.php

ISPConfig will then take care that the script under that url is executed at the scheduled times.
Ok, thanks. I'll try in some hours. But... other question: why in other panels, like cPanel and Plesk this "problem" isn't present and scheduled backups via the wp-db backup plugn works perfectly?
Reply With Quote
  #4  
Old 28th September 2011, 09:51
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,991
Thanks: 825
Thanked 5,375 Times in 4,222 Posts
Default

There is nos such problem in ispconfig, as this all depends on the settings that you have choosen while you created the client in ispconfig. If you can run any binary as cronjob depends on your security settings. If you allow normal (not jailed) cronjobs in the client settings, then you can run your cronjob like you do it in cpanel. But ISPConfig has some more secure methods available for cronjobs like jailed cronjobs or url cronjobs which are active by default. You might want to take a look into the ispconfig manual which explains the different options.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 28th September 2011, 11:19
Skyflash Skyflash is offline
Member
 
Join Date: Sep 2011
Posts: 56
Thanks: 4
Thanked 2 Times in 2 Posts
Send a message via Skype™ to Skyflash
Default

Quote:
There is nos such problem in ispconfig, as this all depends on the settings that you have choosen while you created the client in ispconfig. If you can run any binary as cronjob depends on your security settings. If you allow normal (not jailed) cronjobs in the client settings, then you can run your cronjob like you do it in cpanel. But ISPConfig has some more secure methods available for cronjobs like jailed cronjobs or url cronjobs which are active by default. You might want to take a look into the ispconfig manual which explains the different options.
Thanks again
I think i understood, and i'll try late today

Last question, please: there's no way, in ISPConfig, to make it runs cron jobs via the plugins i said, but without the need the user sets his own cron jobs in the panel?

I have (as client) two domains hosted in cPanel and Plesk, and i have no need to set any cron job in the panel. I activate the plugin, i schedule the backup, and it runs perfectly

Sorry again for my bad english. You know, i'm looking for a "idiot-proof" way to set backups for our clients that runs Wordpress
Reply With Quote
  #6  
Old 28th September 2011, 11:23
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,991
Thanks: 825
Thanked 5,375 Times in 4,222 Posts
 
Default

I dont know how the plugin that you use works, so I can not tell you why it works differently on other controlpanels. It might e.g. be that the plugin recognizes the controlpanel and then creates a special config for plesk.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Updating and Uploading to Wordpress website on ISPConfig3 - Fedora 13 MrCompTech Tips/Tricks/Mods 8 25th August 2014 14:18
Problems with wordpress on new server running ISPConfig 3 ashleykaryl General 9 28th July 2010 02:28
wordpress u Amorphous Installation/Configuration 2 10th July 2009 10:00


All times are GMT +2. The time now is 16:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.