When trying to install, I get the following error:
docker exec -i -t mediawiki /script/install.sh sebastian <password>
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20160303/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 7.1.0 is installed.
Found ImageMagick: /usr/bin/convert.
Image thumbnailing will be enabled if you enable uploads.
Found the Git version control software: /usr/bin/git.
Using server URL "/".
/usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
Warning: Your default directory for uploads (/var/www/mediawiki/images/) is not checked for vulnerability
to arbitrary script execution during the CLI install.
Using the intl PECL extension for Unicode normalization.
The environment has been checked.
You can install MediaWiki.
Setting up database
done
Creating tables
done
Creating database user
[c92a15dca702094194ea7e14] [no req] Error from line 560 of /var/www/mediawiki/includes/installer/MysqlInstaller.php: Call to undefined method DBQueryError::getText()
Backtrace:
#0 /var/www/mediawiki/includes/installer/Installer.php(1515): MysqlInstaller->setupUser(MysqlInstaller)
#1 /var/www/mediawiki/includes/installer/CliInstaller.php(135): Installer->performInstallation(array, array)
#2 /var/www/mediawiki/maintenance/install.php(142): CliInstaller->execute()
#3 /var/www/mediawiki/maintenance/doMaintenance.php(111): CommandLineInstaller->execute()
#4 /var/www/mediawiki/maintenance/install.php(156): require_once(string)
#5 {main}
grep: LocalSettings.php: No such file or directory
From what I can tell, install.php fails here; as a consequence, LocalSettings.php never gets moved back from /tmp/ to /var/www/mediawiki/, which is why grep fails.
I noticed that script/install.shpasses Wiki to install.php; shouldn't this be $MEDIAWIKI_SITENAME instead?
I'm using the following commands to start docker containers:
Thanks for this container!
When trying to install, I get the following error:
From what I can tell,
install.php
fails here; as a consequence,LocalSettings.php
never gets moved back from/tmp/
to/var/www/mediawiki/
, which is whygrep
fails.I noticed that
script/install.sh
passes Wiki toinstall.php
; shouldn't this be$MEDIAWIKI_SITENAME
instead?I'm using the following commands to start docker containers:
Do you know what's going on here?