Koozali.org: home of the SME Server

php.ini allow_url_fopen

Offline AlexG

  • ****
  • 110
  • +0/-0
php.ini allow_url_fopen
« on: January 08, 2008, 10:44:42 AM »
Hi Forum

How do I change in the php.ini the value allow_url_fopen to enabled?

Best regards
AlexG

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: php.ini allow_url_fopen
« Reply #1 on: January 08, 2008, 10:52:01 AM »
Hi Forum

How do I change in the php.ini the value allow_url_fopen to enabled?

Best regards
AlexG
Create a copy of the original template in the template-custom tree, modify the parameters and regenerate the template, restart the webserver. For more details on the templating system see the SME Server Developers Guide linked from the wiki.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline AlexG

  • ****
  • 110
  • +0/-0
Re: php.ini allow_url_fopen
« Reply #2 on: January 08, 2008, 11:01:42 AM »
Thank you, the way how to change is clear. But in the file 65FopenWrappers appears

Quote
{
   return "allow_url_open = $php(AllowUrlFopen)";
}

Where do I have to change it to enabled?

Offline raem

  • *
  • 3,972
  • +4/-0
Re: php.ini allow_url_fopen
« Reply #3 on: January 08, 2008, 11:15:16 AM »
AlexG

This is set with a db command.
Use the command here
http://wiki.contribs.org/DB_Variables_Configuration#Php
and replace the variable and value
eg

db configuration setprop php AllowUrlFopen On
expand-template /etc/php.ini
/etc/init.d/httpd-e-smith restart
« Last Edit: January 08, 2008, 11:17:26 AM by RayMitchell »
...

Offline AlexG

  • ****
  • 110
  • +0/-0
Re: php.ini allow_url_fopen
« Reply #4 on: January 08, 2008, 11:21:58 AM »
Thank you, it works.  :smile: