Softaculous


Topic : Adding varnish plugin by default for new wordpress installation


Posted By: dadapro on June 1, 2016, 8:58 am
Hello,

I'd like to know how to , for the new wordpress installation, activate varnish plugin by default at the installation moment. Not simply make it available, but enable by default. Is there some example or documentation to do it? Many thanks.

Posted By: Brijesh on June 4, 2016, 8:25 am | Post: 1
Hi,

You can use the post_install hook :
http://www.softaculous.com/docs/Hooks#post_install

This hook is executed after an installation is completed and you will have all the installation details like path, url etc.

You can unzip the plugin package and update the WordPress database to activate the plugin with the database details you will receive as a parameter.

You can refer to the following references for functions you can use to unzip files and execute queries to database :
http://www.softaculous.com/docs/Making_Custom_Package#Explanation_of_Important_functions

Let us know if you face any issues.

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.