View Full Version : httpd not found
guidovanh
25th February 2006, 12:10
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?
falko
25th February 2006, 12:47
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
updatedb
locate httpd and post the output.
guidovanh
25th February 2006, 13:34
Which distribution do you use?
I am using SuSE 10.
Did you use one of the "Perfect Setup" guides on HowtoForge to set up the system?
I found and used this installation manual (http://www.ispconfig.org/manual_installation.htm).
Is your Apache located in an unusual location?
Please run
updatedb
locate httpd and post the output.
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 (http://www.linuxfocus.org/English/November2002/article270.shtml) manual (but I preferred to use the newest version of the applications).
Thanks for help in advance.
guidovanh
26th February 2006, 08:54
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?
till
26th February 2006, 09:34
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?
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:
ln -s /path/to/my/apache/binary /usr/bin/httpd
guidovanh
26th February 2006, 10:13
you will have to make a symlink.
Example:
ln -s /path/to/my/apache/binary /usr/bin/httpd
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:
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.
falko
26th February 2006, 10:58
Maybe Appache is located in an unusual location, I followed the installation instruction from (the Dutch translation of) these (http://www.linuxfocus.org/English/November2002/article270.shtml) manual (but I preferred to use the newest version of the applications).
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
the commands updatedb and locate httpd results in a
command not found
Please run this:
yast -i findutils findutils-locate
and then again
updatedb
locate httpd and post the output.
guidovanh
26th February 2006, 12:27
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
What happens the currently installed websites into httpd.conf and vhost.conf?
Are they installed properly after the setup procedure described in mentioned URL?
Please run this:
yast -i findutils findutils-locate
some utils were installed...
and then again
updatedb
locate httpd and post the output.
Here's the output:
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
till
26th February 2006, 12:39
What happens the currently installed websites into httpd.conf and vhost.conf?
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:
ln -s /usr/local/apache/1.3.34/bin/httpd /usr/bin/httpd
guidovanh
26th February 2006, 13:37
you will either have to migrate them to the new ISPConfig directory trr
Does ISPConfig provide an option to migrate the websites or can I 'simply' copy the websites to the trr directory?
The correct symlink command for your installation will be:
ln -s /usr/local/apache/1.3.34/bin/httpd /usr/bin/httpd
I'll try to translate what the result is of this command:
ln: making symbolic link: '/usr/bin/httpd/httpd' to '/usr/local/apache/1.3.34/bin/httpd': file exists
falko
26th February 2006, 16:08
Does ISPConfig provide an option to migrate the websites or can I 'simply' copy the websites to the trr directory?
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.
I'll try to translate what the result is of this command:
ln: making symbolic link: '/usr/bin/httpd/httpd' to '/usr/local/apache/1.3.34/bin/httpd': file exists
Please post the output of which httpd
guidovanh
26th February 2006, 16:20
Please post the output of which httpd
There was no output of which httpd.
I also tell you the last few lines of the output of ISPConfig:
########## 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 #
falko
26th February 2006, 16:37
Please run rm -fr /usr/bin/httpd
ln -s /usr/local/apache/1.3.34/bin/httpd /usr/bin/httpd
which httpd
What's the output?
guidovanh
26th February 2006, 16:42
Please run rm -fr /usr/bin/httpd
ln -s /usr/local/apache/1.3.34/bin/httpd /usr/bin/httpd
which httpd
What's the output?
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 #
falko
26th February 2006, 17:08
Ok, now you can try again to install ISPConfig.
guidovanh
26th February 2006, 17:14
Ok, now you can try again to install ISPConfig.
Falko, you are great! I think it's working now. May be there occur other problems, but for now it is working...
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.