Topic on Project:Support desk

Open the index.php - How??

6
2003:57:E340:8B01:C817:3174:51E1:1D01 (talkcontribs)

We are using MW 1.22 and we want to install the extension CheckUser. I installed CheckUser on another Wiki and the only thing to do was to open mypage.com/mw-config/index.php (running index.php) after uplaoding all the files and adding requireidunno in LocalSettings. But yeah, this method (visiting [mypage.com]/mw-config/index.php) ain't work on MW 1.22. After loading "Error 403" appears, although mw-config/index.php exists. I've accses on only one directory. The server and the wiki belongs to my wiki partner and I try to help him.

Ciencia Al Poder (talkcontribs)

Don't include extensions in index.php

88.130.126.70 (talkcontribs)

When you install an extension, you add it to LocalSettings.php.

However, for some extensions you also have to update the database. This can either be done via the shell (which is recommended) or via the web updater in mw-config/. And in order to run the web updater you will have to open mw-config/index.php with your web browser. As far as I understand, this is the point, which throws the error 403, which it should not do.

2003:57:E34F:8601:7946:B5E6:3D94:39FD (talkcontribs)
Don't include extensions in index.php
Ciencia Al Poder (talk)‎02:32, 5 May 2015

I know that.

As far as I understand, this is the point, which throws the error 403, which it should not do.
88.130.126.70‎11:18, 5 May 2015

Thats something what I don't understand, too. I can't explained it with my own words why its not working. Alright, I'll see how I handle it with the shell accses. There is something I've to say. The wiki was moved twice from one server to another server (which ain't worked and caused many problems including database errors in our wiki) and then to another. This means that the database of our wiki (and server) was moved too. But our new server works well. Could it be possible (due to the server moves) that mw-config/index.php aint working?

TheDJ (talkcontribs)

403 means forbidden, so either your webserver is not setup correctly to server the php file, or the permissions or owner of the php files is incorrect. That's where I would start looking. The error log of your webserver might be able to tell you more.

Ciencia Al Poder (talkcontribs)

Since mw-config should be accessible only for upgrading, it's a good practice to prevent access to it with .htaccess rules or with server configuration, by either disallowing access permanently (removing that restriction when an upgrade is necessary) or restricting access to specific IP addresses. That may be very well the case.

Reply to "Open the index.php - How??"