Last modified: 2012-04-12 13:55:43 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}
(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.
nginx-0.7.65
Need more information?
What is your fastcgi config?
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; }
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;
Are you sure the second config is being loaded?
Yes. The first is the server configuration in particular, the second - the global setting fastcgi.
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.