• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

setting up apache "virtual servers" with custom php.ini's

Ok, my current host (www.powweb.com) allows each user to eith use the default php settings, OR create their own php.ini file, and put it in their htdocs dir. I'm trying to do something similar with a server I have that will host a few different test sites. How would I go about doing this?
0
aaroncampbell
Asked:
aaroncampbell
  • 3
  • 2
1 Solution
 
ahoffmannCommented:
if you use php as module in apache (mod_php) then you can only have one php.ini (searched at the default place), 'hence there is no way to have different ones for each virtual host.
You need to use PHP as CGI, then each CGI can read its own php.ini.
Or you need to use one serverinstance for each virtual host (which requires a unique IP for each)
0
 
aaroncampbellAuthor Commented:
The problem is, I'm running php as a module, and would like to be able to still do this.  Does anyone know of a way to do this with php as a module?
0
 
ahoffmannCommented:
hmm, think you need to ask the apache and PHP developers ...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mrielfCommented:
See this link:
http://www.karakas-online.de/EN-Book/change-php-parameters.html

It's not exactly what you want, but hope it help.

0
 
ahoffmannCommented:
php_flag and php_value in httpd.conf do not help 'cause the only change the one mod_php (see my description above)
0
 
aaroncampbellAuthor Commented:
sorry for waiting so long...It seems that what I wanted to do is NOT possible without running php as a cgi.  I was hoping for a better answer :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now