Koozali.org: home of the SME Server

Remote file handling disabled (allow_url_fopen)

msilkjr

Remote file handling disabled (allow_url_fopen)
« 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

Offline wellsi

  • *
  • 475
  • +0/-0
    • http://www.wellsi.com
Remote file handling disabled (allow_url_fopen)
« Reply #1 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?
............

webster

Best Way
« Reply #2 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