Cannot complete install because of WEB SERVER

Discussion in 'Installation/Configuration' started by bzzik, Aug 30, 2008.

  1. bzzik

    bzzik New Member

    Hi guys!

    I am trying to install 2.2.25 version, but when install is checking my WEB SERVER installation it fails, cause I do have apache installed in /usr/local/apache and install can not find my httpd in /usr/local/apache/bin.

    What should I do to resolve this?

    Thanks!
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please configure your server as described in the perfect setup guide for your linux distribution if you want to run ISPConfig. Installing apache manually in a different location my cause various erroers and is not recommended.

    What you might do is that you create a symlink in /usr/bin/ that points to your sapache binary but if you dont reconfigure your system as described in the perfect setup, you will get various other problems.
     
  3. bzzik

    bzzik New Member

    Thaks for fast answer, I appreciate it.

    The problem is that there is no perfect install for my Slackware system ;) I have created symlink and it's ok with WEB SERVER now.

    Bu I faced another problem then with mySQL. Install says:

    ERROR: MySQL is not running! Please start your MySQL database and run the ISPConfig setup again.

    But I do have mysql running. It is in processes:

    mysql 2898 0.0 2.0 371116 42972 ? Sl 00:45 0:04 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysql/mysql.pid --skip-external-locking --port=3306 --socket=/var/run/mysql/mysql.sock

    Thanks in advance :)
     
    Last edited: Aug 30, 2008
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the output of
    Code:
    netstat -tap
    ? MySQL must use TCP instead of sockets in order to work with ISPConfig.
     
  5. bzzik

    bzzik New Member

    Hmm, mysql is there:

    tcp 0 0 *:3306 *:* LISTEN 6101/mysqld
     
  6. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Looks ok. Are there any MySQL errors in your logs? Have you tried to restart MySQL?
     
  7. bzzik

    bzzik New Member

    Yes, I tried. In log no errors at all:

    080831 20:51:58 InnoDB: Starting shutdown...
    080831 20:51:59 InnoDB: Shutdown completed; log sequence number 0 43655
    080831 20:51:59 [Note] /usr/libexec/mysqld: Shutdown complete

    080831 20:51:59 mysqld ended

    080831 20:52:03 mysqld started
    080831 20:52:03 InnoDB: Started; log sequence number 0 43655
    080831 20:52:03 [Note] /usr/libexec/mysqld: ready for connections.
    Version: '5.0.37-log' socket: '/var/lib/mysql/mysql.sock' port: 3306 Source distribution
     
  8. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Which distribution are you using?
     
  9. bzzik

    bzzik New Member

    I am using Slackware 12... I know, it is not supported, but in dist.txt I added this distribution and Install started to work :D

    In fact Slackware 10 and 12 not so different :eek:
     
  10. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Does Slackware use SELinux or AppArmor? If so, disable them.
     
  11. bzzik

    bzzik New Member

    No it does not
     
  12. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Then you should check where the setup2 script looks for MySQL. I guess the location is different on Slackware.
     
  13. bzzik

    bzzik New Member

    As I remember Install script during checking of installed components found MySQL and the error appears after that (when all necessary components are OK).
     
  14. bzzik

    bzzik New Member

    Here is the console text:

    Code:
    Please select the installation mode. In expert mode you have to answer some additional questions. In standard mode standard values are assumed for these questions.
    1) standard
    2) expert
    Your Choice: 1
    
    ########## MAIL SERVER ##########
    
    Checking for MTA...
    /usr/sbin/postfix
    OK
    
    ISPConfig found the following MTA:
    postfix
    Is this correct? [y/n]y
    
    
    ########## FTP SERVER ##########
    
    Checking if an FTP server is installed...
    /usr/sbin/proftpd
    OK
    
    ISPConfig found the following FTP server:
    proftpd
    Is this correct? [y/n]y
    
    
    ########## PROCMAIL ##########
    
    Checking for package procmail...
    /usr/bin/procmail
    OK
    
    ########## QUOTA ##########
    
    Checking for package quota...
    /usr/bin/quota
    OK
    
    ########## MYSQL SERVER ##########
    
    Checking for package MySQL...
    /usr/bin/mysql
    OK
    
    ########## OPENSSL ##########
    
    Checking for package openssl...
    /usr/bin/openssl
    OK
    
    ########## DNS SERVER ##########
    
    Checking for package bind...
    /usr/sbin/named
    OK
    
    ########## IPTABLES/IPCHAINS/IPFW ##########
    
    Checking for program iptables/ipchains/ipfw...
    /usr/sbin/iptables
    OK
    
    ########## WEB SERVER ##########
    
    Checking for program httpd...
    /usr/bin/httpd
    OK
    Checking the syntax of the httpd.conf...
    [Sat Sep  6 17:15:38 2008] [warn] module mod_php5.c is already added, skipping
    [Sat Sep  6 17:15:38 2008] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
    Syntax OK
    The syntax is ok!
    
    ########## gcc ##########
    
    /usr/bin/gcc
    OK
    
    ########## make ##########
    
    /usr/bin/make
    OK
    
    ########## lex ##########
    
    /usr/bin/lex
    OK
    
    ########## g++ ##########
    
    /usr/bin/g++
    OK
    
    ########## INSTALLATION ##########
    
    ERROR: MySQL is not running! Please start your MySQL database and run the ISPConfig setup again.
     
  15. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Please post the output of:

    netstap -tap | grep mysql
     
  16. bzzik

    bzzik New Member

    Here it is:

    netstat -tap | grep mysql
    tcp 0 0 *:3306 *:* LISTEN 7 568/mysqld
     
  17. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's in the ISPConfig installation log in /var/log/?
     
  18. bzzik

    bzzik New Member

    Sat Sep 6 17:15:22 EEST 2008 - [ISPConfig] - installation directory: /root/install/install_ispconfig
    Sat Sep 6 17:15:22 EEST 2008 - [ISPConfig] - operating system: Slackware 12.0.0
    Sat Sep 6 17:15:25 EEST 2008 - [ISPConfig] - Neuinstallation eines ISPConfig-Systems. / Installation of a new ISPConfig system. / Installation d'ISPConfig sur un nouveau systŠ„me.
    Sat Sep 6 17:15:28 EEST 2008 - [ISPConfig] - selected language: en
    Sat Sep 6 17:15:29 EEST 2008 - [ISPConfig] - installation note accepted
    Sat Sep 6 17:15:33 EEST 2008 - [ISPConfig] - licence accepted
    Sat Sep 6 17:15:35 EEST 2008 - [ISPConfig] - installation mode: standard
    Sat Sep 6 17:15:37 EEST 2008 - [ISPConfig] - mail: postfix
    Sat Sep 6 17:15:37 EEST 2008 - [ISPConfig] - dist_mail=postfix ##
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - ftp: proftpd
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - dist_ftp=proftpd ##
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - procmail found: /usr/bin/procmail
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - quota found: /usr/bin/quota
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - mysql found: /usr/bin/mysql
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - openssl found: /usr/bin/openssl
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - named found: /usr/sbin/named
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - iptables found: /usr/sbin/iptables
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - httpd found: /usr/bin/httpd
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - httpd syntax ok!
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - gcc found: /usr/bin/gcc
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - make found: /usr/bin/make
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - flex found: /usr/bin/lex
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - g++ found: /usr/bin/g++
    Sat Sep 6 17:15:38 EEST 2008 - [ISPConfig] - ERROR: MySQL is not running! Please start your MySQL database and run the ISPConfig setup again.

    Slackware is driven me crazy :) I am thinking to switch to CentOS may be ^^
     
    Last edited: Sep 9, 2008

Share This Page