Where php.ini is located
Where php.ini is located
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):
(where 7.x is 7.3 for example)
Please note:
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.
(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
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
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:
Re: Where php.ini is located
I just did a fresh install of myvesta and try to edit the php file but my php.ini file is blank. I input the desired values in basic form but it keeps erasing and I paid for the file manger addon and got it up but I still can't get to edit the /etc/php/7.3/fpm/php.ini file like you stated in this post. what am i missing please?
Re: Where php.ini is located
FileManager can't reach /etc/php/7.3/fpm/php.inicrafter wrote: ↑Mon Nov 15, 2021 10:46 amI just did a fresh install of myvesta and try to edit the php file but my php.ini file is blank. I input the desired values in basic form but it keeps erasing and I paid for the file manger addon and got it up but I still can't get to edit the /etc/php/7.3/fpm/php.ini file like you stated in this post. what am i missing please?
Please screenshot your SSH console while you are trying to edit /etc/php/7.3/fpm/php.ini
Also, please mention what Debian version you are using?
Re: Where php.ini is located
I'm using Debian 10. i use Putty to access ssh as root. I'm a novice so i just copy and paste the command line you put up here and follow instructions. so i input: /etc/php/7.3/fpm/php.ini and got "-Bash: /etc/php/7.3/fpm/php.ini: Permission denied.
The problem is i want to change the Post max, max input, memory limit etc of the php 7.3 but it wasn't saving and the advance editing option only shows: "Usage: CONFIG" and nothing else but I'm familiar with editing php.ini file so i know there should be more.
Furthermore, the vesta-php configuration link takes me to a page that shows: "Page not Found"
The problem is i want to change the Post max, max input, memory limit etc of the php 7.3 but it wasn't saving and the advance editing option only shows: "Usage: CONFIG" and nothing else but I'm familiar with editing php.ini file so i know there should be more.
Furthermore, the vesta-php configuration link takes me to a page that shows: "Page not Found"
Re: Where php.ini is located
In SSH type:
Code: Select all
sudo mcedit /etc/php/7.3/fpm/pool.d/your-domain.com.conf
Exit with ESC keyboard key.
Then restart php7.3:
Code: Select all
sudo systemctl restart php7.3-fpm
Code: Select all
sudo mcedit /etc/php/7.3/fpm/php.ini
Re: Where php.ini is located
These steps worked like magic
. Thank you very much and especially for how fast you responded. More codes to your brain 

