Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Internal Server Error when browsing to index.php

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


my_unique_name at hotmail

Aug 11, 2005, 8:24 PM

Post #1 of 2 (2363 views)
Permalink
Internal Server Error when browsing to index.php

I configure MediaWiki and move (not copy!) the resulting LocalSettings.php
to the parent directory. Then I browse to index.php in the MediaWiki root
and get a 505 Internal Server Error. Looking at my Apache error log I see
the message

[Thu Aug 11 21:28:03 2005] [error] [client 24.174.29.204] malformed header
from script. Bad header=H
TTP/1.1 301 Moved Permanently: /www/apegames/cgi-bin/php

I looked in LocalSettings.php and saw an item $wgScriptPath that LOOKED like
it should point to the MediaWiki root directory, but instead pointed to
/cgi-bin/php. Changing this setting to my MediaWiki root directory results
in the same message being output and the same error in my Apache error log.

As a last piece of data, here are the messages output on the config page:

Checking environment...

* WARNING: PHP 4.3.2 or higher is recommended. Older versions from 4.1.x
up may work but are not actively supported. PHP 4.2.3: 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 cgi; 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.
* Turck MMCache not installed, can't use object caching functions
* Found ImageMagick: /usr/local/bin/convert; image thumbnailing will be
enabled if you enable uploads.
* Found GD graphics library built-in.
* Installation directory: /home/www/apegames/developer/mediawiki-oots
* Script URI path: /cgi-bin/php


Note that it thinks the Script URI path is /cgi-bin/php here, too.

Is that enough info for someone to tell me where I'm going wrong?

Thanks,
Kevin

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l


my_unique_name at hotmail

Aug 12, 2005, 8:59 AM

Post #2 of 2 (2239 views)
Permalink
RE: Internal Server Error when browsing to index.php [In reply to]

This isn't a valid solution, but I edited index.php to remove the 301
redirect code, and everything now appears to work properly. Does that spark
any ideas?

Thanks,
Kevin


>From: "Kevin Brusky" <my_unique_name [at] hotmail>
>Reply-To: MediaWiki announcements and site admin list
><mediawiki-l [at] Wikimedia>
>To: mediawiki-l [at] Wikimedia
>Subject: [Mediawiki-l] Internal Server Error when browsing to index.php
>Date: Thu, 11 Aug 2005 22:24:37 -0500
>
>I configure MediaWiki and move (not copy!) the resulting LocalSettings.php
>to the parent directory. Then I browse to index.php in the MediaWiki root
>and get a 505 Internal Server Error. Looking at my Apache error log I see
>the message
>
>[Thu Aug 11 21:28:03 2005] [error] [client 24.174.29.204] malformed header
>from script. Bad header=H
>TTP/1.1 301 Moved Permanently: /www/apegames/cgi-bin/php
>
>I looked in LocalSettings.php and saw an item $wgScriptPath that LOOKED
>like it should point to the MediaWiki root directory, but instead pointed
>to /cgi-bin/php. Changing this setting to my MediaWiki root directory
>results in the same message being output and the same error in my Apache
>error log.
>
>As a last piece of data, here are the messages output on the config page:
>
>Checking environment...
>
> * WARNING: PHP 4.3.2 or higher is recommended. Older versions from
>4.1.x up may work but are not actively supported. PHP 4.2.3: 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 cgi; 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.
> * Turck MMCache not installed, can't use object caching functions
> * Found ImageMagick: /usr/local/bin/convert; image thumbnailing will be
>enabled if you enable uploads.
> * Found GD graphics library built-in.
> * Installation directory: /home/www/apegames/developer/mediawiki-oots
> * Script URI path: /cgi-bin/php
>
>
>Note that it thinks the Script URI path is /cgi-bin/php here, too.
>
>Is that enough info for someone to tell me where I'm going wrong?
>
>Thanks,
>Kevin
>
>_________________________________________________________________
>FREE pop-up blocking with the new MSN Toolbar – get it now!
>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
>
>_______________________________________________
>MediaWiki-l mailing list
>MediaWiki-l [at] Wikimedia
>http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] Wikimedia
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.