Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

CMS Login page returns to login page - also a warning during install


Go to End


6 Posts   3603 Views

Avatar
Devin

Community Member, 9 Posts

20 August 2009 at 3:13pm

Attempting to get SilverStripe to run on PowWeb...Install goes fine with the exception of this Warning that pops up briefly before stating it installed successfully.

<quote>
Installing SilverStripe...

I am now running through the installation steps (this should take about 30 seconds)

If you receive a fatal error, refresh this page to continue the installation

Creating 'mysite/_config.php'...
Creating /hermes/web08/b934/pow.mcbrided/htdocs/usertisement.com/mysite/_config.php
Creating '.htaccess' file...
Creating /hermes/web08/b934/pow.mcbrided/htdocs/usertisement.com/.htaccess
Building database schema...
Checking that friendly URLs work...
Friendly URLs set up successfully; I am now redirecting you to your SilverStripe site...

[Warning] Unknown: open(/var/php_sessions/sess_e79d284849105a7cbb64c17cef0cf6db, O_RDWR) failed: No such file or directory (2)
POST /install.php

Line 0 in Unknown

Source

Trace
</quote>

After the install, attempting to logon to the CMS causes me to be redirected back to the logon page immediately. I am unable to get in.

I host multiple domains through this account with PowWeb. I point my domains to a subfolder of the root dir (for example: /htdocs/domain.com/ - where htdocs is my root dir). Is this a problem?

Avatar
Devin

Community Member, 9 Posts

20 August 2009 at 3:24pm

I just reinstalled to the root directory and have the same issue...not sure what to do about this.

Avatar
Devin

Community Member, 9 Posts

20 August 2009 at 3:56pm

Enabling dev mode outputs:

[Warning] session_start() [function.session-start]: open(/var/php_sessions/sess_cf01a815f4cabefe2362f3eaee0f0816, O_RDWR) failed: No such file or directory (2)
GET /

Line 197 in /hermes/web08/b934/pow.mcbrided/htdocs/sapphire/core/Session.php

Source

188 Session::set("FormInfo.$formname.message", $message);
189 Session::set("FormInfo.$formname.type", $type);
190 }
191
192 public static function start() {
193 self::load_config();
194
195 if(!session_id() && !headers_sent()) {
196 session_set_cookie_params(self::$timeout, Director::baseURL());
197 session_start();
198 }
199 }
200
201 /**
202 * Use the Session::$session_ips array to set timeouts based on IP address or IP address
203 * range.
Trace

session_start()
Line 197 of Session.php
Session::start()
Line 69 of main.php

Avatar
ajshort

Community Member, 244 Posts

20 August 2009 at 6:02pm

This looks like a PHP configuration issue - PHP can't seem to properly start the session, so your login details never get recorded in it. If it's shared hosting I would contact your hosting provider about it.

Avatar
NARKOZ

Community Member, 25 Posts

20 August 2009 at 6:51pm

Please look up in your php.ini file for this string:

session.save_path = 
and check if there is a folder where it points.

Avatar
Devin

Community Member, 9 Posts

21 August 2009 at 4:45am

ajshort hit the nail on the head. PowWeb fixed the path up last night and I'm up and going..

Consider this closed! :)