Where php.ini is located

Post Reply
User avatar
Site Admin
Posts: 358
Joined: Fri Jun 19, 2020 9:59 am
Where php.ini is located

Post by dpeca »

Location of php.ini is /etc/php/7.x/fpm/php.ini
(where 7.x is 7.3 for example)

After you make the changes, you should restart php-fpm:

Code: Select all

service php7.x-fpm restart
(where 7.x is 7.3 for example)

Please note:
  • memory_limit
  • max_execution_time (also consider: request_terminate_timeout)
  • upload_max_filesize
  • post_max_size
  • open_basedir
  • upload_tmp_dir
  • sendmail_path
  • mysql.allow_persistent
  • safe_mode
... are overrided in /etc/php/7.x/fpm/pool.d/your-domain.com.conf files.
These variables you should change there.
Also restart php-fpm after those changes.

If you need different default values for newly created domains, edit /usr/local/vesta/data/templates/web/apache2/PHP-FPM-7x.sh files.


Post Reply