1
tommyb
Changing allow_url_fopen state on shared server
  • 2005/4/24 2:54

  • tommyb

  • Just popping in

  • Posts: 7

  • Since: 2005/4/19


Hello all,

I'm new to XOOPS (and PHP, and Smarty, and...etc.). I've installed GIJoe's Protector module on a test site and it indicates that "allow_url_fopen" should be disabled.

My site is on an ipowerweb shared Linux box. I sent an email to their support staff requesting they disable this command for my site.

iPowerWeb's responses have ranged from having no idea what I'm talking about to telling me that it is my responsibility.

I'm figuring that if I can control it at all, it requires some combination of the creation/modification of php.ini and .htaccess in my public_html directory, but nothing I've tried has worked. Either it's still on or I get a 500 error.

Any help or suggestions would be greatly appreciated!

Tom Baggett

2
jdseymour
Re: Changing allow_url_fopen state on shared server

Only a server admin can disable that setting.

3
JMorris
Re: Changing allow_url_fopen state on shared server
  • 2005/4/24 5:13

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


Quote:
iPowerWeb's responses have ranged from having no idea what I'm talking about to telling me that it is my responsibility.


WOW! Well, that's one more web host on my list of "Avoid like the plague". Talk about ignorant support staff!

4
tommyb
Re: Changing allow_url_fopen state on shared server
  • 2005/4/24 20:00

  • tommyb

  • Just popping in

  • Posts: 7

  • Since: 2005/4/19


Thanks for the confirmation that it is something they should do for me and in fact, would HAVE to do as I can't do it.

It's been surprising to me that they weren't more knowledgable. They're supposedly one of the three largest hosting companies out there.

I'll be looking into alternatives now.

Thanks again,

Tom

5
m0nty
Re: Changing allow_url_fopen state on shared server
  • 2005/4/24 20:09

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


u can use .htaccess if ur on apache, providing they don't use php in CGI mode..

use this in a .htaccess file.

php_flag Allow_url_fopen off


save it in your root XOOPS folder (the folder where mainfile.php is)

if your server is in CGI mode and htaccess isn't possible then you could try using a php.ini file..

create a file and save it as php.ini

in this file enter

allow_url_fopen Off


place a copy of this php.ini file in your root XOOPS folder, and then in each modules folder and then module admin folder..

ie modules/protector
modules/protector/admin

6
tommyb
Re: Changing allow_url_fopen state on shared server
  • 2005/4/24 22:42

  • tommyb

  • Just popping in

  • Posts: 7

  • Since: 2005/4/19


Hey m0nty,

Thanks for the tips!

I tried the .htaccess mod as well as the php.ini file with no success.

FYI, I successfully added "php_flag register_globals off" to the .htaccess file to satisfy one of the other checks performed by the Protector module. Does that item working indicate the "Allow_url_open" entry should work as well?

7
tl
Re: Changing allow_url_fopen state on shared server
  • 2005/4/25 0:02

  • tl

  • Friend of XOOPS

  • Posts: 999

  • Since: 2002/6/23


iPowerWeb uses module PHP, so there is no chance of changing it on your own.

It's time to find another host. You probably can't find any worse support staff than those at iPowerWeb.

8
tommyb
Re: Changing allow_url_fopen state on shared server
  • 2005/4/25 0:41

  • tommyb

  • Just popping in

  • Posts: 7

  • Since: 2005/4/19


Thanks for the clarification TL. That takes care of that!

Goodbye iPowerWeb...

9
script_fu
Re: Changing allow_url_fopen state on shared server

Im still haveing a problem with 'allow_url_fopen' and the protector module. My tech support gave me this answer?
-----------------------------------------------------------
Your helpdesk ticket has just been updated by xxxxxx

Details:

Hi,

you can use the ini_set() function to achieve this:
http://php.net/en/ini-set
-----------------------------------------------------------

This is the last setting I had to do and I love to figure things out myself but im stumped on this answer above?

I've tryied the .htaccess and php.ini as suggested above but no dice! Can anyone make any sence of what my tech support told me above?


Help!!!

Billy

10
Dave_L
Re: Changing allow_url_fopen state on shared server
  • 2005/6/3 2:16

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Your tech support is wrong. You can't change that setting with ini_set, at least not with recent versions of PHP.

Don't worry about it. Turning allow_url_open off increases security, but it's not that essential.

Login

Who's Online

151 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits