Jump to content

Topic on Manual talk:Installation guide/Archive 2

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