Softaculous


Topic : Custom Package - remote zipped package


Posted By: yapjinkun on March 17, 2015, 2:54 am
Hi,

I'm trying to make a custom package for my custom built cms. How do I code in install.php so the installation will download latest zipped package from my remote server instead of I need to put it locally in all server (I will deploy this on multiple servers). It also will get new updates (how do it auto update installed sites)?

Posted By: Brijesh on March 18, 2015, 9:53 am | Post: 1
Hi,

>> I'm trying to make a custom package for my custom built cms. How do I code in install.php so the installation will download latest zipped package from my remote server instead of I need to put it locally in all server (I will deploy this on multiple servers).

You can use the wget command via shell_exec() in the install.php to download the package from your site and then unzip it. However you will have to add atleast one file in your ZIP package on the local server. You can add the license file.

>> It also will get new updates (how do it auto update installed sites)?

You will need to prepare the upgrade.php and upgrade.xml to allow upgrades of your installations.

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

Posted By: yapjinkun on March 18, 2015, 10:08 am | Post: 2
Quote From : Brijesh March 18, 2015, 9:53 am
Hi,

>> I'm trying to make a custom package for my custom built cms. How do I code in install.php so the installation will download latest zipped package from my remote server instead of I need to put it locally in all server (I will deploy this on multiple servers).

You can use the wget command via shell_exec() in the install.php to download the package from your site and then unzip it. However you will have to add atleast one file in your ZIP package on the local server. You can add the license file.

>> It also will get new updates (how do it auto update installed sites)?

You will need to prepare the upgrade.php and upgrade.xml to allow upgrades of your installations.


Hi Brijesh, thanks for the reply, much appreciate it.

There is another 2 question I need to clear up:

1)can a custom package have import function like pre-installed scripts (wordpress, joomla) ?

2)How do softaculous check my installed site's script version? based on a version file?

thanks

Posted By: Brijesh on March 18, 2015, 10:14 am | Post: 3
Hi,

>> 1)can a custom package have import function like pre-installed scripts (wordpress, joomla) ?

Yes you will have to make an import.php I have emailed you the import.php of WordPress which you can use for your reference.

Please Note : You will need to replace the function names as per your softname i.e. __import_wp and __version_wp

>> 2)How do softaculous check my installed site's script version? based on a version file?

This is done in the import.php

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

Posted By: yapjinkun on March 18, 2015, 10:16 am | Post: 4
Hi Brijesh,

Thanks again for the answers. I've received your email as well.

:D

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.