We help IT Professionals succeed at work.

Upgrade to Apache 2.2 from 2.0.54

gcmachel asked
Medium Priority
Last Modified: 2013-12-15
I may be doing something obviously wrong here, so somebody please set me straight.  In my quest to make XML and XSLTs work together, I updated a few packages on my Fedora Core 4 Linux installation.  To make a long story short, I followed these instructions:  http://www.sitepoint.com/article/transform-php-xslt/2  
Installed the following in this order:
- expat-2.0.0
- Sablot-1.0.2
- php-5.1.2

Now, when I restarted apache, I got this error:  
[root@TankJr ~]# service httpd start
Starting httpd: Syntax error on line 191 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/httpd/modules/libphp5.so into server: /usr/lib/httpd/modules/libphp5.so: undefined symbol: _pcre_default_tables

When I comment out line 191, apache starts fine, but without PHP.  

So, I decided to install the latest version of Apache, thinking that this would pick up all my latest changes and make everything good again.  Well, obviously that didn't happen because I am here.  

I followed the instructions on the Apache site:  http://httpd.apache.org/docs/2.2/install.html and tried to restart and it would not pick up the latest version. Here is the status

[root@TankJr src]# /usr/sbin/apachectl start
httpd: Could not determine the server's fully qualified domain name, using for ServerName
[root@TankJr src]# httpd -v
Server version: Apache/2.0.54
Server built:   Jan 17 2006 06:36:00

Bottom line now is that I can run apache, but not the newer version that I just installed.  I'm probably approaching this with a "Windows Mentality", but I'm stuck here and need some help.  Can anyone please jump in and give me some pointers?  
Watch Question


Update on this issue:  The PHP now works fine, but I still cannot start the Apache version 2.2, it defaults to my older instalation of Apache.  


Do the following:

locate libphp5.so

Once you have done that open your httpd.conf file and place the correct path to the libphp5.so file.


Thanks for your response.  The PHP is OK now (per my previous post), but I still cannot get the Apache 2.2 to engage.  How do I get my system to see the Apache 2.2 that I installed?  That's the million dollar question at the moment.  
If you followed the Apache instruction to install v2.2, then it got installed in the directory /usr/local/apache2. You'll need to edit the conf file under /usr/local/apache2/conf, and start apache using /usr/local/apache2/bin/apachectl start.

I suggest to stop using "service httpd" since it will start your old Apache. After Apache 2.2 is working fine, you should remove older version to make sure that nothing conflict using "rpm -e httpd".

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


Thank you, that gets me on the right track here!  I tried just what you said and it works!  :)  
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.