Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: AlexG on January 08, 2008, 10:44:42 AM

Title: php.ini allow_url_fopen
Post by: AlexG 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
Title: Re: php.ini allow_url_fopen
Post by: cactus 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.
Title: Re: php.ini allow_url_fopen
Post by: AlexG 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?
Title: Re: php.ini allow_url_fopen
Post by: raem 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
Title: Re: php.ini allow_url_fopen
Post by: AlexG on January 08, 2008, 11:21:58 AM
Thank you, it works.  :smile: