DeveloperSide.NET Forums
July 24, 2019, 12:28:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Apache problem  (Read 30949 times)
0 Members and 1 Guest are viewing this topic.
steveatk
Member
*
Posts: 1


View Profile
« on: January 09, 2004, 11:54:40 AM »

Using Red Hat 9 which had a previous installation of Perl 5.6, Apache 2.0.40, PHP 4.2.2 and MySQL 3.3.2 all from RPM's

The previous install worked perfectly, but after reading the guide on this site I thought I would upgrade as the guide appears concise and up to date, but I have a problem.

1. /usr/local/src/zlib-1.1.4

./configure -s
make test
make install
cp zutil.* /usr/include
ldconfig

2. /usr/local/src/Perl-5.8.2

rm -f config.sh Policy.sh
sh Configure -de
make
make test
make install

3. /usr/local/src/openssl-0.9.7c

./config --prefix=/usr/local/ssl shared zlib-dynamic
./config -t
make ** At this point I get LOTS of warnings ('-m486' is deprecated. Use '-march=i486' or '-mcpu=i486' instead)
make test
make install

edit /etc/ld.so.conf
add /usr/local/ssl/lib
ldconfig

edit /root/.bash_profile
add /usr/local/ssl/bin to the PATH variable

4. /usr/local/src/httpd-2.0.48

./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate=shared --enable-ssl=shared --with-z=/usr/lib --with-ssl=/usr/local/ssl
make
make install

Now to test with the default httpd.conf

cd /usr/local/apache2/bin
./apachectl start

At this point I am stuck, I've reinstalled 4 times now and been stopped at this position each time with the following error message

Syntax error on line 239 of /usr/local/apache2/conf/httpd.conf
Cannot load /usr/local/apache2/modules/mod_deflate.so into server: /usr/local/apache2/modules/mod_deflate.so: undefined symbol: deflate


I removed all of the old RPM packages but this error seems to me that a library or resource that mod_deflate requires is not available, or it the wrong version. Could it be that the removal of the old packages left some files which the new installation could not then overwrite?

Also, if I remove the references to deflate from httpd.conf, I get a further error within each <directory> section

Invalid command "Open", perhaps misspelled or defined by a module not included in the server configuration.
Logged
Anonymous
Guest
« Reply #1 on: January 09, 2004, 06:07:55 PM »

run 'ps -auxf'
see if the old httpd is running. or if the new Apache2 is running.
run 'netstat -ape' to see if anything is binding to port 80.
Did you remove the old httpd from services? 'chkconfig --list'
Logged
Anonymous
Guest
« Reply #2 on: January 09, 2004, 06:10:48 PM »

You are building zlib-1.1.4 and not 1.2.1 ?  The link from the guide will take you to 1.2.1
Logged
Anonymous
Guest
« Reply #3 on: January 09, 2004, 06:13:33 PM »

Your only building the shared (-s) zlib libs, you also need to build the static libs.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #4 on: January 09, 2004, 06:17:00 PM »

Another thing, if your RH distro had /usr/local/apache2 originally, your new build will NOT overwrite the /usr/local/apache2/conf/httpd.conf file.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #5 on: January 09, 2004, 06:21:37 PM »

Quote

./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate=shared --enable-ssl=shared --with-z=/usr/lib --with-ssl=/usr/local/ssl


./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-deflate --enable-ssl --with-ssl=/usr/local/ssl
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Anonymous
Guest
« Reply #6 on: January 09, 2004, 06:25:10 PM »

Yes I know httpd.conf, but thanks for your reply, oh and I was building the static libs for zlib, I just didn't put them in my little list for some reason.

I've had a friend of mine look at it, he's a network engineer for an ISP who use unix boxes predominantly (I'm an MS person myself but trying to switch :) ) and he says the server seems to be having a few
fundamental problems loading any sort of libraries.  It cannot seem to load any that he's tried, including libssl, libphp4.so, etc.

The quickest and easiest way to fix this will be to take a backup of any data and do a total fresh re-install of the server with Redhat 9, so I'm doing that.

I will use your guide again except on a fresh install this time and hopefully things will work first time.

Thanks for you help, and I hope I won't need it again in the next few days  :lol:
Logged
Anonymous
Guest
« Reply #7 on: January 09, 2004, 06:26:43 PM »

just missed your last reply.. I tried the configure line as you suggested the first 3 times I tried to install, I added '=shared' to the mods on the last attempt to see if it would make any difference, it didn't of course.
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #8 on: January 09, 2004, 06:59:21 PM »

The problem might have happened if you 'rpm -e' something and forced it, removing some dependency.

RH does not usually put the things we are talking about under /usr/local, so there is no need to remove the original packages.

You just have to make sure httpd is removed from services, and that ldconfig is run after zlib and openssl.

It works exactly like it should under RH 7.2/3 and I have had no complaints with other users, except for some Mandrake problem.

Of course, this could also be something completely unrelated...

Anyways, good luck and don’t hesitate to post back.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Anonymous
Guest
« Reply #9 on: January 09, 2004, 11:31:33 PM »

well thank you for your advice and pointers, they are very much appreciated.

I've got apache working now without rebuilding the server (phew) I'm pretty sure it is because I removed those RPM's.

I reinstalled a few of them and tested apache afterwards and voila, it works.

As I've decided to not rebuild the server and persevere I may just pop in here again to pick your brains some more if you don't mind - only if I get any other problems though.

I should have realised that the RPM's would not have been affected, or have an effect on the compiled source. At least I know for future reference :)

Thanks again.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!