Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Apache 2.0.47 broke PHP

Apache 2.0.47 broke PHP
Thread Tools
Forum Regular
Join Date: Apr 2001
Location: NY, NY, USA
Status: Offline
Reply With Quote
Jul 10, 2003, 05:17 PM
 
I just upgraded to Apache 2.0.47 today, from 2.0.46. Now when I try to load PHP:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .phtml .php

It gives the error:

Syntax error on line 234 of /etc/apache2/httpd.conf:
Cannot load /usr/modules/libphp4.so into server: cannot create object file image or add library

Had no problem with 2.0.46. Here is how I have Apache and PHP configured:
Apache: ./configure --enable-layout=Darwin
PHP: ./configure --with-apxs2=/usr/local/apache2/bin/apxs --prefix=/usr
- Sahara
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Jul 12, 2003, 09:18 AM
 
When you update Apache you need to rebuild modules.
     
sahara  (op)
Forum Regular
Join Date: Apr 2001
Location: NY, NY, USA
Status: Offline
Reply With Quote
Jul 12, 2003, 02:15 PM
 
I know, I've rebuilt it every time. This is the first release that caused this trouble.
Update: in a fit of frustration, I deleted /usr/local/apache2 and installed from scratch. It seems that since deleting that, apache2 is no longer being installed at that location. Now everything is dispersed around /usr in locations that make more sense. Since using this new layout everything is working again. I'll ignore this random fluke and get on with my life now.
- Sahara
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:04 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2