Where php.ini is located

Post Reply
User avatar
dpeca
Site Admin
Posts: 236
Joined: Fri Jun 19, 2020 9:59 am
Location: Serbia, Niš
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
  • 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.
Restart php-fpm also 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.

Tags:


Post Reply