You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Eli Shemer <ap...@netvision.net.il> on 2007/07/03 05:38:03 UTC

apache and php

Hey,

 

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 ?

 

Thanks.


Re: apache and php

Posted by John ORourke <jo...@o-rourke.org>.
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:

<VirtualHost *:80>
    SetHandler perl-script
    ....
    <Location /php-stuff>
       SetHandler default  (I've tried with and without this, can work 
both ways)
    </Location>
    ....
</VirtualHost>


cheers
John


Re: apache and php

Posted by Jonathan Vanasco <jv...@2xlp.com>.
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

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
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