apc opcode cache stops running for vhost when vhost has local php.ini

nisiwi

Registered
May 27, 2008
3
0
51
Hello, I've got APC Opcode cache installed via PECL module installer on a VPS and it seems to be running OK, which I've checked with the apc.php file.

However if a vhost uses a local php.ini file the Opcode cache stops running for that vhost (again checked with apc.php file), even if the contents of the php.ini are blank (so no rules overriding APC).

Any idea what would be causing this and how to enable local php.ini and keep APC running ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Do you experience the same issue when you copy the /usr/local/lib/php.ini file to the account instead of using a blank php.ini file?

Thank you.
 

nisiwi

Registered
May 27, 2008
3
0
51
Hmm, interesting thought cPanelMichael. I'll give that a try as it might reveal a problem with the file itself.

- - - Updated - - -

Aha! That got it. So what are your thoughts on what I'm missing cPanelMichael or was it the file itself ?

I'll try working that one through to find out.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
A custom php.ini file may not have the necessary entries that are required for the PECL module you have installed. Copying the primary php.ini file to the account or not using a php.ini file at all would prevent this problem.

Thank you.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter