Jump to content

Manual talk:Installation guide

About this board

archive of this page .

154.121.54.177 (talkcontribs)

Hello, is PowerShell compatible to run maintenance scripts? --154.121.54.177 11:08, 15 May 2022 (UTC)

AIVOP (talkcontribs)

Hi i think it will work, but not try yet

Ciencia Al Poder (talkcontribs)

Maintenance scripts are run by PHP. It doesn't matter if you run them from a CMD, a power shell, or configure them in the Windows task scheduler...

119.224.75.221 (talkcontribs)

Thanks thats a good info

Installation Problems

12
Summary by Berot3

adding session.save_path to the index.php of mw-config helped

Freeman2001~mediawikiwiki (talkcontribs)

Okay, I have downloaded, extracted, and uploaded my copy of MediaWiki. When I go to the wiki, it says "LocalSettings.php not found. Please set up the wiki first." So i click set up the wiki. Then no matter what I do, this error is thrown at me: "Error starting session: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/php_sessions/sess_095f5068adbc6b7c45d3fbdfa00113a3, O_RDWR) failed: No such file or directory (2) " I'm not sure what to do, please help! Freeman2001 01:03, 8 January 2012 (UTC)

This post was posted by Freeman2001~mediawikiwiki, but signed as Freeman2001.

68.146.79.199 (talkcontribs)

On the manual, it says to change the directory permission to 777 if such error occurs

199.184.30.51 (talkcontribs)
110.83.121.48 (talkcontribs)

use ssh insert this: chmod -R 777 /var/php_sessions/ Okay~

95.56.218.25 (talkcontribs)

This problem is php.ini problem:

>hosting control panel >>PHP Scripting

edit php.ini and go to this place:

; where MODE is the octal representation of the mode. Note that this
; does not overwrite the process's umask.
; http://php.net/session.save-path
session.save_path = "/var/php_sessions" 

change this

session.save_path = " /var/php_sessions "

to

session.save_path = " /home/users/web/xxxx/xxxxxx/public_html/phpsessions "

see http://www.netfirms.com/knowledgebase/beta/article.bml?ArticleID=1290&type=How%20To#Nugget_1374

you can "autoinstall" Mediawiki using install script site; https://secure.installatron.com/apps#cmd=browser&display=mediawiki

anyway you have to change your " session.save_path" address

62.232.110.114 (talkcontribs)

Sadly, the install of MediaWiki 1.21.3 did this for me as well. Instead of getting "file not found" after the "MediaWiki 1.21.3 LocalSettings.php not found. Please set up the wiki first." message, it simply forwards me onto "mw-config/index.php" and displays the same info. If I click the 'set up wiki' link again, it forwards me to: "mw-config/mw-config/index.php" and so on.

Changing the session.save_path did nothing, neither did changing the permissions to 777 for the save_path.

Any advice?

62.232.110.114 (talkcontribs)

Sadly, the install of MediaWiki 1.21.3 did this for me as well. Instead of getting "file not found" after the "MediaWiki 1.21.3 LocalSettings.php not found. Please set up the wiki first." message, it simply forwards me onto "mw-config/index.php" and displays the same info. If I click the 'set up wiki' link again, it forwards me to: "mw-config/mw-config/index.php" and so on.

Changing the session.save_path did nothing, neither did changing the permissions to 777 for the save_path.

Any advice?

62.232.110.114 (talkcontribs)

Worked it out. For some inexplicable reason, it won't install using Google Chrome. Used Firefox in a last ditch attempt, and it seems to be going through the install.

184.64.248.180 (talkcontribs)

Worked for me.

I had a botched install in the directory before and failed to download the LocalSettings file at the end.

Deleted the dir, started again and had this issue.

Switching to Firefox was a work around

Giulioprisco (talkcontribs)

This works. Add:

ini_set('session.save_path',realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));

to mw-config/index.php and includes/NoLocalSettings.php (before session start)

50.160.207.45 (talkcontribs)

where in the file do I add ini_set('session.save_path',realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));

Thank you

MediaWiki running on Ubuntu 20.04 with php 7.4.3

4
MountainGoat92 (talkcontribs)

Hi everyone,

i am running a mediawiki 1.35 on Ubuntu 20.04 and the standard php version 7.4.3 - seems to be no problem so far.

The linked bug also seem to be closed - remove the php version warning on the installation page?

Best regards,

Manuel

Ciencia Al Poder (talkcontribs)

I don't see any linked bug

MountainGoat92 (talkcontribs)
Ciencia Al Poder (talkcontribs)

Looks like you have a patched version of MediaWiki that doesn't include this blocklist, or MediaWiki is not using PHP 7.4.3. Otherwise, any page load will fail with an error message about an incompatible PHP version.

hi, how do i install this on a tablet?

3
Dr Mirray (talkcontribs)

good, I am a user who wants to use MediaWiki to create his own wiki. However I didn't find anything to help me install this on android, and I need help. I have a HUAWEI MediaPad T3 10 tablet.

Ciencia Al Poder (talkcontribs)

You can't install MediaWiki on a tablet nor phone. You need a server with filesystem and a web server

Dr Mirray (talkcontribs)

Oh well, it hurts. Anyway, I'm using Mirahaze, so my problem is half solved.

Request for documentation tweak regarding PHP 7.4

2
Econterms (talkcontribs)

This page says "Warning: MediaWiki is not compatible with PHP 7.4.0 to 7.4.2 due to an upstream bug. See phab:T246594 for more information." Could we replace "bug" by plainer language? The phab page did not seem to be informative. This seems clearer, if it is correct:

"Warning: MediaWiki cannot run on PHP 7.4.0 to 7.4.2 because of a bug in PHP. See phab:T246594 for more information."

Ciencia Al Poder (talkcontribs)

Done

Problems with Liuggio while installing 1.34.2

1
DocCMichel (talkcontribs)

Hi there,


I'm trying to install MediaWiki 1.34.2 in my domain space hosted by a provider. The following error message occured right after "Administratorkonto wird erstellt…" (creating admin account):

[XxRmpVKlVr4AALNFucMAAAAK] /RPGWiki/mw-config/index.php?page=Install Error from line 48 of /homepages/18/d372413260/htdocs/RPGWiki/vendor/liuggio/statsd-php-client/src/Liuggio/StatsdClient/Factory/StatsdDataFactory.php: Class 'Liuggio\StatsdClient\Entity\StatsdDataInterface' not found


Here's what I've done so far:

1. checking the installation requirements: I've found PHP 7.4.7, PCRE enabled, JSON support enabled, mysqlnd 7.4.7 => looks OK, doesn't it !?

2. downloaded mediawiki-1.34.2.tar.gz to my Windows 10 client

3. unpacked the tarball to a folder using 7-Zip

4. fixed the issue concerning the 2 identical named files "StatsdDataFactory" in [folder]\vendor\liuggio\statsd-php-client\src\Liuggio\StatsdClient\Factory manually

5. uploaded the folder to my web space via FTP using WinSCP

6. started the set-up. Everything went smoothly until the error message above occured.


Backtrace showed the following information:


#0 /homepages/18/d372413260/htdocs/RPGWiki/includes/libs/objectcache/wancache/WANObjectCache.php(755): Liuggio\StatsdClient\Factory\StatsdDataFactory->increment(string)

#1 /homepages/18/d372413260/htdocs/RPGWiki/includes/user/User.php(2597): WANObjectCache->delete(string)

#2 /homepages/18/d372413260/htdocs/RPGWiki/includes/libs/rdbms/database/Database.php(3439): User->{closure}(Wikimedia\Rdbms\DatabaseMysqli)

#3 /homepages/18/d372413260/htdocs/RPGWiki/includes/libs/rdbms/database/DBConnRef.php(68): Wikimedia\Rdbms\Database->onTransactionPreCommitOrIdle(Closure, string)

#4 /homepages/18/d372413260/htdocs/RPGWiki/includes/libs/rdbms/database/DBConnRef.php(603): Wikimedia\Rdbms\DBConnRef->__call(string, array)

#5 /homepages/18/d372413260/htdocs/RPGWiki/includes/user/User.php(2599): Wikimedia\Rdbms\DBConnRef->onTransactionPreCommitOrIdle(Closure, string)

#6 /homepages/18/d372413260/htdocs/RPGWiki/includes/user/User.php(4031): User->clearSharedCache(string)

#7 /homepages/18/d372413260/htdocs/RPGWiki/includes/session/SessionManager.php(315): User->saveSettings()

#8 /homepages/18/d372413260/htdocs/RPGWiki/includes/user/User.php(2744): MediaWiki\Session\SessionManager->invalidateSessionsForUser(User)

#9 /homepages/18/d372413260/htdocs/RPGWiki/includes/user/User.php(2699): User->setPasswordInternal(string)

#10 /homepages/18/d372413260/htdocs/RPGWiki/includes/installer/Installer.php(1695): User->setPassword(string)

#11 /homepages/18/d372413260/htdocs/RPGWiki/includes/installer/Installer.php(1624): Installer->createSysop(MysqlInstaller)

#12 /homepages/18/d372413260/htdocs/RPGWiki/includes/installer/WebInstallerInstall.php(44): Installer->performInstallation(array, array)

#13 /homepages/18/d372413260/htdocs/RPGWiki/includes/installer/WebInstaller.php(270): WebInstallerInstall->execute()

#14 /homepages/18/d372413260/htdocs/RPGWiki/mw-config/index.php(80): WebInstaller->execute(array)

#15 /homepages/18/d372413260/htdocs/RPGWiki/mw-config/index.php(38): wfInstallerMain()

#16 {main}



Any ideas? Thanks a lot.

Chris

Reply to "Problems with Liuggio while installing 1.34.2"

 ConfigException from line 53 of /var/www/html/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'CommandLineMode'

5
Rajeshrajesh.35 (talkcontribs)

Hi Guys,


I am getting these error on linux server.

Using Mediawiki 1.31


[503c1292cffc0d8d41f078dd] [no req]   ConfigException from line 53 of /var/www/html/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'CommandLineMode'

Backtrace:

#0 /var/www/html/mediawiki/maintenance/Maintenance.php(645): GlobalVarConfig->get(string)

#1 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(3461): Maintenance::{closure}(integer, Wikimedia\Rdbms\DatabaseMysqli)

#2 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(3795): Wikimedia\Rdbms\Database->runTransactionListenerCallbacks(integer)

#3 /var/www/html/mediawiki/includes/libs/rdbms/database/Database.php(3582): Wikimedia\Rdbms\Database->commit(string, string)

#4 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/TableUpdater.php(60): Wikimedia\Rdbms\Database->endAtomic(string)

#5 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/MediaWiki/Hooks/UserSaveOptions.php(74): SWL\TableUpdater->updateGroupIdsForUser(integer, array)

#6 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/MediaWiki/Hooks/UserSaveOptions.php(68): SWL\MediaWiki\Hooks\UserSaveOptions->performUpdate(array)

#7 /var/www/html/mediawiki/extensions/SemanticWatchlist/src/HookRegistry.php(77): SWL\MediaWiki\Hooks\UserSaveOptions->execute()

#8 /var/www/html/mediawiki/includes/Hooks.php(177): SWL\HookRegistry->SWL\{closure}(Bechtel\KMUser, array)

#9 /var/www/html/mediawiki/includes/Hooks.php(205): Hooks::callHook(string, array, array, NULL)

#10 /var/www/html/mediawiki/includes/user/User.php(5511): Hooks::run(string, array)

#11 /var/www/html/mediawiki/extensions/Bechtel/src/KMUser.php(310): User->saveOptions()

#12 /var/www/html/mediawiki/extensions/Bechtel/maintenance/Batch.php(190): Bechtel\KMUser->setLastRun(ConvertibleTimestamp)

#13 /var/www/html/mediawiki/maintenance/doMaintenance.php(94): Bechtel\Batch->execute()

#14 /var/www/html/mediawiki/extensions/Bechtel/maintenance/Batch.php(257): require_once(string)

#15 {main}


I have use this but still getting error.


Manual:$wgCommandLineMode


Kindly help me.

Ciencia Al Poder (talkcontribs)

Be sure you have an updated version of SemanticWatchlist compatible with 1.31.

Maybe you need to disable this extension during install. Some of them may be not compatible with the installer or cause strange errors.

Rajeshrajesh.35 (talkcontribs)

I have installed mediawik but whenever i runs Batch.php


Then i gets this error message

Ciencia Al Poder (talkcontribs)

This may be a problem with that Bechtel extension (I didn't notice it before, sorry), that doesn't set the command line mode properly.

Rajeshrajesh.35 (talkcontribs)

@Ciencia Al Poder Thanks for you suggestion.


Finally i got solutions,


We have set these Global key in location setting files.


$[WIKI PRE FIX]CommandLineMode = true;

$[WIKI PRE FIX]StatsdServer = false;


In wiki page these details are not mentions clearly.



Reply to " ConfigException from line 53 of /var/www/html/mediawiki/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'CommandLineMode'"
92.4.252.74 (talkcontribs)

After upload all the files on the server. I go to the page to follow installation but the page is comp-letely blank. What I have done wrong? What is missing?

Kghbln (talkcontribs)

Have a look [[Manual:Errors_and_symptoms#You_see_a_Blank_Page|here]].

Kghbln (talkcontribs)

I have no idea why but the link does not work in my previous post. See here. Unsolved mysteries all over the place. Robert Stack, I miss you.

Reply to "blank page"

[Moved] MediaWiki 1.18

1
Summary by Kghbln

EditThis.info should upgrade

Locationlol2 (talkcontribs)

This wiki EditThis.info has been running MediaWiki 1.15

MediaWiki 1.15 & MediaWiki 1.16

2
Summary by Kghbln

EditThis.info should upgrade

Locationlol2 (talkcontribs)

This wiki EditThis.info has been running MediaWiki 1.15

Kghbln (talkcontribs)

So? However they should upgrade.