I currently have a VPS (Ubuntu 18.04) (I’ve been using it for a couple of months) with 2 Prestashop websites (one is barely used, it’s in catalog mode and has very little load) and another one that is a small online shop in use. Besides this I have 2 Facturascrip webs in the same VPS.
I am trying to optimize my online store according to the recommendations of prestashop and when I put the parameters in
date.timezone = UTC
session.auto_start = Off
short_open_tag = Off
display_errors = Off
magic_quotes_gpc = off
; Increase this value if you are able to do it
memory_limit = 512M
max_execution_time = 300
max_input_time = 300
upload_max_filesize = 20M
post_max_size = 22M
; Increase this value if you work with products with a lot of combinations
max_input_vars = 20000
allow_url_fopen = on
First of all, thank you very much for your time and interest.
Sorry, but I don’t know if I understand correctly what you mean by reloading the page. The server works correctly until I introduce the exposed modifications and then the PHP services fall down, even if I try to start them it gives the following error:
Starting service php7.2-fpm …
Starting php7.2-fpm (via systemctl): php7.2-fpm.serviceJob for php7.2-fpm.service failed because the control process exited with error code.
See “systemctl status php7.2-fpm.service” and “journalctl -xe” for details.
– Unit php7.2-fpm.service has begun starting up.
Mar 12 13:38:14 php-fpm7.2: [12-Mar-2020 13:38:14] ERROR: [/etc/php/7.2/fpm/pool.d/158024615228293.conf:21] unknown entry ‘date.timezone’
Mar 12 13:38:14 php-fpm7.2: [12-Mar-2020 13:38:14] ERROR: Unable to include /etc/php/7.2/fpm/pool.d/158024615228293.conf from /etc/php/7.2/fpm/php-fpm.conf at line 21
Mar 12 13:38:14 php-fpm7.2: [12-Mar-2020 13:38:14] ERROR: failed to load configuration file ‘/etc/php/7.2/fpm/php-fpm.conf’
Mar 12 13:38:14 vps777835 php-fpm7.2: [12-Mar-2020 13:38:14] ERROR: FPM initialization failed
Mar 12 13:38:14 vps777835 systemd: php7.2-fpm.service: Main process exited, code=exited, status=78/n/a
Mar 12 13:38:14 vps777835 systemd: php7.2-fpm.service: Failed with result ‘exit-code’.
Mar 12 13:38:14 vps777835 systemd: Failed to start The PHP 7.2 FastCGI Process Manager.
– Subject: Unit php7.2-fpm.service has failed
– Defined-By: systemd
– Support: http://www.ubuntu.com/support
– Unit php7.2-fpm.service has failed.
– The result is RESULT.
and if I restart the server still doesn’t work. I am not modifying PHP.ini, I am modifying : /etc/php/7.2/fpm/pool.d/15805228293.conf
I’m trying to modify only the shop’s website.
As for modifying by CLI, I can try, but I’m a bit afraid I won’t be able to go back in case of an error like this.
You shouldn’t be afraid of using CLI as it will do the things the right way for you. I have taken a closer look at your issue, and it appears that you’re not using correct syntax. You can not put raw values, as they should be used as part of php_value, like: