Custom PHP.ini File

Custom PHP.ini File

Posted by: Kahoona
Posted on: 2007-09-10 07:59:00

I need to write a custom PHP.ini file to get the following features enabled:

allow_url_fopen
allow_url_include

When I contacted Dreamhost support about it, I was directed to this page:


http://wiki.dreamhost.com/Custom_PHP.ini


Now I don't know how to write one on my own, could anyone with experience help me out?


Thanks.

Re: Custom PHP.ini File

Posted by: scjessey
Posted on: 2007-09-10 09:39:00

If you are not experienced enough to generate your own PHP.ini file from the articles in the wiki, then you are probably not experienced enough to safely make use of URL file access either. It is possible to use cURL as a safer substitute.


-- si-blog --

Re: Custom PHP.ini File

Posted by: Kahoona
Posted on: 2007-09-10 09:41:00

Well I need it enabled for a feature on my messageboards.

Re: Custom PHP.ini File

Posted by: scjessey
Posted on: 2007-09-10 10:34:00

In reply to:

Well I need it enabled for a feature on my messageboards.


You should contact the author/vendor of the message boards and ask them for a cURL-based patch. Explain to them that URL file access opens up a significant server vulnerability in a shared hosting environment so the patch is necessary for security reasons. If they say no, I recommend moving to a more secure message board solution.


-- si-blog --

Tags: ini filedreamhosti don t knowfopenwiki