PDA

View Full Version : apache upgrade to 2.x


Martink
04-28-2006, 08:02 AM
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.


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


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.

Martink
04-28-2006, 09:10 AM
Hmm after it was done it does give a error when I try to start the httpd:

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?

Roy
06-03-2006, 04:03 PM
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