0

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)?

sjagr
  • 15,983
  • 5
  • 40
  • 67
dan_N.
  • 11
  • 1

1 Answers1

1

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

sjagr
  • 15,983
  • 5
  • 40
  • 67
  • I changed it to Allow from all and now I am getting a "#!/usr/bin/env php This script must be run from the command line". Is there any way to work around this? – dan_N. Nov 12 '14 at 16:49
  • @dan_N. I just said in the answer that `update.php` is not meant to be loaded directly from a web browser. Follow the documentation links that I provided for you please. – sjagr Nov 12 '14 at 16:51
  • I just tried to a web upgrade and the installation is hanging. – dan_N. Nov 12 '14 at 16:55
  • @dan_N. More details are needed (PHP errors, perhaps found in the Apache logs), and it's worthy of a separate question once you find those details. Maybe the installation is still working and taking longer than you expect. – sjagr Nov 12 '14 at 16:56
  • @dan_N: if it's a local installation (localhost), you should be able to just run the script from the command line. Did you give that a try? – brightbyte Nov 13 '14 at 07:10