Mailing List Archive

Pretty URLs are gone after changes on the webserver
Hello,

I was very happy with my installation of Mediawiki until the webmaster
changed something on the webserver. Originally, the success-page after the
installation showed this line:
[...]
* PHP server API is apache; ok, using pretty URLs (index.php/Page_Title)
[...]
Everything was fine, I had really pretty URLs.

Then the webmaster did his changes (I don't know which changes he did) and
the pretty URLs were gone.

After a reinstall, the success-page looks like this:

MediaWiki 1.3.2 installation

Please include all of the lines below when reporting installation problems.
Checking environment...

* PHP 4.3.2: ok
* Warning: PHP's register_globals option is enabled. MediaWiki will work
correctly, but this setting increases your exposure to potential security
vulnerabilities in PHP-based software running on your server. You should
disable it if you are able.
* PHP server API is apache2filter; using ugly URLs
(index.php?title=Page_Title)
* Have XML / Latin1-UTF-8 conversion support.
* PHP's memory_limit is 8M. If this is too low, installation may fail!
Attempting to raise limit to 20M... ok.
* Have zlib support; enabling output compression.
* Found GD graphics library built-in, image thumbnailing will be enabled
if you enable uploads.
* Installation directory: /home/prodman/www2/wuki
* Script URI path: /prodman/wuki
* Warning: $wgProxyKey is insecure MySQL error 1045: Access denied for
user: 'root@localhost' (Using password: NO)
* Trying regular user... ok.
* Connected to database... 3.23.58
* Database prodman2 exists
* There are already MediaWiki tables in this database. Checking if
updates are needed...

...ipblocks is up to date.
...already have interwiki table
...indexes seem up to 20031107 standards
...have linkscc table.
...linkscc is up to date, or does not exist. Good.
...have hitcounter table.
Converting links table to ID-ID...
Schema already converted
...have user_real_name field in user table.
...have special page querycache table.
...have objectcache table.
...have categorylinks table.
Template namespace already initialised
Initialising "MediaWiki" namespace...
Clearing message cache...Done.

* Finished update checks.

Creating LocalSettings.php...

Success! Move the LocalSettings.php file into the parent directory,
then follow this link to your wiki.


What is necessary, to get the pretty URLs back?

Any hint would be appreciated!

Nikolai
Re: Pretty URLs are gone after changes on the webserver [ In reply to ]
Nikolai Neumayer wrote:
> * PHP server API is apache; ok, using pretty URLs (index.php/Page_Title)
[snip]
> * PHP server API is apache2filter; using ugly URLs
> (index.php?title=Page_Title)
[snip]
> What is necessary, to get the pretty URLs back?
>
> Any hint would be appreciated!

Look at your LocalSettings.php file. Try switching the setting, see if
it works. I don't think it will, since the apache2filter mode generally
produces 404 errors.

First, ask your webmaster if it's possible to configure PHP for the
apache2handler module instead of apache2filter. This will be compatible,
and seems to be more generally the recommended form.

If they won't do that, you'll have to set up rewrite rules to get pretty
URLs.

-- brion vibber (brion @ pobox.com)