Jump to content

Manual talk:Installation requirements

About this board

archive of this page


Can you install MediaWiki 1.36.2 on phone, tablet or laptop?

2
512 megabytes (talkcontribs)

Can you install MediaWiki 1.36.2 on the following devices:

  • Phone: Alcatel 1S (2021) (3 GB of RAM)
  • Tablet: iPad (7th generation) (3 GB of RAM)
  • Laptop: Dell Chromebook 11 3189 (4 GB of RAM)
These exceed the minimum requirements of 256 MB RAM and 85 MB of free space.
Ciencia Al Poder (talkcontribs)

You can, as long as you meet the requirements. You need at least a webserver and PHP. I don't think you can install and run a webserver and PHP on a phone or tablet.

Reply to "Can you install MediaWiki 1.36.2 on phone, tablet or laptop?"

php-fileinfo module incorporated in php7.2-common

2
JanEnEm (talkcontribs)

As far as I know has the mdoule php-fileinfo been incorporated in the PHP 7.2 version of php-common.

Kghbln (talkcontribs)

This may very well be true. Did all major distros do this or are there differences in roll out?

Reply to "php-fileinfo module incorporated in php7.2-common"

Wrong PHP requirements notice ?

2
Vifsorbier (talkcontribs)

It's indicated on this page that PHP version 7.0.13 or later is required

But on the Compatibility page it's indicated that MediaWiki is not fully compatible with PHP 7.3 yet. [1]

Kghbln (talkcontribs)

Thanks for the note. I have rephrased the information.

PostgreSQL 9.2+ now required

2
Summary by Kghbln

Docu was updated.

ECS-Sark (talkcontribs)

Just a heads up.  I spent several hours trying to troubleshoot an upgrade only to find out that 1.31 now requires PostgreSQL 9.2+.  The neither this page or the upgrade page does not specifically call it out and still shows that 8.3+ is the minimal requirement.  I recommend updating the both this page and the Upgrading page to reflect this change.

Good luck.

Kghbln (talkcontribs)

Thanks a lot for the pointer. I just updated the docu to make sure that others do not run into the same "pain" as you did.

Roadmap for Database Support

1
GoodMagician (talkcontribs)

Is there a roadmap that explains how database requirements are likely to evolve in the future? Primary concerns:

  • Is there a plan to drop MySQL support at some point in the future now that Wikimedia Foundation runs MariaDB internally?
  • Is there a long-term plan for Oracle support?
Reply to "Roadmap for Database Support"
Vanished user Xorisdtbdfgonugyfs (talkcontribs)

Is php required to run scripts indepedently from webserver, meaning do we need to run any scripts (such as module installation php scripts or updating php scripts) without starting the webserver?

Can php that is installed in the system be different from the one used from the webserver that comes with apachefriends' xampp?

Ciencia Al Poder (talkcontribs)

Is strongly recommended to have PHP as a binary to run scripts, if you ever need to run them.

Yes, the php cli can be different, but must be a version compatible with MediaWiki, and should have the required extensions to run MediaWiki (mbstring, database drivers...)

Vanished user Xorisdtbdfgonugyfs (talkcontribs)

Thanks for the answer but I am still confused. Which scripts will ever be needed to run from cli? Are those scripts (that must be run from command line), required to run (start, stop, config) the server or are scripts that run from a page inside site, thus can safely use server's php?

If they are required by extensions in order to be installed or to run some kind of modifications or for parametrization (outside of the webserver, from command line) then this is an extension's requirement and should be extension's reliability to check if it is safe to run.

Is it sure that there is nothing to worry having a version of php inside server (ex. Apache) and use a second version of php to run (from inside or outside Apache) any script that affects mediawiki site (even if compatible)?

Ciencia Al Poder (talkcontribs)

Any script you may need to run are described in Manual:Maintenance scripts. The most usual are update.php during upgrades (although you can use the web installer), and runJobs.php in case you need to manually clear the Manual:job queue, but it may happen that you have a MediaWiki instance running and not have to run a maintenance script on its lifetime.

All php scripts would be run manually (by you), not by extensions.

If you run php on apache as an apache module or as a fpm, it's already a different php binary than the command line binary that would provide your distribution on installation.

Reply to "php required?"

optional dependencies?

1
Vanished user Xorisdtbdfgonugyfs (talkcontribs)

I downloaded MediaWiki 1.29.0 but it refuses to start saying there are non optional dependencies.

Reply to "optional dependencies?"

PageTranslationHooks.php: [] operator not supported for strings ?

2
80.1.154.95 (talkcontribs)

I updated my php to 7.1.3 on Archlinux, then mediawiki to 1.28 and MLEB 2017.01.

But when I'm logged in and go to a translated page, I've got the following error.

I'm assuming it's related to php 7.1 but I can't roll back as it's part of a stack.

Any one have an idea to fix this issue?

[928678b78dfffb063994597a] /documentation/index.php?title=DSBrowser_versions/en Error from line 629 of /usr/share/webapps/mediawiki/extensions/Translate/tag/PageTranslationHooks.php: [] operator not supported for strings

Backtrace:

#0 /usr/share/webapps/mediawiki/includes/Hooks.php(195): PageTranslationHooks::preventPatrolling(Title, User, string, string)

#1 /usr/share/webapps/mediawiki/includes/Title.php(2060): Hooks::run(string, array)

#2 /usr/share/webapps/mediawiki/includes/Title.php(2498): Title->checkPermissionHooks(string, User, array, string, boolean)

#3 /usr/share/webapps/mediawiki/includes/Title.php(1903): Title->getUserPermissionsErrorsInternal(string, User, string, boolean)

#4 /usr/share/webapps/mediawiki/includes/Title.php(1885): Title->userCan(string, User, boolean)

#5 /usr/share/webapps/mediawiki/includes/page/Article.php(1060): Title->quickUserCan(string, User)

#6 /usr/share/webapps/mediawiki/includes/page/Article.php(1038): Article->showPatrolFooter()

#7 /usr/share/webapps/mediawiki/includes/page/Article.php(718): Article->showViewFooter()

#8 /usr/share/webapps/mediawiki/includes/actions/ViewAction.php(71): Article->view()

#9 /usr/share/webapps/mediawiki/includes/MediaWiki.php(495): ViewAction->show()

#10 /usr/share/webapps/mediawiki/includes/MediaWiki.php(289): MediaWiki->performAction(Article, Title)

#11 /usr/share/webapps/mediawiki/includes/MediaWiki.php(851): MediaWiki->performRequest()

#12 /usr/share/webapps/mediawiki/includes/MediaWiki.php(512): MediaWiki->main()

#13 /usr/share/webapps/mediawiki/index.php(43): MediaWiki->run()

#14 {main}

130.245.68.36 (talkcontribs)

I just tried to manually change $result[] = ... to

$result = array();

$result[] = ...

Seems to work, not sure if there's any other place need to change

Reply to "PageTranslationHooks.php: [] operator not supported for strings ?"

does it run with PHP 7.1 ?

4
91.18.201.16 (talkcontribs)

does mediawiki run under PHP 7.1 ?

Kghbln (talkcontribs)

Currently there are about eight wikis already using PHP 7.1 so it seems to work. Still you would be on the forefront of PHP 7.1 adoption so issues are not improbable.

91.18.219.210 (talkcontribs)

thanks

Reply to "does it run with PHP 7.1 ?"

install wiki on sql server

6
62.61.179.218 (talkcontribs)

can i install wiki on sql server ?

Jasper Deng (talkcontribs)

If you are talking about Microsoft's solution, it's probably possible but things aren't likely to work as well with it; MediaWiki works best with MySQL.

2001:4898:80E0:EE43:0:0:0:3 (talkcontribs)

Seems the last update is in 2012. Wondering any update for MS SQL server support? or event Windows Azure SQL? Thanks!

Jasper Deng (talkcontribs)

As far as I know, we are not actively working on SQL Server support.

193.203.229.20 (talkcontribs)

Long time passed, and now what about new SQL Server 2014 for Linux ?

193.203.229.20 (talkcontribs)

Sorry, I meant to say SQL Server for Linux.

Reply to "install wiki on sql server"