尝试在WAMP上运行update.php MediaWiki维护脚本时出现禁止错误

I recently installed WAMP on Windows and have set up a local MediaWiki installation. After the installation, I tried to to install a new extension. For it to work, I have to run the maintenance script update.php. However, when I go to localhost/maintenance/update.php, I'm getting a 403 error.

Forbidden

You don't have permission to access /maintenance/update.php on this server.


Apache/2.4.9 (Win32) PHP/5.5.12 Server at 127.0.0.1 Port 80

How do I fix this? or is there another way to run the maintenance scripts on WAMP (perhaps with a command line)?

This is not an error, it is desired behaviour for the program, since the .htaccess file for the /maintenance/ directory has this:

Deny from all

This is because the update.php file is not meant to be loaded directly from a web browser. You must read the documentation for MediaWiki updating from a browser to utilize it correctly. You can also run it from the command line