chantasaur / lightopenid

Automatically exported from code.google.com/p/lightopenid
0 stars 0 forks source link

Server Configuration Problem #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Sir Mewt 

I am using lightopenid on my localhost and it works fine but when I transferred 
it on my online dev-site it gave me multiple error messages

solution from the net says when i get those error message it is because my 
allow_url_fopen is disbled. but i tried disabling my localhost's 
allow_url_fopen and it still works fine..

i have curl enabled in my devsite and localhost..

this are the error messages:
http://dv10.havocdigital.com/ci203/

this is my devsite php_info: 
http://dv10.havocdigital.com/ci203/index.php/site/php_info

Please help me.. Thanks

Original issue reported on code.google.com by mar...@havocdigital.com on 23 Nov 2011 at 6:18

GoogleCodeExporter commented 8 years ago
Your problem on the server is caused not only by the fact that allow_url_fopen 
is disabled, but also because there's open_basedir.

When open_basedir or safe_mode are in effect, curl can't follow redirections, 
and therefore is disabled. And since allow_url_fopen is also disabled, php 
streams can't work either (and lightopenid should throw an exception in this 
case -- I'll change that).

In this case, LightOpenID (and any other OpenID library) simply can't work 
reliably.
I would advise to either change your hosting provider, or persuade it that 
allow_url_fopen should be enabled.

In theory, it probably is possible to work around that -- if not by following 
redirections manually, then by implementing a socket-based http client in php 
(there probably are libraries that do it). So if you really want to, you can 
try. However, an easier method would be to switch providers, if that's possible.

Original comment by mewp...@gmail.com on 23 Nov 2011 at 6:37

GoogleCodeExporter commented 8 years ago
Thanks Sir Mewp I'll try to work around it but if nothing works i'll probably 
request to enable allow_url_fopen Tnx tnx..

Original comment by mar...@havocdigital.com on 24 Nov 2011 at 1:56

GoogleCodeExporter commented 8 years ago
just wondering sir mewp... are you going to release a version that uses a 
socket based http client.. tnx..

Original comment by mar...@havocdigital.com on 24 Nov 2011 at 10:46

GoogleCodeExporter commented 8 years ago
I have no plans to do so. It's a lot of code (probably more than the whole 
LightOpenID as of now) and would be of little use to most people.

Supporting both curl and streams requests already makes the library a lot 
bigger than it needs to be (in order to work on a good configuration).

Original comment by mewp...@gmail.com on 24 Nov 2011 at 10:55

GoogleCodeExporter commented 8 years ago
oh thanks  anyways...

Original comment by mar...@havocdigital.com on 25 Nov 2011 at 1:24