php.ini at subserver level

4 posts / 0 new
Last post
#1 Tue, 04/02/2013 - 09:06
alanf

php.ini at subserver level

Hi,

I'm probably doing something wrong in teh setting or it is obvious but I can't see it.

I have serveral test/development sites that I set up as sub-servers of the main development site.

I want to turn error reporting on for these sites.

Virtaulmin allows me to edit the top server php.ini na dthat works fine. I sort of expected that the sub-servers would inheriot the top level server's php.ini but they don't. When I run phpinfo() I can see the subservers pick up /etc/php.ini not /home/[topserver]/etc/php5/php.ini and virtualmin doesn't seem to give me any options to edit the subsite php.ini.

Any advice?

Tue, 04/02/2013 - 10:02
andreychek

Howdy,

Normally, each Sub-Server would have it's own php.ini file... that's located in /home/USERNAME/domains/domain.tld/etc/php.ini.

If that's not being used, the typical reason for that is that the domain may be configured to use mod_php, rather than FCGID or CGI.

You can verify that in System Settings -> Website Options -> PHP Execution Mode.

-Eric

Tue, 04/02/2013 - 12:14
alanf

Thanks, yes you were right

Server Configuration -> Website Options -> PHP script execution mode

was mod_php

as this was not set as FCGid in the sub-server template

(solved another issue too I was having :) )

Thu, 10/04/2018 - 07:30
cron

I don't really follow here. How can the config be edited if we are using mod_php?

Topic locked