Last modified: 2012-04-12 13:55:43 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28199, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26199 - nginx-0.7.65 doesn't provide either REQUEST_URI or SCRIPT_NAME (mediawiki throws exception)
nginx-0.7.65 doesn't provide either REQUEST_URI or SCRIPT_NAME (mediawiki thr...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.16.x
PC Linux
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-02 09:14 UTC by Breaker
Modified: 2012-04-12 13:55 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Breaker 2010-12-02 09:14:42 UTC
mysql-5.1.51
php-5.3.3-r1

After install:

MediaWiki internal error.

Original exception: exception 'MWException' with message 'Web server doesn't provide either REQUEST_URI or SCRIPT_NAME. Report details of your web server configuration to http://bugzilla.wikimedia.org/' in /var/www/wiki/includes/WebRequest.php:449
Stack trace:
#0 /var/www/wiki/includes/WebRequest.php(475): WebRequest->getRequestURL()
#1 /var/www/wiki/includes/Wiki.php(224): WebRequest->getFullRequestURL()
#2 /var/www/wiki/includes/Wiki.php(64): MediaWiki->handleSpecialCases(Object(Title), Object(OutputPage), Object(WebRequest))
#3 /var/www/wiki/index.php(117): MediaWiki->performRequestForTitle(Object(Title), NULL, Object(OutputPage), Object(User), Object(WebRequest))
#4 {main}

Exception caught inside exception handler: exception 'MWException' with message 'Web server doesn't provide either REQUEST_URI or SCRIPT_NAME. Report details of your web server configuration to http://bugzilla.wikimedia.org/' in /var/www/wiki/includes/WebRequest.php:449
Stack trace:
#0 /var/www/wiki/includes/Exception.php(138): WebRequest->getRequestURL()
#1 /var/www/wiki/includes/Exception.php(184): MWException->getLogMessage()
#2 /var/www/wiki/includes/Exception.php(289): MWException->report()
#3 /var/www/wiki/includes/Exception.php(348): wfReportException(Object(MWException))
#4 [internal function]: wfExceptionHandler(Object(MWException))
#5 {main}
Comment 1 Roan Kattouw 2010-12-02 14:10:03 UTC
(In reply to comment #0)
> 'Web server doesn't
> provide either REQUEST_URI or SCRIPT_NAME. Report details of your web server
> configuration to http://bugzilla.wikimedia.org/'
You reported your MySQL and PHP versions, but we need the web server version and relevant config details to be able to help you, as this message says.
Comment 2 Breaker 2010-12-03 05:12:41 UTC
nginx-0.7.65
Comment 3 Breaker 2010-12-04 07:46:31 UTC
Need more information?
Comment 4 OverlordQ 2010-12-04 07:49:04 UTC
What is your fastcgi config?
Comment 5 Breaker 2010-12-04 08:46:11 UTC
               location ~ \.php$ {
                        fastcgi_pass   127.0.0.1:9000;
                        fastcgi_index  index.php;
                        fastcgi_param  SCRIPT_FILENAME  /var/www/wiki$fastcgi_script_name;
                        fastcgi_param  QUERY_STRING     $query_string;
                        fastcgi_param  REQUEST_METHOD   $request_method;
                        fastcgi_param  CONTENT_TYPE     $content_type;
                        fastcgi_param  CONTENT_LENGTH   $content_length;
                }
Comment 6 Breaker 2010-12-04 08:49:22 UTC
fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
fastcgi_param  QUERY_STRING       $query_string;
fastcgi_param  REQUEST_METHOD     $request_method;
fastcgi_param  CONTENT_TYPE       $content_type;
fastcgi_param  CONTENT_LENGTH     $content_length;

fastcgi_param  SCRIPT_NAME        $fastcgi_script_name;
fastcgi_param  REQUEST_URI        $request_uri;
fastcgi_param  DOCUMENT_URI       $document_uri;
fastcgi_param  DOCUMENT_ROOT      $document_root;
fastcgi_param  SERVER_PROTOCOL    $server_protocol;

fastcgi_param  GATEWAY_INTERFACE  CGI/1.1;
fastcgi_param  SERVER_SOFTWARE    nginx/$nginx_version;

fastcgi_param  REMOTE_ADDR        $remote_addr;
fastcgi_param  REMOTE_PORT        $remote_port;
fastcgi_param  SERVER_ADDR        $server_addr;
fastcgi_param  SERVER_PORT        $server_port;
fastcgi_param  SERVER_NAME        $server_name;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param  REDIRECT_STATUS    200;
Comment 7 OverlordQ 2010-12-04 08:50:27 UTC
Are you sure the second config is being loaded?
Comment 8 Breaker 2010-12-04 09:23:59 UTC
Yes. The first is the server configuration in particular, the second - the global setting fastcgi.
Comment 9 OverlordQ 2010-12-04 09:26:11 UTC
Yes, did you include it in the right spot? fastcgi_param has a scope of http and location, are you *SURE* you have the include fastcgi.conf in the right place? are you *sure* it's in the right scope?

I have no problems with mediawiki and nginx.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links