
Originally Posted by
richirich
Hello,
i am interested in point number 3 but did not fully get the steps.
So far, i have installed suphp on the server and i have only one account that needs allow_url_fopen = on , while i want all other users to have it off.
i tried creating a php.ini inside the public_html but it is not working.
Can you please help.
thank you
Please elaborate on what specific details are seen; by "not working" what is the method for testing this and what criteria are you looking for?
For example; knowing the following information will help to narrow what factors are involved:
1.) Is a php info page being used to test the value of customized php.ini settings? The following PHP code may be used to setup a custom php info page (e.g., placed in a new file using the ".php" file extension):
Code:
<?php
phpinfo();
?>
2.) Have you ensured that the custom php.ini file contains the directive once and not twice or more (i.e., ensure no duplicate directives)?
3.) Is the directive "allow_url_fopen" set in the system-wide php.ini and in the user's custom php.ini?
4.) Was the directive "suPHP_ConfigPath" set in an .htaccess file or other Apache configuration? Customizing this is optional and may not be required.
5.) Have you confirmed and verified that SuPHP is activated?
Code:
# /usr/local/cpanel/bin/rebuild_phpconf --current
6.) Please try the following example to create a custom php.ini for the user, where "username" represents the user involved:
Code:
# cp -pv /usr/local/lib/php.ini /home/username/public_html/php.ini
# chown -v username:username /home/username/public_html/php.ini
After using the above two commands to create the custom php.ini file then it may be modified as needed.