Thank you for your clear guide. I tried what you said, but still have problems. Let me explain it:
1) Wordpress, phpBB and others are being perfectly installed by WHMCS-Softaculous Auto Install. Everything is fine.
2) I uploaded the custom package under /var/softaculous/abc as:
Code
root@server [/var/softaculous]# ls -l /var/softaculous/abc
total 44
drwxr-xr-x. 3 root root 4096 Feb 24 11:28 ./
drwxr-xr-x. 8 root root 12288 Feb 24 10:39 ../
-rw-r--r--. 1 root root 298 Feb 24 11:28 abc.sql
-rw-r--r--. 1 root root 149 Feb 24 11:28 abc.zip
-rw-r--r--. 1 root root 9 Feb 24 11:28 fileindex.php
drwxr-xr-x. 2 root root 4096 Feb 24 11:28 images/
-rw-r--r--. 1 root root 697 Feb 24 11:28 info.xml
-rw-r--r--. 1 root root 102 Feb 24 11:28 install.php
-rw-r--r--. 1 root root 249 Feb 24 11:28 install.xml
3) abc.zip includes just: index.php (After extraction, there is no folder "abc").
PHP Code echo "Hello Softaculous!";
4) abc.sql is:
Code
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+02:00";
CREATE TABLE IF NOT EXISTS `abc` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`abc` varchar(127) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
5) fileindex.php is:
6) info.xml is:
Code
<soft xmlns="http://www.softaculous.com">
<overview>
<img src="abc.png" style="float:right;margin:10px;" alt="" />{{overview}}
</overview>
<demo>
http://www.example.com.tr
</demo>
<space>
10000000
</space>
<support>
http://www.example.com.tr
</support>
<version>
0.1.0
</version>
<release_date>01-02-2014</release_date>
<softversion>
4.4.4
</softversion>
<languages>
<english-overview>
ABC CMS
</english-overview>
<english-features>
<ul>
<li>Simple CMS</li>
</ul>
</english-features>
</languages>
</soft>
7) install.php is:
PHP Code function __install() {
global $software;
sdb_import($software['softname'] . '.sql');
}
8) install.xml is:
Code
<softinstall xmlns="http://www.softaculous.com">
<settings>
<group>
<heading>hidden</heading>
<input type="hidden" name="dummy" value=""></input>
</group>
</settings>
<db>mysql</db>
</softinstall>
9) cscripts.php says:
PHP Code $cscripts = array(10001 => array('name' => 'ABC',
'softname' => 'abc',
'desc' => 'ABC - Test',
'ins' => 1,
'cat' => 'others',
'type' => 'php',
'ver' => '0.1.0'
)
);
10) softaculous_extra.php is:
PHP Code $softaculous_conf['protocol'] = 'http://www.';
$softaculous_conf['user_mod_dir'] = 0; //Set this to 1 if you want to use User MOD Dir. If enabled the script will be installed at http://IP/~username
$softaculous_conf['overwrite_existing'] = 0; //Set this to 1 if you want to overwrite the files and install the script forcefully. If enabled the script will be installed even if the files already exists
$softaculous_conf['use_special_chars'] = 0; // Set this to 1 if you wish to use special characters for randomly generated usernames and passwords
$add_softaculous_scripts = array(10001 => array('name' => 'ABC',
'softname' => 'abc',
'desc' => 'ABC - Test',
'ins' => 1,
'cat' => 'others',
'type' => 'php',
'ver' => '0.1.0'
)
);
11) Port 2083 is open.
12) "Script", "Admin Name", "Admin Pass" and "Directory" are OK.
13) With softaculou_debug.php file, there are no errors in the logs as you mentioned, WHMCS -> Utilities -> Logs -> Activity Logs. It says, "Module Create Successful" as regularly.
And finally,
the directory of the product domain is empty. There is no "index.php" or no database is created.
Sincerely...
|