Re: apache and php

2007-07-02 Thread William A. Rowe, Jr.
Eli Shemer wrote:
> 
> I have installed mod_perl 1.3 statically to apache while using php as a DSO
> 
> After I've gracefully reloaded apache, php stopped working
> 
> What is the best way to get them both working together ?
> 
> Should I statically link php as well or do I have to use mod_perl as a DSO ?

Did you forget to build mod_so into 1.3?

Bill


Re: apache and php

2007-07-02 Thread Jonathan Vanasco


On Jul 2, 2007, at 11:38 PM, Eli Shemer wrote:

I have installed mod_perl 1.3 statically to apache while using php  
as a DSO


After I've gracefully reloaded apache, php stopped working

What is the best way to get them both working together ?

Should I statically link php as well or do I have to use mod_perl  
as a DSO ?


there was some sort of library conflict between php/mysql/modperl a  
while back on a few distros.


i think the only way around it was to recompile everything from scratch.

generally speaking though... don't run mod_php and mod_perl on the  
same server.  you're just going to bloat apache and tie up resources.


i run nginx on port80 for static content, push php content to fastcgi  
and proxy certain urls to mod_perl.  my server's efficiency spiked  
drastically when i moved away from an all-apache setup.




// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -

|   CEO/Founder SyndiClick Networks
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -

| Founder/CTO/CVO
|  FindMeOn.com - The cure for Multiple Web Personality Disorder
|  Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -

|  RoadSound.com - Tools For Bands, Stuff For Fans
|  Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -





Re: apache and php

2007-07-02 Thread John ORourke

Jonathan Vanasco wrote:

i think the only way around it was to recompile everything from scratch.

generally speaking though... don't run mod_php and mod_perl on the 
same server.  you're just going to bloat apache and tie up resources.


I'm running both on Fedora Core 5 and 6, but I had to tweak it 
slightly.  I have a virtualhost which is fully under mod_perl's control 
but includes some php URLs:


In /etc/httpd/conf.d/php.conf:

uncomment "AddType application/x-httpd-php .php"

(this puts that mime type on .php files, which makes php process the 
file because the regular AddHandler method is ignored while SetHandler 
perl-script is in effect)


In httpd.conf:


   SetHandler perl-script
   
   
  SetHandler default  (I've tried with and without this, can work 
both ways)

   
   



cheers
John