Certainly, it’s doable, though not that simple. However, I will add it to my to-do list.
I have disabled Jailkit, the ~/bin/wp is executing. I have also disabled php and reactivated php-fpm. The other thing I tried was removing the registered script and ran detect-scripts again.
Here are the issues I am facing:
- In the WP Workbench no information is loaded from WordPress. The module loads without error now, but values are not loaded.
- The backup works, but it couldn’t create the wordpress-backups folder by itself and gave an error, before I created it manually. After that it works.
No new errors appear in the wp-cli.log except the ones about the wordpress-backups folder missing, which is fixed.
I have not used the WP kit yet, but is enabling the exec() function in your PHP not dangerous?
No its fine, infact in one of my projects all the web auth is done in one module and then passes parameters to another module which can not be ran by a web user so it’s secure. I have written a function which is similar to exec but you would have to dig through quite a bit of code to find the function name to disable it
That may imply a problem with permissions for your home directory, or perhaps worse—you have mod_php installed?
To be clear—none of these issues ever happened on the dozens of test systems I have.
I thought the same, but after reading some articles, I have changed my mind. For example: https://www.reddit.com/r/PHP/comments/3exmzo/what_functions_are_preferred_to_be_disabled_to/?chainedPosts=t3_1c25n2v
Thanks Ilia, it took me time to realize that a WordPress security plugin called BBQ Firewall was interfering. Once it is inactive WP Workbench works like a charm, and of course with Jailkit disabled.
The fact that you have actually provided a CLI way to do many operations on WordPress in between Virtual Hosts is truly amazing for automation. I am removing many unnecessary steps and scripts in between just to simply clone my WordPress boilerplate whenever there is a new website, and that is truly amazing. Thanks again.
If you find out what specific rules are interfering can you post them here?
Thanks
Oddly, I was able to reproduce it! I will take a look in fixing it!
I have found the source of this bug, and it will be fixed in the upcoming WP Workbench 1.0.7 release!
@kamyar.hu Thanks a lot for reporting this in the first place!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
@Ilia Is there any way to use WP Workbench with a manual installation of WordPress? Thanks!
Yes, this will be included in the WP Workbench 2.0.0 release.
wp-cli.phar is placed in ~/bin/wp and permissions set to be executable by owner and group. Both the folder and .phar file owned by the virtualmin host’s user.
Starting with the next release, WP-CLI will automatically upgrade with WordPress updates and will also offer an option to install it using the UI if it’s missing.
@ilia It would be interesting if you could add the ability to schedule backups in the backup function of WP Workbench, just like in the general backup function of Virtualmin or Webmin.
Yes, this will also be available as part of the general Virtualmin backup API, with support to upload backups to different remote locations.