apache upgrade to 2.x

Martink

Verified User
Joined
Apr 28, 2006
Messages
9
Hi,

Is it possible to upgrade apache to apache 2 on debian?

I tryed http://www.directadmin.com/features.php?id=441 but it gives a lot errors.

Code:
cp: cannot create regular file `/etc/rc.d/init.d/httpd': No such file or directory
chmod: cannot access `/etc/rc.d/init.d/httpd': No such file or directory
./build: line 1976: /sbin/chkconfig: No such file or directory
testbak:/usr/local/directadmin/customapache# ./build clean
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory
All clean!
testbak:/usr/local/directadmin/customapache# ./build update
cat: /etc/redhat-release: No such file or directory
cat: /etc/redhat-release: No such file or directory

and after ./build apache2

Code:
Installing header files
Installing man pages and online manual
mkdir /var/www/manual
Installing build system files
make[1]: Leaving directory `/usr/local/directadmin/customapache/httpd-2.0.55'
Restoring certificate and key, and turning on httpd for DirectAdmins's check.
cp: cannot create regular file `/etc/rc.d/init.d/httpd': No such file or directory
chmod: cannot access `/etc/rc.d/init.d/httpd': No such file or directory
./build: line 1976: /sbin/chkconfig: No such file or directory

It seems that he thinks that I'm using redhat? but I use debian 3.1.
 
Last edited:
Hmm after it was done it does give a error when I try to start the httpd:
Code:
Starting httpd: 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: PerlIOBase_binmode

When I comment out the line apache 2 works :D

but how do I fix the mod_perl error?
 
Lightbulb

Hello Martink,

I have stumbled upon this problem also when upgrading to apache2 etc. on debian. Now i have found the following solution. You have to apt-get libperl5.8 and apt-get libperl-dev.

After that recompile mod_perl et voila! it workd
 
Back
Top