Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: msilkjr on March 27, 2004, 02:54:54 AM

Title: Remote file handling disabled (allow_url_fopen)
Post by: msilkjr on March 27, 2004, 02:54:54 AM
Help All

How do you enable Remote file handling(allow_url_fopen)in php.ini , which template and what do I edit it to. Soory all I cant figure it out
Title: Remote file handling disabled (allow_url_fopen)
Post by: wellsi on March 29, 2004, 06:44:30 PM
I would also like to know what is considered the best way to change 'allow_url_fopen' in php.ini

I can see that the value is set in

/etc/e-smith/templates/etc/php.ini/65FopenWrappers

Which contains:
{
    return "allow_url_fopen = $php{AllowUrlFopen}";
}

One bad way woud be to change this template to:
{ allow_url_fopen = On }

Another better way would be to create a custom-template

/etc/e-smith/templates-custom/etc/php.ini/65FopenWrappers
Which contains:
{
allow_url_fopen = On
}

Is there a better way?
Title: Best Way
Post by: webster on June 29, 2004, 02:23:36 PM
heres how you should do it...all you have to do is type the following at root prompt

# /sbin/e-smith/db configuration set php service AllowUrlFopen On status enabled

# /sbin/e-smith/expand-template /etc/php.ini

# service httpd restart

HTH
T