Hi,
I tried to turn on profiling but it doesn't show me any related errors.
Since ForeignAPIRepo worked fine until I switched to Nginx, it really
might be an Nginx problem. This is how my nginx.conf looks like:
#user www www;
#worker_processes 1;
error_log /path/to/nginx_error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#error_log syslog:notice|logs/error.log;
#syslog local5 nginx;
#pid logs/nginx.pid;
# set open fd limit to 30000 (to solve 24 - too many open files error)
worker_rlimit_nofile 30000;
events {
worker_connections 1024;
}
http {
include /path/to/nginx/mime.types;
default_type application/octet-stream;
index index.html index.htm index.php;
log_format main '$remote_addr - $remote_user [$time_local]
"$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent"
"$http_x_forwarded_for"';
keepalive_timeout 65;
log_not_found off;
#gzip on;
# This part is the same for all language wikis and the pool wiki
server {
listen 80;
server_name
cs.example.com;
root /path/to/cs;
index index.html index.htm index.php;
autoindex off;
# Short URL
location = / {
return 301
http://cs.example.com/wiki/Hlavn%C3%AD_strana;
}
location / {
index index.php;
error_page 404 = @mediawiki;
}
location @mediawiki {
rewrite ^/wiki([^?]*)(?:\?(.*))? /w/index.php?title=$1&$2 last;
}
location ~ \.php5?$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
}
location ~ \.php?$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
}
}
}
Doesn't Wikipedia also use Nginx? Is it possible to see the
configuration file (without any sensitive information) somewhere?
Thanks and cheers,
Till
On 1/29/2014 9:35 AM, Till Kraemer wrote:
Hi,
I'm running multiple language wikis and one pool wiki. The problem is
that no file descriptions are fetched in the language wikis although
$wgFetchCommonsDescriptions is set to true.
LocalSettings.php of the language wikis:
$wgUseSharedUploads = true;
$wgSharedUploadPath = 'http://pool.example.com/w/images';
$wgSharedUploadDirectory = '/path/to/pool/w/images/';
$wgHashedSharedUploadDirectory = true;
$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = 'poolwiki'; # DB-Name of PoolWiki
#$wgSharedUploadDBprefix = 'wiki_'; # Table name prefix for PoolWiki
$wgRepositoryBaseUrl = "http://pool.example.com/wiki/Image:";
ForeignAPIRepo used to work fine before, but since I switched from
Apache to Nginx, no images show up anymore in the language wikis. This
is how my LocalSettings.php used to look like:
$wgForeignFileRepos[] = array(
'class' => 'ForeignAPIRepo',
'name' => 'pool',
'apibase' => 'http://pool.example.com/w/api.php',
'fetchDescription' => true, // Optional
'descriptionCacheExpiry' => 43200, // 12 hours, optional (values are
seconds)
'apiThumbCacheExpiry' => 0, // required for local thumb caching
);
I also tried to set 'name' => 'poolwiki', (name of the pool database)
but that doesn't work either.
I also re-started Memcached and I even deleted a file description page
from the CloudFlare cache, but still no file description can be seen :/
My software: MediaWiki: 1.22.0
PHP: 5.3.27 (fpm-fcgi)
MySQL: 5.1.70-log
Any help would be über-cool.
Thanks and cheers,
Till