Click to See Complete Forum and Search --> : Can someone teach me of Apache installing?


X-KAM-X
03-29-2003, 12:16 AM
I download httpd-2.0.44.tar.gz
then i unzip it
it comes out a folder named httpd-2.0.44
when i type ./configure

[root@localhost httpd-2.0.44]# ./configure
bash: ./configure: No such file or directory

So i ls it and see
[root@localhost httpd-2.0.44]# ls
ABOUT_APACHE buildconf* InstallBin.dsp modules/
acconfig.h CHANGES libhttpd.dsp NWGNUmakefile
apachenw.mcp.zip include/ Makefile.in server/
BuildBin.dsp INSTALL Makefile.win srclib/

I saw buildconfig
then i type ./buildconfig
[root@localhost httpd-2.0.44]# ./buildconf
rebuilding srclib/apr/configure
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: libtool version 1.4.2 (ok)
Copying libtool helper files ...
Creating include/arch/unix/apr_private.h.in ...
Creating configure ...
rebuilding srclib/apr-util/configure
Creating include/private/apu_config.h ...
Creating configure ...
Invoking xml/expat/buildconf.sh ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Copying libtool helper files ...
Creating config.h.in ...
Creating configure ...
configure.in:75: AC_PROG_CPP was called before AC_PROG_CC
copying build files
rebuilding srclib/pcre/configure
rebuilding include/ap_config_auto.h.in
/usr/bin/m4: configure.in: No such file or directory
rebuilding configure
autoconf: configure.in: No such file or directory

Then i type Makefile...
but doesn't work...
I type ls again....

[root@localhost httpd-2.0.44]# ls
ABOUT_APACHE BuildBin.dsp include/ Makefile.in server/
acconfig.h buildconf* INSTALL Makefile.win srclib/
apachenw.mcp.zip CHANGES InstallBin.dsp modules/
build* config.h.in libhttpd.dsp NWGNUmakefile

Can anyone teach me how to finish the installation of apache???
Thank you~

chtla
03-29-2003, 12:56 AM
use a command similar to the following..

# ./configure --prefix=/usr/local/apache --enable- mods-shared=all --enable-so --enable-modules=most
# make
# make install

The option must attach surely when ./configure executes
At least there must be --prefix option

Refer the link.
http://httpd.apache.org/docs-2.0/install.html

theN
03-29-2003, 01:57 AM
Originally posted by chtla
# ./configure --prefix=/usr/local/apache --enable- mods-shared=all --enable-so --enable-modules=most

The option must attach surely when ./configure executes
At least there must be --prefix option
the --prefix option is not mandatory. If you don't specify it, Apache will be installed by default to /usr/local/

regards
theN

X-KAM-X
03-29-2003, 02:14 AM
But after i gzip -d, to upzip it
and i go into the httpd-2.0.44 folder
when i type ./configure
with prefix or not,
it says bash: ./configure: No such file or directory

What shall i do??

sharth
03-29-2003, 02:21 AM
try autoconf?

X-KAM-X
03-29-2003, 03:08 AM
When i try autoconf

it says No such file or directory


~.~
How come???

Gaston
03-29-2003, 09:47 AM
x-kam-x,

In httpd-2.0.44 directory, have you searched for
file called configure?
Just do ls -al con*, using asterisk "wild card" will match any file
starting with con and any character after that.
Also, make sure the file is executable, the you should see
something like:
-rwx-r-x-r-x where x stands for "execute". If that is not the
case, use command chmod to change the file to executable:

chmod 755 configure

Then you should be ready to go.

X-KAM-X
03-29-2003, 11:24 AM
GASTON, thanks for you reply,
but i have following problems :

1. when i type ls -al con*
[root@localhost httpd-2.0.44]# ls -al con*
-rw-r--r-- 1 root root 78 Mar 29 12:04 config.h.in

it cannot find the configure file...
I don't know why...

So i cannt march to the change mode step....


What shall i do??
please help..

sharth
03-29-2003, 01:37 PM
you have a bad file. I just downloaded the apache source and it does have a configure file.

Choozo
03-29-2003, 02:30 PM
And first of all - after re-downloading the package - make sure you read and understand the README and/or INSTALL file(s) supplied with the package.

X-KAM-X
03-30-2003, 10:37 AM
Originally posted by sharth
you have a bad file. I just downloaded the apache source and it does have a configure file.

YES YES~
Thank you!
I download it again, and i have successfully installed.

Thank you!
all of the one above!!!!

thank you very much !!! ^.^