Where php.ini is located

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

Post by myVesta »

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 (do it in SSH, as root):

Code: Select all

sudo systemctl restart php7.x-fpm
(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.

Tags:

1webdomain
Posts: 6
Joined: Tue Sep 29, 2020 6:57 am
Re: Where php.ini is located

Post by 1webdomain »

THX


Post Reply