Jump to content

Unable to connect to second life client to localhost php script, getting access denied error


giri7688
 Share

You are about to reply to a thread that has been inactive for 4046 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

when I am trying to connect to my php script in localhost using http request I am getting the following error,

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ERROR: The requested URL could not be retrieved</title> <style type="text/css"><!-- %l body :lang(fa) { direction: rtl; font-size: 100%; font-family: Tahoma, Roya, sans-serif; float: right; } :lang(he) { direction: rtl; float: right; } --></style> </head><body> <div id="titles"> <h1>ERROR</h1> <h2>The requested URL could not be retrieved</h2> </div> <hr> <div id="content"> <p>The following error was encountered while trying to retrieve the URL: <a href="http://localhost/DBConn.php?">http://localhost/DBConn.php?</a></p> <blockquote id="error"> <p><b>Access Denied.</b></p> </blockquote> <p>Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</p> <p>Your cache administrator is <a href="mailto:webmaster%W">webmaster</a>.</p> <br> </d
[2013/04/21 22:50] Object: http request!

 

Please help me with this issue. thanks in advance

Link to comment
Share on other sites

With that little info how u call that script its hard to tell.

 

You get in the reply - requested url cannot be found - that seems like the php script cannot be found or the database ?

 

can you run php scripts on your localhost (pc) ?

Is the database on your localhost too....

 

Thats just wild guessing, maybe someone else can lighten it more.

 

Monti

Link to comment
Share on other sites

...

<p>Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</p>

..-----------------------------------------------------------

Might be a good place to start for a solution.  It could be a network security setting too........contact the network administrator for that. 

Link to comment
Share on other sites

Your URL is wrong :

http://localhost/DBConn.php '>http://localhost/DBConn.php 

It can only work when you call the URL from your computer , but it can t be called from the other computers .

Ask a friend to call http://localhost/DBConn.php on Internet explorer , Chrome , Opera , Firefox, Safari  ...He will fail .

 

 

Call the Url with the public DNS name of your computer or your internet IP adress.

 

 

  • Like 1
Link to comment
Share on other sites

If you are trying to call a file you made in localhost, chances of it working 0.1%. Localhost is the machine you are currently using with an apache or IIS server running. If you want to call a PHP script from Second Life you will have to get a domain and host it in order to call it.


If your going to try and call it from your computer i would try to port forward. The disadvantages to doing this is that your computer is going to act as a server that needs to be on 99% of the time to accept requests. It will also be a good target for malicous activity.

If you would like ot know more about port forwarding i would read this wiki page.

Link to comment
Share on other sites


Miranda Umino wrote:

Your URL is wrong :

 '>
 

It can only work when you call the URL from your computer , but it can t be called from the other computers .

Ask a friend to call 
on Internet explorer , Chrome , Opera , Firefox, Safari  ...He will fail .

 

 

Call the Url with the public DNS name of your computer or your internet IP adress.

 

 

That is not the url that he called, that is the url in use for the requested asset at the point where the error message originated, either the web site or (most likely) a proxy service being used to access the web site. It is caused by a misconstrued access file and is a common problem with the squid proxy server, a caching proxy used by many web sites to accelerate delivery of assets that has a (sometimes) confusingly number of configuration variables that must be set correctly.

 

The solution is to contact your web host provider about the issue so the appropriate configuration variable can be set properly.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4046 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...