Apache not found

kdl

Verified User
Joined
Jan 3, 2008
Messages
25
Location
Dinant, Belgium
Hi,

I am using débian 3.1 and I installed direct admin, everything seems to work fine, just that it tells me that HTTPD is stopped, and at the end of the installation, I am having the message below...

## REPORT_END
Permissions set
Can't open /etc/httpd/conf/httpd.conf: Aucun fichier ou répertoire de ce type.
Can't open /etc/httpd/conf/httpd.conf: Aucun fichier ou répertoire de ce type.

In English it means:

Can't open /etc/httpd/conf/httpd.conf: No files or repertory of this type.




I guess that apache isn't installed?

Any help would me appreciate.

Thanks
 
Try:

cd /usr/local/directadmin/custombuild

./build all d

Thanks, I just did it, and here is what the last line told me...

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file

I tried to find that file, but without succes.
 
kdl, could you post few lines before this error?

Here it is... I hope it isn't to much. And thanks for your help. I am using this server to learn, so if you want I can send you the acces code for the server.

checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 65536
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for off_t... yes
checking for size_t... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for memmove... yes
checking for bcopy... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting
config.status: creating lib/Makefile
config.status: WARNING: lib/Makefile.in seems to ignore the --datarootdir setting
config.status: creating lib/expat.h
config.status: creating config.h
xml/expat configured properly
setting APRUTIL_INCLUDES to "-I/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr-util/xml/expat/lib"
setting LDFLAGS to "-L/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr-util/xml/expat/lib"
setting APRUTIL_EXPORT_LIBS to "/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr-util/xml/expat/lib/libexpat.la"
setting APRUTIL_LIBS to "/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr-util/xml/expat/lib/libexpat.la"
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking for type of inbuf parameter to iconv... char **
checking for iconv.h... (cached) yes
checking langinfo.h usability... yes
checking langinfo.h presence... yes
checking for langinfo.h... yes
checking for nl_langinfo... yes
checking for CODESET in langinfo.h... yes
checking for library containing crypt... -lcrypt
checking if system crypt() function is threadsafe... no
checking for crypt_r... yes
checking style of crypt_r... struct_crypt_data
adding "/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr/libapr-1.la" to APRUTIL_LIBS
adding "-lrt" to APRUTIL_LIBS
adding "-lcrypt" to APRUTIL_LIBS
adding "-lpthread" to APRUTIL_LIBS
adding "-ldl" to APRUTIL_LIBS
configure: creating ./config.status
config.status: creating Makefile
config.status: creating export_vars.sh
config.status: creating build/pkg/pkginfo
config.status: creating apr-util.pc
config.status: creating apu-1-config
config.status: creating include/private/apu_select_dbm.h
config.status: creating include/apr_ldap.h
config.status: creating include/apu.h
config.status: creating include/apu_want.h
config.status: creating test/Makefile
config.status: creating include/private/apu_config.h
config.status: executing default commands
srclib/apr-util configured properly
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
configure: Using external PCRE library from /usr/local/bin/pcre-config
adding "-I/usr/local/include" to CFLAGS
setting LIBS to "-L/usr/local/lib -lpcre"

Configuring Apache httpd ...

setting INCLUDES to "-I."
adding "-I$(top_srcdir)/os/$(OS_DIR)" to INCLUDES
adding "-I$(top_srcdir)/server/mpm/$(MPM_SUBDIR_NAME)" to INCLUDES
adding "-I$(top_srcdir)/modules/http" to INCLUDES
adding "-I$(top_srcdir)/modules/filters" to INCLUDES
adding "-I$(top_srcdir)/modules/proxy" to INCLUDES
adding "-I$(top_srcdir)/include" to INCLUDES
adding "-I$(top_srcdir)/modules/generators" to INCLUDES
adding "-I$(top_srcdir)/modules/mappers" to INCLUDES
adding "-I$(top_srcdir)/modules/database" to INCLUDES
adding "-I/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr/include" to INCLUDES
adding "-I/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr-util/include" to INCLUDES
adding "-I/usr/local/directadmin/custombuild/httpd-2.2.6/srclib/apr-util/xml/expat/lib" to INCLUDES

Applying OS-specific hints for httpd ...

forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /bin/rm
checking for pkg-config... no
checking for rsync... /usr/bin/rsync
checking for gawk... no
checking for mawk... mawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... lynx
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... yes
checking for timegm... yes
checking for getpgid... yes
checking for void pointer length... yes
configure: error: Size of "void *" is less than size of "long"

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file

trying to configure Apache 2. Check the configure/ap2/configure.apache filehile
 
kdl, could you post few lines before this error?

Here it is... thanks for your help.


Applying OS-specific hints for httpd ...

forcing SINGLE_LISTEN_UNSERIALIZED_ACCEPT to "1"
forcing AP_NONBLOCK_WHEN_MULTI_LISTEN to "1"
checking for rm... /bin/rm
checking for pkg-config... no
checking for rsync... /usr/bin/rsync
checking for gawk... no
checking for mawk... mawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for lynx... lynx
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for AIX... no
checking for library containing strerror... none required
checking for ANSI C header files... no
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for ANSI C header files... (cached) no
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for unistd.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for strings.h... (cached) yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.h... yes
checking sys/processor.h usability... no
checking sys/processor.h presence... no
checking for sys/processor.h... no
checking sys/sem.h usability... yes
checking sys/sem.h presence... yes
checking for sys/sem.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for an ANSI C-conforming const... yes
checking for library containing sqrt... -lm
checking for getpwnam... yes
checking for getgrnam... yes
checking for initgroups... yes
checking for bindprocessor... no
checking for prctl... yes
checking for timegm... yes
checking for getpgid... yes
checking for void pointer length... yes
configure: error: Size of "void *" is less than size of "long"

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file

trying to configure Apache 2. Check the configure/ap2/configure.apache filehile
 
Doesn't debian install the httpd.conf file somewhere else?

Could you be confusing debian's install of httpd with your own?

Jeff
 
Try to run ldconfig and do:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build all d
 
Try to run ldconfig and do:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build all d

Still te same, but i looked into the directory on my gentoo serveur, and in the /etc/httpd directory I have some files...

And on the débian directory, I have noting... is there à way I can install apache manually?

Anyway thank for your help.
 
Hello,

The command:
Code:
ldconfig
was recently added to the build script to address that. The new pcre is being installed before apache is compiled, but the ldconfig command has to be run in order for apache to find it. Try the ./build update again... or failing that, just run "ldconfig" by itself to ensure it's being run then do the "./build all d" again.

There should be info in the custombuild/httpd-2.2.6/config.log ... the relevant info is probably 5 page up from the bottom.... just search for a library error relating to pcre.

John
 
ell dee config

LDCONFIG

in lower case

ldconfig

shoud be in the $PATH.. so from anywhere.

/sbin/ldconfig

if you want the full path.

John
 
I guess I am not smart enough, so I installed de server again from scratch, and here is what I did:

1) Installind debian 3.1 (I am hosted by OVH in France)
2) apt-get update
3) apt-get upgrade
4) wget http://www.directadmin.com/setup.sh
5) chmod 755 setup.sh
6) ./setup.sh
7) I entered all the information needed like License N° etc..
8) cd /usr/local/directadmin/custombuild
9) ./build update
10) ./build all d

11) When I run ldconfig, nothing happend... it juste goes on the line below. like this:

ks34609:/sbin# ldconfig
ks34609:/sbin#

What do I miss or what am I doing wrong. I am still geting this error:

*** There was an error while trying to configure Apache 2. Check the configure/ap2/configure.apache file
 
Also, when I try to restart httpd from the Direct Admin interface, it tells me:


Cannot find the script

Details

/etc/init.d/httpd

Am I missing some files?
 
I have installed débian 3.1 over and over again... and nothing seems to work.

My license for direct admin is for use with debian 3.1, is there à way I can chnge it to use à different version of linux...

I just took à license for one month (to see how it works)... but i really want to find à solution for my new server ...

If someone want to take à look at it... I am willing to give you the code in à email.

Thanks.
 
Last edited:
11) When I run ldconfig, nothing happend... it juste goes on the line below. like this:

ks34609:/sbin# ldconfig
ks34609:/sbin#
Which means that ldconfig ran fine. If it didn't it would have given you an error message.

Jeff
 
Which means that ldconfig ran fine. If it didn't it would have given you an error message.

Jeff

Thanks for your reply... but it still doesn't work...

I think that I am going to let my lisence run out... and take à new one, and have it installed automaticaly...
 
Back
Top