Hi,
recently I have updated everything with custombuild 2.0. Before I had apache with mod_php and suPHP and I had custom php.ini set per user, according to this guide: http://help.directadmin.com/item.php?id=183
Now I have upgraded everything. I'm using nginx as reverse proxy and php is set with mod_php and mod_ruid2. I have again added the PHP_INI_SCAN_DIR to the custom httpd.conf. Do I have to anything on the nginx side? Or is the process different for php with mod_ruid2? Cause currently it's not loading mi custom.ini file.
Here is an example of an apache configuration:
Am I missing something?
recently I have updated everything with custombuild 2.0. Before I had apache with mod_php and suPHP and I had custom php.ini set per user, according to this guide: http://help.directadmin.com/item.php?id=183
Now I have upgraded everything. I'm using nginx as reverse proxy and php is set with mod_php and mod_ruid2. I have again added the PHP_INI_SCAN_DIR to the custom httpd.conf. Do I have to anything on the nginx side? Or is the process different for php with mod_ruid2? Cause currently it's not loading mi custom.ini file.
Here is an example of an apache configuration:
Code:
<VirtualHost 158.58.168.96:8080 127.0.0.1:8080 >
###################
# Alias per brandun
Alias /css-dun /home/brandun/shared/css-dun
Alias /js-dun /home/brandun/shared/js-dun
Alias /php-dun /home/brandun/shared/php-dun
Alias /img-dun /home/brandun/shared/img-dun
Alias /error /home/brandun/error
Alias /font-dun /home/brandun/font-dun
###################
ServerName www.acasadimomo.pj
ServerAlias www.acasadimomo.pj acasadimomo.pj acasadimomo.com www.acasadimomo.com acasadimomo.it www.acasadimomo.it
ServerAdmin [email protected]
DocumentRoot /home/brandun/domains/acasadimomo.pj/public_html
ScriptAlias /cgi-bin/ /home/brandun/domains/acasadimomo.pj/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup brandun brandun
</IfModule>
<IfModule mod_ruid2.c>
RMode config
RUidGid brandun brandun
#RGroups apache access
RGroups @none
</IfModule>
CustomLog /var/log/httpd/domains/acasadimomo.pj.bytes bytes
CustomLog /var/log/httpd/domains/acasadimomo.pj.log combined
ErrorLog /var/log/httpd/domains/acasadimomo.pj.error.log
<Directory /home/brandun/domains/acasadimomo.pj/public_html>
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/brandun/.php/php-mail.log
php_admin_value open_basedir /home/brandun/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php55/lib/php/
</Directory>
SetEnv PHP_INI_SCAN_DIR /usr/local/directadmin/data/users/brandun/php/
</VirtualHost>
Am I missing something?