• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 678
  • Last Modified:

Upgrade to Apache 2.2 from 2.0.54

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
                                                           [FAILED]

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 127.0.0.1 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?  
0
gcmachel
Asked:
gcmachel
  • 3
1 Solution
 
gcmachelAuthor Commented:
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.  
0
 
xDamoxCommented:
Hi,

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.
0
 
gcmachelAuthor Commented:
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.  
0
 
MyrandorCommented:
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".
0
 
gcmachelAuthor Commented:
Thank you, that gets me on the right track here!  I tried just what you said and it works!  :)  
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now