HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Unable to install ISPConfig (http://www.howtoforge.com/forums/showthread.php?t=33407)

bdonecker 8th April 2009 07:13

Unable to install ISPConfig
 
Hello,

I am following "The Perfect Server - CentOS 5.2" tutorial except I have CentOS 5.3 installed. I'm at the final steps of installing ISPConfig and when i attempt to run install.php I get the following errors before the install breaks:

Code:

PHP Notice: Undefined variable: distver in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
PHP Notice: Undefined variable: distid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
PHP Notice: Undefined variable: distbaseid in /tmp/ispconfig3_install/install/lib/install.lib.php on line 135
Linux Distribution of Version not recognized.

Is there any fix I can do to allow ISPConfig to install on CentOS 5.3?

edge 8th April 2009 07:22

Try this:

1) Run: rm -rf /tmp/trunk
2) Download ISPConfig3 again, and run the uninstall.php script (it's in the isntall folder to remove the failed install)
3) Run the install.php script.

fhawk 8th April 2009 08:13

edit /tmp/ispconfig3_install/install/lib/install.lib.php
find this:
Quote:

if(stristr($content,'CentOS release 5.2 (Final)')) {
$distname = 'CentOS';
$distver = '5.2';
$distid = 'centos52';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 5.2 or compatible\n");
}
change it:
Quote:

if(stristr($content,'CentOS release 5.3 (Final)')) {
$distname = 'CentOS';
$distver = '5.3';
$distid = 'centos52';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 5.3 or compatible\n");
}

bdonecker 8th April 2009 16:21

Thank you, fhawk. That worked perfectly!

RomaSvcs 10th April 2009 03:16

Installing ISPconfig3 (Centos5.3)
 
Quote:

Originally Posted by fhawk (Post 180435)
edit /tmp/ispconfig3_install/install/lib/install.lib.php
find this:


change it:

After a clean (fresh) CentOS 5.3 install. Installing ISPConfig 3 failed.

The steps done were:
Download ISPConfig 3xxxx from
http://www.ispconfig.org/downloads.htm

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
yum update
yum groupinstall 'Development Tools'
yum groupinstall 'Development Libraries'

# Disable the firewall:

system-config-securitylevel-tui


for Centos5.3:
i get an error because of the centos version.

edit ispconfig3_install/install/lib/install.lib.php
find this:
Quote:
if(stristr($content,'CentOS release 5.2 (Final)')) {
$distname = 'CentOS';
$distver = '5.2';
$distid = 'centos52';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 5.2 or compatible\n");
}
add after:
Quote:
if(stristr($content,'CentOS release 5.3 (Final)')) {
$distname = 'CentOS';
$distver = '5.3';
$distid = 'centos53';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 5.3 or compatible\n");
}
then copy and rename
ispconfig3_install/install/dist/conf/centos52.conf.php
to
ispconfig3_install/install/dist/conf/centos53.conf.php

copy and rename
ispconfig3_install/install/dist/lib/centos52.lib.php
to
ispconfig3_install/install/dist/lib/centos53.lib.php

Now you can install it!!!
cd /ispconfig3_install/install
php -q install.php

after i got:

# answer all questions...
error:
Select language (en,de) [en]: enter
Installation mode (standard,expert) [standard]: enter
Full qualified hostname (FQDN) of the server, eg server1.domain.tld []: server1.example.com
MySQL server hostname [localhost]: enter
MySQL root username [root]: enter
MySQL root password []: xxxxxxxxx
MySQL database to create [dbispconfig]: enter
MySQL charset [utf8]: enter

ERROR: Unable to load SQL-Dump into database table.

I check if root can connect to mySQL Data Base:
mysql -h remote.host.tld -u root -p
mysql -h server1.example.com -u root -p

also root can connect using phpmyadmin.

I think the problem is @ : line 160
/install/lib/installer_base.lib.php

It can create the DB but not the ispconfig user or any tables in the ISPconfig DBase!

The options @ /tmp/trunk/install/options.conf.php need to be in an install script somehow ?

Thanks

fhawk 10th April 2009 03:37

Quote:

Originally Posted by RomaSvcs (Post 180817)
After a clean (fresh) CentOS 5.3 install. Installing ISPConfig 3 failed.

The steps done were:
Download ISPConfig 3xxxx from
http://www.ispconfig.org/downloads.htm

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*
yum update
yum groupinstall 'Development Tools'
yum groupinstall 'Development Libraries'

# Disable the firewall:

system-config-securitylevel-tui


for Centos5.3:
i get an error because of the centos version.

edit ispconfig3_install/install/lib/install.lib.php
find this:
Quote:
if(stristr($content,'CentOS release 5.2 (Final)')) {
$distname = 'CentOS';
$distver = '5.2';
$distid = 'centos52';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 5.2 or compatible\n");
}
add after:
Quote:
if(stristr($content,'CentOS release 5.3 (Final)')) {
$distname = 'CentOS';
$distver = '5.3';
$distid = 'centos53';
$distbaseid = 'fedora';
swriteln("Operating System: CentOS 5.3 or compatible\n");
}
then copy and rename
ispconfig3_install/install/dist/conf/centos52.conf.php
to
ispconfig3_install/install/dist/conf/centos53.conf.php

copy and rename
ispconfig3_install/install/dist/lib/centos52.lib.php
to
ispconfig3_install/install/dist/lib/centos53.lib.php

Now you can install it!!!
cd /ispconfig3_install/install
php -q install.php

after i got:

# answer all questions...
error:
Select language (en,de) [en]: enter
Installation mode (standard,expert) [standard]: enter
Full qualified hostname (FQDN) of the server, eg server1.domain.tld []: server1.example.com
MySQL server hostname [localhost]: enter
MySQL root username [root]: enter
MySQL root password []: xxxxxxxxx
MySQL database to create [dbispconfig]: enter
MySQL charset [utf8]: enter

ERROR: Unable to load SQL-Dump into database table.

I check if root can connect to mySQL Data Base:
mysql -h remote.host.tld -u root -p
mysql -h server1.example.com -u root -p

also root can connect using phpmyadmin.

I think the problem is @ : line 160
/install/lib/installer_base.lib.php

It can create the DB but not the ispconfig user or any tables in the ISPconfig DBase!

The options @ /tmp/trunk/install/options.conf.php need to be in an install script somehow ?

Thanks

Do you disable SELinux???

fhawk 10th April 2009 03:40

http://www.howtoforge.com/perfect-se....2-ispconfig-3
Look this!!!

RomaSvcs 10th April 2009 03:40

ISPconfig 3 (centos 5.3) ERROR: Unable to load SQL-Dump into database table.
 
Yes it is disabled since the begining!

fhawk 10th April 2009 04:49

Quote:

Originally Posted by RomaSvcs (Post 180823)
Yes it is disabled since the begining!

Try this:

1) Run: rm -rf /tmp/trunk
2) Download ISPConfig3 again, and run the uninstall.php script (it's in the isntall folder to remove the failed install)
3) Run the install.php script.
__________________

fhawk 10th April 2009 04:55

You can drop the database of named dbispconfig。
and Then configure the insallation
#mysql_secure_installation
install ispconfig3 again!!


All times are GMT +2. The time now is 14:24.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.