hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Overriding static with DSO PHP

Forum Jump

Overriding static with DSO PHP

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Old 08-21-2002, 01:15 AM
Goni Goni is offline
Web Hosting Guru
Join Date: Nov 2001
Posts: 282

Overriding static with DSO PHP

There is one apache compiled with static php4. I want to override that php4 with a DSO compiled php. The problem is that I can't compile apache from the scratch cause it has a couple of other modules builtin which I don't currently have.
Is there any way to make apache load the new and not to read the old mod_php4.c ?
I tried commenting the line AddModule mod_php4.c and insert a new line LoadModule php4_module libexec/ but .. it just failed to load the new php. What could be done about it?


Sponsored Links
Old 08-21-2002, 02:41 AM
achost_ca achost_ca is offline
Web Hosting Guru
Join Date: Jul 2002
Location: Alberta, Canada
Posts: 348
to my knowledge u cant (thats recalling a post from rasmus, one of the developers of php, on hte mailing list)

AC Host Canada Affordable Canadian Web Hosting Solutions
Shared Hosting | Email Hosting | DNS Hosting | Custom Plans Available
Website: email:

Old 08-22-2002, 01:00 AM
CagedTornado CagedTornado is offline
Junior Guru
Join Date: Jul 2001
Location: Wrapped in CAT5.
Posts: 217
Lightbulb Ummm... bad idea

Ummm... this is a really bad idea. At the very least you're going to generate some asserts -- and at the worst Apache is going to core dump and fall over. The problem is that you're telling it to load the same module twice -- and in 2 different ways (and static is most likely going to win).


Dan Esparza
CagedTornado web services

Sponsored Links
Old 08-22-2002, 03:04 AM
Goni Goni is offline
Web Hosting Guru
Join Date: Nov 2001
Posts: 282
well, seems you are correct. I tried inserting a php3 modules and also php4, started apache and it give a Segmentation Fault and exits. No other error code was generated. Seems quite funny, but I did edit the apache binary and made a couple of changes, saved the binary and it did worked. Now what I am trying to do is to make some changes to the php section and make it not to load. Seems quite difficult as the whole code is embeded into the binary.
Any experience like doing this?


We eDrive your Business!
Web Hosting Solutions
Toll-Free in US and Canada: 1 (866)339-0849
International Callers: 1 (214)329-4291 or 1 (786)380-4896


Related posts from
Title Type Date Posted
Google-Backed Security Technology ShapeShifter Changes Website Code to Thwart Attackers Web Hosting News 2014-01-23 13:03:33
Hurricane Electric Expands Globally with Two New Canadian PoPs Web Hosting News 2013-08-08 14:50:16
CyrusOne to Build Second Data Center in San Antonio Web Hosting News 2013-08-08 14:40:08
Nasuni Launches Cloud Mirroring Feature to Storage Solution Web Hosting News 2013-08-08 14:15:27
Third Party Data Center Provider Budgets See Growth: Uptime Institute Survey Web Hosting News 2013-08-08 12:31:45

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting 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 Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
Web Hosting News:



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?