I installed Mediawiki according to the instructions here: https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki_on_XAMPP When I perform "Setting up MediaWiki" step 3 ("Direct your browser to the appropriate page, e.g. http://localhost/mywiki") I get an error "Forbidden You don't have permission to access this resource. Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 Server at localhost Port 80" What can I do to install Mediawiki?
The 403 Forbidden message means your browser has reached Apache, but Apache is refusing to serve the requested resource. This happens before you can complete MediaWiki’s setup; reinstalling the database or changing its password will not fix this particular error.
The two main things to check are the extracted folder structure and Apache’s access rules. Follow these steps in order.
index.php directlyThe guide uses mywiki only as an example folder name. Your URL must match the folder you actually created. The guide expects the MediaWiki files to be directly inside that folder.[mediawiki]
For example:
C:\xampp\htdocs\mywiki\index.php
C:\xampp\htdocs\mywiki\includes\
C:\xampp\htdocs\mywiki\maintenance\
Not:
C:\xampp\htdocs\mywiki\mediawiki-1.xx.x\index.php
Then open:
http://localhost/mywiki/index.php
If you are still using your earlier folder C:\xampp\htdocs\wiki, use:
http://localhost/wiki/index.php
If this works, the problem is with accessing the directory’s default page, rather than MediaWiki itself. If you still get Forbidden, continue with the error log.
In the XAMPP Control Panel, select Logs next to Apache, then open error.log. It is normally located here:
C:\xampp\apache\logs\error.log
Refresh the failing URL and inspect the newest entries. The text distinguishes different causes:
| Error-log text | What to investigate |
|---|---|
client denied by server configuration |
An Apache access rule is blocking the request. |
Directory index forbidden or No matching DirectoryIndex |
Apache did not find or could not use a default page such as index.php. |
| A filesystem-access or permissions error | Windows permissions or access to the actual folder. |