Hello I'm really new to this and I try to set all the accounts to use the global php.ini but some accounts to use a custom php.ini on which they will not have any access to modify it.
My environment is
Reading the forums I've done this so far
1)Uncommented the file /opt/suphp/etc/suphp.conf
2) Created the file /usr/local/apache/conf/userdata/suphp_configpath.conf
3) I created the /usr/local/apache/conf/userdata/std/2/restrictedaccount1/suphp_configpath.conf
4)and the /usr/local/apache/conf/userdata/ssl/2/restrictedaccount1/suphp_configpath.conf
5)Then
and then I don't know what to do...I checked the phpinfo of the restrictedacount1 website through the browser and it still uses the global php.ini
Have I done anything wrong? I have to say that, even before I do step 1, placing a custom php.ini at the user's account did not change anything the account still used the global php.ini
Thank you
My environment is
Code:
/etc/redhat-release:CentOS release 6.7 (Final)
/usr/local/cpanel/version:11.52.1.3
/var/cpanel/envtype:kvm
CPANEL=release
Server version: Apache/2.4.12 (Unix)
Server built: Jul 19 2015 21:47:11
Cpanel::Easy::Apache v3.30.3 rev9999
PHP 5.4.43 (cli) (built: Jul 19 2015 21:57:01)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
mysql Ver 14.14 Distrib 5.5.46, for Linux (x86_64) using readline 5.1
1)Uncommented the file /opt/suphp/etc/suphp.conf
Code:
[phprc_paths]
;Uncommenting these will force all requests to that handler to use the php.ini
;in the specified directory regardless of suPHP_ConfigPath settings.
application/x-httpd-php=/usr/local/lib/
application/x-httpd-php4=/usr/local/php4/lib/
application/x-httpd-php5=/usr/local/lib/
Code:
<IfModule mod_suphp.c>
<Location />
suPHP_ConfigPath [B]/usr/local/lib/[/B]
</Location>
</IfModule>
3) I created the /usr/local/apache/conf/userdata/std/2/restrictedaccount1/suphp_configpath.conf
Code:
<IfModule mod_suphp.c>
<Location />
suPHP_ConfigPath [B]/home/custom-account-phps/restrictedaccount1/[B]
</Location>
</IfModule>
Code:
<IfModule mod_suphp.c>
<Location />
suPHP_ConfigPath [B]/home/custom-account-phps/restrictedaccount1/[B]
</Location>
</IfModule>
Code:
# /scripts/verify_vhost_includes
Testing /usr/local/apache/conf/userdata/suphp_configpath.conf...ok
Testing /usr/local/apache/conf/userdata/std/2/restrictedaccount1/suphp_configpath.conf...ok
Testing /usr/local/apache/conf/userdata/ssl/2/restrictedaccount1/suphp_configpath.conf...ok
# /scripts/ensure_vhost_includes --all-users
Built /usr/local/apache/conf/httpd.conf OK
# /scripts/ensure_vhost_includes --user=restrictedaccount1
Have I done anything wrong? I have to say that, even before I do step 1, placing a custom php.ini at the user's account did not change anything the account still used the global php.ini
Thank you