issue starting apache...help please?

icer

Verified User
Joined
Jun 10, 2005
Messages
22
[root@elatha][/usr/lib/apache]$ apachectl start
Syntax error on line 68 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/mod_perl.so into server: /usr/lib/apache/mod_perl.so: Undefined symbol "apr_bucket_shared_split"
/usr/sbin/apachectl start: httpd could not be started
[root@elatha][/usr/lib/apache]$

when i hash out line 68 (mod_perl.so) i then get:

[root@elatha][/etc/httpd/conf]$ apachectl start
Syntax error on line 66 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/local/libexec/apache2/libphp4.so into server: /usr/local/libexec/apache2/libphp4.so: Undefined symbol "apr_pstrdup"
/usr/sbin/apachectl start: httpd could not be started

so whats up with my modules?

how do i fix this?

Im running FBSD 5.4-p5
thanks
 
Last edited:
Last edited:
this might sound stupid

but how do i add the module?

mod_perl.c? where do i add it? and whats wrong with my mod_perl.so ?
 
i just took the next step.

Im reinstalling apache2 using this guide:

http://www.directadmin.com/features.php?id=441

now, this is what i get up to. ( i finish ALL the ./build php_ap2 stuff but it gets up to... )

Done zZip
Found /usr/local/directadmin/customapache/php-4.4.0.tar.gz
Extracting ...
Done.
ln: /usr/lib/libltdl.so: File exists
Configuring php-4.4.0...
loading cache ./config.cache
checking host system type... i386-unknown-freebsd5.4
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... yes
checking for re2c... exit 0;
checking whether ln -s works... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking for bison... bison -y
checking bison version... 1.75 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking whether byte ordering is bigendian... no
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs. Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of /usr/sbin/apxs follows:
/libexec/ld-elf.so.1: Shared object "libexpat.so.5" not found, required by "httpd"
apxs:Error: Sorry, no shared object support for Apache.
apxs:Error: available under your platform. Make sure.
apxs:Error: the Apache module mod_so is compiled into.
apxs:Error: your server binary `/usr/sbin/httpd'..
configure: error: Aborting

*** There was an error while trying to configure php. Check the configure.php file

[root@elatha][/usr/local/directadmin/customapache]$


----------------------------------
where do i go from here?

i tried moving to next step ( ./build mod_frontpage_ap2 ) but got the same error as above just shorted crying about apxs and yes apxs is installed on the machine.

$ perl -v
This is perl, v5.8.7 built for i386-freebsd-64int

fbsd 5.4. and php4 is installed with DA when this is done right? Need anything else?
apache 2.0.55 is what i want up.
 
Last edited:
you configure script maybe has

./configure \
--with-apxs2 \

if you definitley have /usr/sbin/apxs
on you system, try changing this to:

./configure \
--with-apxs2=/usr/sbin/apxs \


and run configure.php_ap2 again.
 
thanks anyway, but i fixed.

People, if DA says a lib is missing but you have it in your system, make a sym link (ln -s) from your existing file to /lib.

Fixed my problems!
Thanks all anyway. Enjoy!
 
Back
Top