Compile PHP once for many domains?


#1

I followed the directions on the Wiki to install PHP on one of my domains, we’ll say domain1.com.

It shows how to edit the apache handler to reference:
/cgi-bin/php.cgi (in domain1.com)

Is there a way my other domains can reference this same PHP compiliation? I don’t want to compile PHP for every domain. I’d like to be able to point them towards the one I compiled for domain1.com.

I don’t think apache will let me do something like:
/…/domain1.com/cgi-bin/php.cgi

Anyone had success with something like this?


#2

I finally figured it out –

If I place a symbolic link to /domainWithPhP/cgi-bin/ then it works.