Problem restarting Apache

TeraByte

New member
Joined
Dec 24, 2004
Messages
3
Hi,

My Apache is not starting so I though doing in manually, but I get this message and don't know what to do. Runing the beta Debian DA.

/etc/init.d/httpd restart

Stopping httpd:
Starting httpd: Syntax error on line 70 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libperl.so into server: /etc/httpd/modules/libperl.so: undefined symbol: Perl_Ipatchlevel_ptr

Anybody that know what to do in that case?
 
I'd try rebuilding the entire lot from customapache.

If that doesn't work, then I'd contact support, since this is still a beta release.

Jeff
 
I just installed DA on debian sarge and i'm getting the same error message anyone has a solution for this problem , i'm now doing a build update and build all maybe it helps.
 
Did the new build , run into problems with compiling php:

usr/bin/ld: cannot find -lltdl

Already a solution found on the forum:

# cd /usr/local/directadmin/customapache/libmcrypt-2.5.7/libltdl
# ./configure --enable-ltdl-install
# make
# make install
# make clean

But still when starting apache i get the same error message:

Starting httpd: Syntax error on line 70 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libperl.so into server: /etc/httpd/modules/libperl.so: undefined symbol: Perl_Ipatchlevel_ptr

Looked with google and i think its a problem with the perl who is installed with debian...
 
Last edited:
Got a answer from the helpdesk:

---
You'll need to remove the perl/mod_perl related lines from the /etc/httpd/conf/httpd.conf.

There should be a LoadModule and AddModule setting for perl: libperl, mod_perl.... remove those lines then restart apache. (it won't affect files running under the cgi-bin)
---

I already did that only not sure if it breaks the operation of apache this answer makes a very happy person...

Everything is running smoothly now....
 
Last edited:
Kick


I noticed that my cgi-bin dirs are not working, i am trying to execute the following script:

test.cgi:

#!/usr/bin/perl

print "Content-type: text/html\n\n";

print <<END_HTML;
<html>
<head></head>
<body>Hello, World!</body>
</html>
END_HTML

Getting a 500 error running this script, file right are 755.

Runnning from command line:

./test.cgi
-su: ./test.cgi: /usr/bin/perl: bad interpreter: Permission denied


suexec_log looks fine:

[2005-11-30 00:57:39]: info: (target/actual) uid: (blerrynl/blerrynl) gid: (blerrynl/blerrynl) cmd: test.cgi


Could this be related because of disabling the mod=perl ???

I am stuck and cant find any solution.
 
Hi

I have also this same problem, but not sure, how this perl made to DA and Apache on DEBIAN 3.1:

We tryed update our apache 1.3.34 and php 4.4.2 to apache 1.3.37 an php 4.4.4 with custom
build script. (default installation, anything not modified)


Everything looks like complied ok, but when try restart apache again:

www10:/usr/local/directadmin/customapache# /etc/init.d/httpd restart
Stopping httpd:
Remaining processes: 10144
Stopping httpd:
Starting httpd: Syntax error on line 99 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libperl.so into server: /usr/lib/apache/libperl.so: undefined
symbol: Perl_Ipatchlevel_ptr

www10:/usr/local/directadmin/customapache# /etc/init.d/httpd start
Starting httpd: Syntax error on line 155 of /etc/httpd/conf/httpd.conf:
Cannot add module via name 'mod_perl.c': not in list of loaded modules

Solved this for our production server, that disabled PERL modules (comment # lines 99 and 155)

99: #LoadModule perl_module /usr/lib/apache/libperl.so
155: #AddModule mod_perl.c

NOTE: I itself backuped also httpd.conf before update with customscript and checked, there was also #comment these lines, so update removed these or say uncomment these lines.

I made test script, it work ok:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<H1>Hello World</H1>\n";

CHECKED phpinfo:

Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7e PHP/4.4.4 FrontPage/5.0.2.2510

### CHECKED this new install ###
That mod_perl not installed on apache ...

Checked new install on debian 3.1, setup.sh install same way, phpinfo says that no any mod_perl module:

Apache Version: Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7e PHP/4.4.4 FrontPage/5.0.2.2510
Apache Release: 10337100
Apache API Version: 19990320
### END ###
 
Last edited:
libperl debian problem SOLVED

The solution to this problem is very simple, the customapache build needs libperl development files on Debian to build a proper mod_perl.

apt-get install libperl-dev

cd /usr/local/directadmin/customapache

./build all


That should do the trick :)
 
i got

Cannot load /etc/httpd/modules/libperl.so into server: /etc/httpd/modules/libperl.so: undefined symbol: Perl_Ipatchlevel_ptr


what can be?

thanks
 
If u are on Debian the answer is above ur post :)

The solution to this problem is very simple, the customapache build needs libperl development files on Debian to build a proper mod_perl.

apt-get install libperl-dev

cd /usr/local/directadmin/customapache

./build all


That should do the trick :)
 
Back
Top