Softaculous


Topic : Softaculous bug in installing Joomla 2 and 3


Posted By: Jim22 on October 16, 2014, 12:04 am
Environment: Hsphere 3.6.3 - latest Softaculous version 4.5.5

When installing Joomla 3 or Joomla 2 (3.3.6, 2.5.27 ) Softaculous will complain with a mysql syntax error.

This is caused by the file /var/softaculous/joomla30/joomla30.sql and /var/softaculous/joomla16/joomla16.sql containing the character "#" inside the COMMENT when creating a table.

To fix it temporarily:

Change by removing the "#" character from:
Quote
CREATE TABLE `[[dbprefix]]user_usergroup_map` (
  `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Foreign Key to #__users.id',
  `group_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Foreign Key to #__usergroups.id',
  PRIMARY KEY (`user_id`,`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

           
   
change to


               
Quote
CREATE TABLE `[[dbprefix]]user_usergroup_map` (
`user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Foreign Key to __users.id',
`group_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Foreign Key to __usergroups.id',
PRIMARY KEY (`user_id`,`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


There might be some parsing issues with Softaculous that caused this bug.


Edited by Jim22 : October 16, 2014, 12:04 am

Posted By: Jim22 on October 16, 2014, 1:31 pm | Post: 1
It seems that this is caused by Softaculous trying to connect to the real domain and if there's some sort of problem it would affect the parsing / replacement of the sql file during installation. The workaround that finally worked was to add the domain into /etc/hosts and point it to 127.0.0.1

The workaround in the previous post is not necessary.

Posted By: Brijesh on October 18, 2014, 10:14 am | Post: 2
Hi,

We make a curl call to the domain to encrypt the password when the PHP version is less than PHP 5.3 and since the domain was not having correct DNS it could not fetch the encrypted password and hence the database query failed.

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

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.