httpd not found

Discussion in 'Installation/Configuration' started by guidovanh, Feb 25, 2006.

  1. guidovanh

    guidovanh Member

    On my Linux-server httpd is running (if it is not, users are unable to see my websites).
    I am trying to install ISPConfig. The setup-script says:
    httpd not found
    (my conf file is located in: /usr/local/apache/1.3.34/conf/httpd.conf)

    What can I do solve that problem?
     
    Last edited: Feb 25, 2006
  2. falko

    falko Super Moderator Howtoforge Staff

    Which distribution do you use? Did you use one of the "Perfect Setup" guides on HowtoForge to set up the system?

    Is your Apache located in an unusual location?
    Please run
    Code:
    updatedb
    locate httpd
    and post the output.
     
  3. guidovanh

    guidovanh Member

    I am using SuSE 10.

    I found and used this installation manual.

    the commands updatedb and locate httpd results in a
    command not found

    Maybe Appache is located in an unusual location, I followed the installation instruction from (the Dutch translation of) these manual (but I preferred to use the newest version of the applications).

    Thanks for help in advance.
     
    Last edited: Feb 26, 2006
  4. guidovanh

    guidovanh Member

    Is it possible (and recommended) to edit the setup script on such a way that the setup script find the httpd at the right place?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    The setup script is searching for the httpd in the usual places defined by your path variable. If you install your httpd in another location, you will have to make a symlink.

    Example:

    Code:
    ln -s /path/to/my/apache/binary /usr/bin/httpd
     
  6. guidovanh

    guidovanh Member

    I am sorry, I don't know what a symlink is.
    As mentioned in a previous message, my apache is located in /usr/local/apache/1.3.34, so I entered:

    Code:
    ln -s /usr/local/apache/1.3.34/bin /usr/bin/httpd
    When I run ISPconfig's setup again, the error message is the same: httpd not found.
     
  7. falko

    falko Super Moderator Howtoforge Staff

    This tutorial installs Apache in an unusual location, that's why the ISPConfig installer doesn't find it. You should use this tutorial instead: http://www.howtoforge.com/perfect_setup_suse_10.0

    Please run this:
    Code:
    yast -i findutils findutils-locate
    and then again
    Code:
    updatedb
    locate httpd
    and post the output.
     
  8. guidovanh

    guidovanh Member

    What happens the currently installed websites into httpd.conf and vhost.conf?
    Are they installed properly after the setup procedure described in mentioned URL?


    some utils were installed...

    Here's the output:

    Code:
    linux:/share/install_ispconfig # updatedb
    /usr/bin/find: /media/floppy: Geen medium gevonden
    linux:/share/install_ispconfig # locate httpd
    /etc/subdomain.d/program-chunks/httpd
    /etc/subdomain.d/usr.sbin.httpd2-prefork
    /opt/kde3/bin/krfb_httpd
    /opt/kde3/share/services/kinetd_krfb_httpd.desktop
    /root/.local/share/Trash/files/httpd.conf.txt
    /root/.local/share/Trash/files/httpd.conf.txt~
    /root/.local/share/Trash/info/httpd.conf.txt~.trashinfo
    /root/.local/share/Trash/info/httpd.conf.txt.trashinfo
    /share/install_ispconfig/compile_aps/httpd.conf_http
    /share/install_ispconfig/compile_aps/httpd.conf_https
    /share/install_ispconfig/mod/httpd
    /share/install_ispconfig/mod/httpd/httpd
    /share/LAMP/apache_1.3.34/conf/httpd.conf-dist
    /share/LAMP/apache_1.3.34/conf/httpd.conf-dist-nw
    /share/LAMP/apache_1.3.34/conf/httpd.conf-dist-win
    /share/LAMP/apache_1.3.34/htdocs/manual/programs/httpd.html.en
    /share/LAMP/apache_1.3.34/htdocs/manual/programs/httpd.html.html
    /share/LAMP/apache_1.3.34/htdocs/manual/programs/httpd.html.ja.jis
    /share/LAMP/apache_1.3.34/src/httpd
    /share/LAMP/apache_1.3.34/src/include/httpd.h
    /share/LAMP/apache_1.3.34/src/libhttpd.ep
    /share/LAMP/apache_1.3.34/src/libhttpd.so
    /share/LAMP/apache_1.3.34/src/support/httpd.8
    /share/LAMP/apache_1.3.34/src/support/httpd.exp
    /share/LAMP/php-5.1.2/sapi/phttpd
    /share/LAMP/php-5.1.2/sapi/phttpd/config.m4
    /share/LAMP/php-5.1.2/sapi/phttpd/CREDITS
    /share/LAMP/php-5.1.2/sapi/phttpd/php_phttpd.h
    /share/LAMP/php-5.1.2/sapi/phttpd/php.sym
    /share/LAMP/php-5.1.2/sapi/phttpd/phttpd.c
    /share/LAMP/php-5.1.2/sapi/phttpd/README
    /share/LAMP/php-5.1.2/sapi/thttpd
    /share/LAMP/php-5.1.2/sapi/thttpd/config.m4
    /share/LAMP/php-5.1.2/sapi/thttpd/CREDITS
    /share/LAMP/php-5.1.2/sapi/thttpd/php.sym
    /share/LAMP/php-5.1.2/sapi/thttpd/php_thttpd.h
    /share/LAMP/php-5.1.2/sapi/thttpd/README
    /share/LAMP/php-5.1.2/sapi/thttpd/stub.c
    /share/LAMP/php-5.1.2/sapi/thttpd/thttpd.c
    /share/LAMP/php-5.1.2/sapi/thttpd/thttpd_patch
    /usr/bin/httpd
    /usr/local/apache/1.3.34/bin/httpd
    /usr/local/apache/1.3.34/conf/httpd.conf
    /usr/local/apache/1.3.34/conf/httpd.conf~
    /usr/local/apache/1.3.34/conf/httpd.conf.bak
    /usr/local/apache/1.3.34/conf/httpd.conf.copy
    /usr/local/apache/1.3.34/conf/httpd.conf.default
    /usr/local/apache/1.3.34/include/httpd.h
    /usr/local/apache/1.3.34/libexec/httpd.exp
    /usr/local/apache/1.3.34/libexec/libhttpd.ep
    /usr/local/apache/1.3.34/libexec/libhttpd.so
    /usr/local/apache/1.3.34/logs/httpd.pid
    /usr/local/apache/1.3.34/man/man8/httpd.8
    /usr/share/doc/packages/jpackage-utils/httpd-javadoc.conf
    /usr/share/susehelp/httpd.conf
    /usr/share/susehelp/httpd.conf.old
    /usr/share/YaST2/modules/YaST/httpdUtils.pm
    /usr/src/kernel-modules/SubDomain/profiles/extras/usr.sbin.httpd
    /usr/X11R6/bin/vnc_inetd_httpd
    /web/htdocs/htdocs/manual/programs/httpd.html.en
    /web/htdocs/htdocs/manual/programs/httpd.html.html
    /web/htdocs/htdocs/manual/programs/httpd.html.ja.jis
    linux:/share/install_ispconfig #
    Hope it is clearly for you
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    If you have already sites installed on your server with your existing, you will either have to migrate them to the new ISPConfig directory trr or you sould not Install ISPCOnfig.

    The correct symlink command for your installation will be:

    Code:
    ln -s /usr/local/apache/1.3.34/bin/httpd /usr/bin/httpd
     
  10. guidovanh

    guidovanh Member

    Does ISPConfig provide an option to migrate the websites or can I 'simply' copy the websites to the trr directory?

    I'll try to translate what the result is of this command:
    Code:
    ln: making symbolic link: '/usr/bin/httpd/httpd' to '/usr/local/apache/1.3.34/bin/httpd': file exists
     
  11. falko

    falko Super Moderator Howtoforge Staff

    You must create web sites first in ISPConfig, and after ISPConfig has created the appropriate directories for these web sites, you can copy over your old web sites.



    Please post the output of
    Code:
    which httpd
     
  12. guidovanh

    guidovanh Member

    There was no output of which httpd.

    I also tell you the last few lines of the output of ISPConfig:

    Code:
    ########## WEB SERVER ##########
    
    which: no httpd in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    which: no apache in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    which: no apache2 in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    Checking for program httpd...
    which: no httpd in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    which: no httpd2 in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)
    ERROR: httpd not found!
    linux:/share/install_ispconfig # which httpd
    linux:/share/install_ispconfig #
    
     
  13. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    rm -fr /usr/bin/httpd
    ln -s /usr/local/apache/1.3.34/bin/httpd /usr/bin/httpd
    which httpd
    What's the output?
     
  14. guidovanh

    guidovanh Member

    Code:
    linux:/share/install_ispconfig # rm -fr /usr/bin/httpd
    linux:/share/install_ispconfig # ln -s /usr/local/apache/1.3.34/bin/httpd /usr/bin/httpd
    linux:/share/install_ispconfig # which httpd
    /usr/bin/httpd
    linux:/share/install_ispconfig #   
    
     
  15. falko

    falko Super Moderator Howtoforge Staff

    Ok, now you can try again to install ISPConfig.
     
  16. guidovanh

    guidovanh Member

    Falko, you are great! I think it's working now. May be there occur other problems, but for now it is working...
     

Share This Page