Greetings!
I successfully installed MediaWiki 1.35 on Ubuntu 20.04 and Nginx.
But I can't install extention Echo. So, I can't both run update.php script and access web updater. More, some extensions like MobleFrontend, which don't change database, dropped my wiki to Error 500 too. What should I do? Thanks for any help!
PHP v 7.4
update.php output:
wikiadmin@wiki-ubuntu:/var/lib/mediawiki/maintenance$ sudo php update.php
PHP Fatal error: Uncaught Exception: Unable to open file vendor/wikimedia/parsoid/extension.json: filemtime(): stat failed for vendor/wikimedia/parsoid/extension.json in /var/lib/mediawiki/includes/registration/ExtensionRegistry.php:177
Stack trace:
#0 /var/lib/mediawiki/includes/GlobalFunctions.php(51): ExtensionRegistry->queue()
#1 /var/lib/mediawiki/LocalSettings.php(151): wfLoadExtension()
#2 /var/lib/mediawiki/includes/Setup.php(143): require_once('/var/lib/mediaw...')
#3 /var/lib/mediawiki/maintenance/doMaintenance.php(91): require_once('/var/lib/mediaw...')
#4 /var/lib/mediawiki/maintenance/update.php(253): require_once('/var/lib/mediaw...')
#5 {main}
thrown in /var/lib/mediawiki/includes/registration/ExtensionRegistry.php on line 177
PHP Fatal error: Uncaught Error: Class 'WebRequest' not found in /var/lib/mediawiki/includes/HeaderCallback.php:63
Stack trace:
#0 [internal function]: MediaWiki\HeaderCallback::callback()
#1 {main}
thrown in /var/lib/mediawiki/includes/HeaderCallback.php on line 63
/etc/nginx/sites-avaliable/wikibase
server {
listen 192.168.10.194:80 default_server;
server_name wikibase;
root /var/www/html/mediawiki;
client_max_body_size 5m;
client_body_timeout 60;
location / {
try_files $uri $uri/ @rewrite;
}
location /wikibase/ {
try_files $uri $uri/ @rewrite;
}
location @rewrite {
#rewrite ^/(.*)$ /index.php?title=$1&$args;
rewrite ^/(.*)$ /index.php?title=%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%>
}
location ^~ /maintenance/ {
return 403;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $request_filename;
}
# location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
# root /var/www/html/mediawiki;
# expires max;
# log_not_found off;
# }
# location ~ ^/(skins|extensions)/.+\.(css|js|gif|jpg|jpeg|png|svg|wasm)$ {
# try_files $uri 404;
# add_header Cache-Control "public";
# expires 7d;
# }
location /rest.php/ {
try_files $uri $uri/ /rest.php?$query_string;
}
location ^~ /cache/ {
deny all;
}
}