Allow a disabled function for just one account

morfargekko

Verified User
Joined
Oct 21, 2007
Messages
189
Hello, is there a possibility to allow url_fopen just for one account ?
I know it is a bad thing to do but the client want it. :eek:
 
You can do it per domain not per account or user.

Custom HTTPD Configurations

php_admin_flag allow_url_fopen on
 
Last edited:
Did you restart apache?

It works for me. Anybody else tested this?

Here is what I did:

As admin clicked on Custom HTTPD Configurations
Clicked on the domain I wanted to allow fopen
Pasted php_admin_flag allow_url_fopen on in the textarea box
Clicked Save
Waited a couple of minutes for apache to restart

That's it. fopen worked after that.
 
Last edited:
Works fine. Without any additional apache restart.

morfargekko: are you admin of the server? if not then d00h you cant.
 
Without any additional apache restart.

Apache is supposed to restart automatically using dataskq. But if the cron time has been adjusted so that it doesn't run every minute then it may take longer if it restarts at all.
 
Apache doesn't need to be restarted to load a .htaccess file.
 
Hi Martynas. We were not talking about .htaccess. And I didn't think you could turn on fopen in .htaccess anyway. But you certainly know more about it than I do. What is the code you would put in the .htaccess file?
 
The link confirms that this command cannot be used in .htaccess.
 
Yes it does but can I use a scecial php.ini file for each domain and if so where should that or those files be placed.
 
Back
Top