• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

php.ini

V

viruseater

Guest
I've done some searching, and I'm not finding the answer to my problem, although I do see suggestions for fixes that don't exist.

I need to raise the memory allocation to 16mb for PHP. I've edited the stinkin php.ini file, and i've searched everthing i could think of. No matter what I do, it remains 8MB both local and global.

This has got to be something I'm missing, but for the life of me I can't find it.

Any help is appreciated. What I'm really looking for is what ini file sets those variables. It's definitely not the /etc/php.ini because that's been changed, and restarted.
 
Create a file called phpinfo.php, with just the following in it:

<?php phpinfo() ?>

Access that via the web and check what the "Configuration File (php.ini) Path" value is - that is what controls PHP. Ensure you restart httpd aftertwards.
 
That's precisely what boggles me.

I'm familiar with the infopage, and it SAYS /etc/php.ini

But, I've changed the value to 16 in that file, and restarted. Nothing changed, so I went as far as restarting the whole server. No dice.

Since then I've gone in 4 or 5 times thinking I must have missed it or been looking somewhere else.

I just don't understand how that's even possible
 
For my servers it worked (/etc/php.ini), but in psa you have one more php.ini:

/usr/local/psa/admin/conf/php.ini

Is that the right one?
 
You did, of course, remember to restart apache after changing the values in php.ini, right?
 
As long as the right php.ini is being changed, it should work. We were able to change this on ours with no problem.
 
You are sure that you edited /etc/php.ini?
There might be more php.ini-files like /etc/php.ini.rpmnew.

Be sure that 'cat /etc/php.ini | grep memory_limit' only returns one line and memory_limit = 16M.
 
Originally posted by Who-m3
You did, of course, remember to restart apache after changing the values in php.ini, right?

Please read with "open eyes" ....

But, I've changed the value to 16 in that file, and restarted. Nothing changed, so I went as far as restarting the whole server. No dice.

So he restarted the whole server .... ;):D

Regards Outi
 
Back
Top