Dmitry Frantsev
Golden Pleskian
If you have problems with Mambo installation and similar to this error exists:
......................
Warning: sappmng: /usr/local/psa/var/cgitory/Mambo-4.5.3-21/scripts/postinstall execution failed:
install_prefix=mambo_hf
ssl_target_directory=false
dbname=mysql69d62b106cfe414a10447af662a
dbuser=usrd99392d4567d
dbpasswd=219144
admin_login=admin
admin_passwd=616847609789b5c3f4b97961acb2ebf9
admin_email=admin@domain.tld
site_name=mambo domain.tld
theme=tdwsepiafixed
ssl=http
application_url=mambo_hf/administrator/
vhost_path=/var/www/vhosts/domain.tld
domain_name=domain.tld
domain_display_name=domain.tldERROR 1071 (42000) at line 327: Specified key was too long; max key length is 1000 bytes
unable to import sql data:
/usr/bin/mysql --host="localhost" -u"usrd99392d4567d" -p"219144" "mysql69d62b106cfe414a10447af662a" </var/www/vhosts/domain.tld/httpdocs/mambo_hf/schema.sql.sql
proc_close() failed: Empty error message from utility.
......................
Then try to run script below:
#!/bin/sh
TMP_D=/tmp/mambo-fix
PSA_D="`awk '/^PRODUCT_ROOT_D/{print $2}' /etc/psa/psa.conf`"
MAMBO="$PSA_D/var/cgitory/Mambo-4.5.3-21/apps/httpdocs-files.tar"
if [ -f "$MAMBO" -a ! -f "$MAMBO"~ ]
then
mv "$MAMBO" "$MAMBO"~
mkdir -p "$TMP_D"
tar -C "$TMP_D" -xf "$MAMBO"~
sed -i -r 's~(UNIQUE KEY `.*section_value_value_aro`
\(`section_value`)(,`value`)(\),)~\1(166)\2(166)\3~' "$TMP_D/schema.sql"
tar -C "$TMP_D" -cf "$MAMBO" .
rm -rf "$TMP_D"
fi
Save the script into, for example, mambo_fix.sh file. Give execution permission to it and run it.
It should rebuild the package of the Mambo application so it could be installed (the script creates a backup copy of the source archive).
The lenght of some fields for KEY statement was reduced (from 240 to 166) so the summary key length is less than 1000 bytes.
As I know in next update for Mabo it will be corrected but as for now, try this solution if you meet similar problem. Hope it helps.
......................
Warning: sappmng: /usr/local/psa/var/cgitory/Mambo-4.5.3-21/scripts/postinstall execution failed:
install_prefix=mambo_hf
ssl_target_directory=false
dbname=mysql69d62b106cfe414a10447af662a
dbuser=usrd99392d4567d
dbpasswd=219144
admin_login=admin
admin_passwd=616847609789b5c3f4b97961acb2ebf9
admin_email=admin@domain.tld
site_name=mambo domain.tld
theme=tdwsepiafixed
ssl=http
application_url=mambo_hf/administrator/
vhost_path=/var/www/vhosts/domain.tld
domain_name=domain.tld
domain_display_name=domain.tldERROR 1071 (42000) at line 327: Specified key was too long; max key length is 1000 bytes
unable to import sql data:
/usr/bin/mysql --host="localhost" -u"usrd99392d4567d" -p"219144" "mysql69d62b106cfe414a10447af662a" </var/www/vhosts/domain.tld/httpdocs/mambo_hf/schema.sql.sql
proc_close() failed: Empty error message from utility.
......................
Then try to run script below:
#!/bin/sh
TMP_D=/tmp/mambo-fix
PSA_D="`awk '/^PRODUCT_ROOT_D/{print $2}' /etc/psa/psa.conf`"
MAMBO="$PSA_D/var/cgitory/Mambo-4.5.3-21/apps/httpdocs-files.tar"
if [ -f "$MAMBO" -a ! -f "$MAMBO"~ ]
then
mv "$MAMBO" "$MAMBO"~
mkdir -p "$TMP_D"
tar -C "$TMP_D" -xf "$MAMBO"~
sed -i -r 's~(UNIQUE KEY `.*section_value_value_aro`
\(`section_value`)(,`value`)(\),)~\1(166)\2(166)\3~' "$TMP_D/schema.sql"
tar -C "$TMP_D" -cf "$MAMBO" .
rm -rf "$TMP_D"
fi
Save the script into, for example, mambo_fix.sh file. Give execution permission to it and run it.
It should rebuild the package of the Mambo application so it could be installed (the script creates a backup copy of the source archive).
The lenght of some fields for KEY statement was reduced (from 240 to 166) so the summary key length is less than 1000 bytes.
As I know in next update for Mabo it will be corrected but as for now, try this solution if you meet similar problem. Hope it helps.