0
I have a Linux Centos VPS and the garbage collector configuration is wrong. I need to fix it in an easy way since I have very little knowledge of it. I wonder if there’s a way to set all the PHP settings to default. I use the Plesk control panel. There is the option to update PHP to another version, for example from 5.3 to 5.6. I would like to know if using this option all values would return to the normal PHP standard, which is what I need. Thank you.
Now I’m curious. Which version of PHP do you use?
– Not The Real Hemingway
I use version 5.3 of PHP. And I think about upgrading to version 5.6.
– Jonatan Haas
And what do you call "wrong"? Dangerous when you add the phrase "I have little knowledge" and say that something is wrong. If you can give more details, maybe the community can help in some way, beyond the main doubt.
– Bacco
Note that some hosts allow you for a proper php.ini or .user.ini at the root (or some equivalent system) that is taken into account by the execution, it depends on how it was configured and what mode of PHP is running. Have a look at the host’s support. This is also: http://php.net/manual/en/configuration.file.per-user.php
– Bacco
I have the following error: Error: PHP Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php/Session) failed: Permission denied (13)
– Jonatan Haas
This error concerns Garbage Collection. I believe the configuration is 0, and it should be 1.
– Jonatan Haas
This is version problem and not config problem. You can even do a gambiarra changing parameter, but it is better to change version. Changing GC config is not a real solution. Even distros with this problem and this version use crontab to clean GC
– Bacco
Then upgrading to version 5.6 would solve the problem?
– Jonatan Haas
This error appears hourly. The impression is that a CRON is being performed. Since when this error appears, the server is unavailable and inaccessible for a few moments or even minutes, as well as the website that is hosted in this VPS is also unavailable and all queries to the database are accumulated. So I believe it’s a configuration error. I think it is possible that the garbage collector is set to 0 and that is why PHP is collecting garbage via CRON.
– Jonatan Haas
This link may help something, but I don’t think that’s the problem: http://answall.com/q/167257/4793. Your question needs a more accurate diagnosis, which is impossible to do without access to the environment and besides that is not the purpose of the site. You can provide a more detailed diagnosis in question to increase chances of solving. Version 5.3, for example, does not present this problem. I even have an environment with Plesk and PHP5.3 running normally in production.
– Daniel Omine