Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Custom php.ini

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
rvamecca
Posts: 4
Joined: Thu Feb 25, 2021 11:48 pm

Os: Ubuntu 18x
Web: apache + nginx
Custom php.ini
  • Quote

Post by rvamecca » Thu Feb 25, 2021 11:50 pm

Hi,

How to enable custom PHP.INI files for domain or path?
I tried different ways and I couldn't

I too using PHP-FPM 7.4 in servers
Top

grayfolk
Posts: 1012
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 7x
Web: nginx + php-fpm
Re: Custom php.ini
  • Quote

Post by grayfolk » Fri Feb 26, 2021 12:43 am

rvamecca wrote: ↑
Thu Feb 25, 2021 11:50 pm
Hi,

How to enable custom PHP.INI files for domain or path?
I tried different ways and I couldn't

I too using PHP-FPM 7.4 in servers
This is not quite related to Vesta.
  • You can use .htaccess if you use Apache for override php.ini variables
  • Also you can update Apache templates
  • You can use user.ini files
  • You can update php-fpm templates
Vesta templates placed in /usr/local/vesta/data/templates/web folder.
Top

rvamecca
Posts: 4
Joined: Thu Feb 25, 2021 11:48 pm

Os: Ubuntu 18x
Web: apache + nginx
Re: Custom php.ini
  • Quote

Post by rvamecca » Fri Feb 26, 2021 1:05 am

Ok, its dont work. I try this methods and dont work php.ini or .user.ini in directory of domain
Top

grayfolk
Posts: 1012
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 7x
Web: nginx + php-fpm
Re: Custom php.ini
  • Quote

Post by grayfolk » Fri Feb 26, 2021 6:32 am

rvamecca wrote: ↑
Fri Feb 26, 2021 1:05 am
Ok, its dont work. I try this methods and dont work php.ini or .user.ini in directory of domain
So, you doing something wrong.
Top

rvamecca
Posts: 4
Joined: Thu Feb 25, 2021 11:48 pm

Os: Ubuntu 18x
Web: apache + nginx
Re: Custom php.ini
  • Quote

Post by rvamecca » Fri Feb 26, 2021 5:40 pm

grayfolk wrote: ↑
Fri Feb 26, 2021 6:32 am
rvamecca wrote: ↑
Fri Feb 26, 2021 1:05 am
Ok, its dont work. I try this methods and dont work php.ini or .user.ini in directory of domain
So, you doing something wrong.
No! Configuration is okay, but dont work. I try to SetEnv PHPPRC, PHPINIDR and more functions Apache to work and nothing happens.
Top

grayfolk
Posts: 1012
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 7x
Web: nginx + php-fpm
Re: Custom php.ini
  • Quote

Post by grayfolk » Fri Feb 26, 2021 5:58 pm

rvamecca wrote: ↑
Fri Feb 26, 2021 5:40 pm
grayfolk wrote: ↑
Fri Feb 26, 2021 6:32 am
rvamecca wrote: ↑
Fri Feb 26, 2021 1:05 am
Ok, its dont work. I try this methods and dont work php.ini or .user.ini in directory of domain
So, you doing something wrong.
No! Configuration is okay, but dont work. I try to SetEnv PHPPRC, PHPINIDR and more functions Apache to work and nothing happens.
Did you try to change templates or use .htaccess?
Top

rvamecca
Posts: 4
Joined: Thu Feb 25, 2021 11:48 pm

Os: Ubuntu 18x
Web: apache + nginx
Re: Custom php.ini
  • Quote

Post by rvamecca » Sat Feb 27, 2021 6:49 pm

grayfolk wrote: ↑
Fri Feb 26, 2021 5:58 pm
rvamecca wrote: ↑
Fri Feb 26, 2021 5:40 pm
grayfolk wrote: ↑
Fri Feb 26, 2021 6:32 am


So, you doing something wrong.
No! Configuration is okay, but dont work. I try to SetEnv PHPPRC, PHPINIDR and more functions Apache to work and nothing happens.
Did you try to change templates or use .htaccess?
Yes! And I try to enable .htaccess custom PHP VALUES and dont work.
Top

grayfolk
Posts: 1012
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 7x
Web: nginx + php-fpm
Re: Custom php.ini
  • Quote

Post by grayfolk » Sat Feb 27, 2021 10:10 pm

rvamecca wrote: ↑
Sat Feb 27, 2021 6:49 pm
Yes! And I try to enable .htaccess custom PHP VALUES and dont work.
Can you please tell me what you doing step by step?
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password