Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

img_auth.php - Access Denied

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


wiki at idnp

Sep 3, 2008, 4:21 AM

Post #1 of 2 (221 views)
Permalink
img_auth.php - Access Denied

Dear list-membersl,

I searched the archive, found similar questions but no answers. I
am using img_auth.php like mentioned here:
http://www.mediawiki.org/wiki/Manual:Image_Authorisation#Another_Scenario.2C_Security_Motivated

Unfortunately I can upload pictures but I can't access them, I only
get "Access Denied You need to log in to access files on this
server."
I tried different settings in localsettings, checked rights on the
relevant folders, was searching the internet. I have no idea where
to search.

I would very much appreciate some hints!

This are my Versions:
MediaWiki 1.13.0
PHP 5.2.6 (cgi)
MySQL 5.0.51a-log

Thanks and best regards,
Holger


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


wiki at idnp

Sep 4, 2008, 4:27 PM

Post #2 of 2 (194 views)
Permalink
Re: img_auth.php - Access Denied *solved* [In reply to]

Hello list,

mit folgenden Anlagen <none>
schrieben Sie am Mittwoch, 3. September 2008, 13:21:07:
HD> Unfortunately I can upload pictures but I can't access them, I only
HD> get "Access Denied You need to log in to access files on this
HD> server."

So, to whom it may concern:

The function / variable
Code: "$_SERVER['PATH_INFO']"

goes with my PHP-Version (much more my providers) like this
Code: "$_SERVER['ORIG_PATH_INFO']".

How did I find?
My provider gives an phpinfo.php5 where all the stuff is shown, I appended some testdata like this
Code: "phpinfo.php5/245/56/Trash.txt". In the resulting page I searched for trash and found that variable for the trailing path is
Code: "$_SERVER['ORIG_PATH_INFO']".

In img_auth.php I replaced all occurrences of
Code: "$_SERVER['PATH_INFO']"
with
Code: "$_SERVER['ORIG_PATH_INFO']", ftpd it up and here we go!
All the pictures are served from that very obscure path.

Hth
Holger








_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.