In the Mediawiki debug log, I also see IP: 127.0.0.1 In LocalSettings.php I have # Database settings The database is Postgresql, and I can access it fine with psql etc. #6 /usr/share/mediawiki/maintenance/update.php(248): require_once(string) #5 /usr/share/mediawiki/maintenance/doMaintenance.php(94): UpdateMediaWiki->execute() #4 /usr/share/mediawiki/maintenance/update.php(147): Maintenance->getDB(integer) #3 /usr/share/mediawiki/maintenance/Maintenance.php(1311): wfGetDB(integer, array, boolean) #2 /usr/share/mediawiki/includes/GlobalFunctions.php(2813): Wikimedia\Rdbms\LoadBalancer->getConnection(integer, array, boolean) #1 /usr/share/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(750): Wikimedia\Rdbms\LoadBalancer->reportConnectionError() #0 /usr/share/mediawiki/includes/libs/rdbms/loadbalancer/LoadBalancer.php(1140): Wikimedia\Rdbms\Database->reportConnectionError(string) Wikimedia\Rdbms\DBConnectionError from line 1004 of /usr/share/mediawiki/includes/libs/rdbms/database/Database.php: Cannot access the database: No database connection Your composer.lock file is up to date with current dependencies! Trying to run update.php, it fails with "Cannot access the database: No database connection": /var/lib/mediawiki/maintenance# php update.php Try_files $uri ~* \.I upgraded a Debian 9 "Stretch" server to Debian 10 "Buster", which also upgrades Mediawiki to version 1.31. To get MediaWiki working with Nginx, create the following file:įastcgi_pass unix:/var/run/php-fpm/php-fpm.sock įastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name Reason: /mw-config/index.php should not be exposed, see Talk:MediaWiki#/mw-config/index.php is exposed with Nginx config. If you use PHP's open_basedir and want to allow file uploads, you need to include /var/lib/mediawiki/ ( mediawiki symlinks images/ to /var/lib/mediawiki/).Ĭopy /etc/webapps/mediawiki/ to /etc/httpd/conf/extra/nf and edit it as needed.Īdd the following line to /etc/httpd/conf/nf: You will need to create the directory if it does not exist and then restrict its permissions: etc/php/php.ini session.save_path = "/var/lib/php/sessions" A good choice can be /var/lib/php/sessions or /tmp/. Second, tweak the session handling or you might get a fatal error ( PHP Fatal error: session_start(): Failed to initialize storage module) by finding the session.save_path path. If you use SQLite, install php-sqlite and uncomment extension=pdo_sqlite.If you use PostgreSQL, install php-pgsql and uncomment extension=pgsql.If you use MariaDB, uncomment extension=mysqli.For more efficient Unicode normalization, uncomment extension=intl.If you choose the latter, you also need to uncomment extension=gd. For thumbnail rendering, install either ImageMagick or php-gd.MediaWiki requires the iconv extension, so you need to uncomment extension=iconv in /etc/php/php.ini. The steps to achieve a working MediaWiki configuration involve editing the PHP settings and adding the MediaWiki configuration snippets. To install MediaWiki on XAMPP, see mw:Manual:Installing MediaWiki on XAMPP Configuration a database system – one of MariaDB, PostgreSQL, SQLite or MySQL.a web server, such as Apache HTTP Server, nginx or lighttpd.the mediawiki package, which pulls in PHP.It also powers this wiki (see Special:Version and the GitHub repository). MediaWiki is a free and open source wiki software written in PHP, originally developed for Wikipedia.
0 Comments
Leave a Reply. |