Forum Moderators: coopster
For example, the PHP
safe_modedirective is of type
PHP_INI_SYSTEMwhich means this entry can be set in
php.inior
httpd.conf.
The host wants 500 pounds an hour to do it so I guess I go back to them :(
I tried the host who said I could upload a php.ini file into the httpdocs folder and this would fix it.
Closest I can get to this is a php.ini file with:
[PHP]
; Safe Mode
;
safe_mode = Off
; End:
However, if it is indeed the way you have been instructed to manage php.ini for your own installation then I might take the following approach ...
The Runtime Configuration [php.net] page that I mentioned earlier has a link to » the latest php.ini [cvs.php.net] from CVS. However, as jatar_k mentioned, you may be better off going to the downloads [php.net] page and getting the latest source for your version. Extract that and find the php.ini file in there and use that as your starting point for your "complete" php.ini that you will update and then upload.
The update part I mention here is where you can be smart. A trick here is to run a phpinfo() script first to get the current settings that your hosting provider has running on the box. This way, you can update your php.ini to look exactly like theirs and then make the one change that you want at this point to the
safe_modedirective. Upload your version to where they have instructed you and you are now where you want to be.
Once again, I have never done this before and as I disclaimed earlier I am not at all familiar with this approach to php.ini file management. You may want to confirm with your hosting provider before following through on this approach.
Thanks for the help so far, I'll keep you posted!