Answer the question
In order to leave comments, you need to log in
How to change php local value (nginx, ubuntu)?
Can you please tell me how can I change the php settings for a specific site?
Input data:
Hosting: VDS (timeweb);
System: Ubuntu;
Web server: Nginx;
PHP version: 5.5.9;
There are several sites, I want to change some Local Values for individual folders (root directories of the site). Tried through .htaccess - doesn't work (it's kind of like for Apache only :D ?). The maximum that I could find was to write in the /etc/nginx/conf.d/mySite.conf file:
location / {
fastcgi_param asp_tags "on";
}
ps Asp-tags used just to check if there are changes or not.
Answer the question
In order to leave comments, you need to log in
For those who are interested. Approximately in this directory /usr/local/php7/etc/php-fpm.d
Created a file with the following content
; Start a new pool named 'www'.
; the variable $pool can we used in any directive and will be replaced by the
; pool name ('www' here)
[поддомен.myDomain.ru]
user = www-data
group = www-data
listen = 127.0.0.1:ANOTHER_PORT
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
chdir = /
php_admin_value[sendmail_path] = /usr/sbin/sendmail -t -i -f [email protected]$pool
php_admin_value[error_log] = /var/www/dir1/dir2/temp/errors.log
php_admin_value[mail.log] = /var/www/dir1/dir2/temp/mail.log
php_admin_value[open_basedir] = /var/www/dir1/:.
php_admin_value[upload_tmp_dir] = /var/www/dir1/dir2/temp
php_admin_value[session.save_path] = /var/www/dir1/dir2/temp/sessions
php_admin_value[session.gc_probability] = '1'
php_admin_value[session.gc_divisor] = '10'
php_admin_value[session.cookie_domain] = 'поддомен.myDomain.ru'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question