← Back to team overview

exponent-cms team mailing list archive

Fwd: Fwd: Fwd: Warning after installation, dev "1"

 

Hi all,

just reporting here how we actually fixed the issue of not able to logging and getting the warning of session_start.

We realised that even if this specific server is Linux based the php_value line is understood as CRLF as line break, no unix lines, neither mac of course. Of course, this is a confusing configuration and hard to troubleshoot or guess but luckily we did guess it.

<IfModule mod_php.c>
php_value session.save_path /home/youruseraccount/sessions
</IfModule>

Earlier I was wondering the SPACE in the warning line, so that was the key to figure out where is the fault in the server.

>>> cutting from above the url, there is a SPACE after "tmp" for some reason:
>>> /home/useraccount/public_html/fi/tmp /sess_12bf6ac9254da68f74909ebeb36bf0b0
>>> 
>>> It could be the SPACE as an issue but from where it comes... there is no space in the .htaccess path

We fixed the issue by putting there Windows-based linebreaks, CRLF.

The other correction could be to fix the Exponent sessions.php file to have this right before the line of
session_start() and it would protect us from buggy servers concerning the above type of issues:

        session_save_path(rtrim(session_save_path()));

Now I can log into the Exponent (this is with 0.97) and there is no warnings and development variable is still "1" for the moment.

I had such a trouble with this case so far that I wished to contribute if anybody would get benefit out of this!

Sanna


Begin forwarded message:

> From: Sanna Edelman <direct@xxxxxxxxxxxx>
> Date: 20. huhtikuuta 2010 21.25.53 UTC+3.00
> To: exponent-cms@xxxxxxxxxxxxxxxxxxx
> Subject: [Exponent-cms] Fwd: Fwd: Warning after installation, dev "1"
> 
> Hi,
> 
> still having the issue and the "very friendly" server hotel guy is just listing what solutions according to the log were wrong by us. Well, that we knew already...
> 
> He is saying to be worth of making something like  /home/$user/sessions
> path and put that in order with php_value
> ... can't understand why he can't do that by himself!
> 
> I thought we were already trying that. How would you understand his "friendly" tip?
> Honestly I think this guy should go to learn some customer service but can't help him on that now.
> 
> /Sanna
> 
> Begin forwarded message:
> 
>> From: Ron Miller <brainyron@xxxxxxxxx>
>> Date: 19. huhtikuuta 2010 22.06.07 UTC+3.00
>> To: Sanna Edelman <direct@xxxxxxxxxxxx>
>> Subject: Re: [Exponent-cms] Fwd: Warning after installation, dev "1"
>> 
>> Example:
>> 
>> php_value session.save_path /home/tietotil1/tmp/
>> 
>> Also, you should not have the session save path be under your webroot as this could be a security vulnerability.
>> 
>> Ron Miller
>> 
>> 
>> On Apr 19, 2010, at 11:28 AM, Sanna Edelman wrote:
>> 
>>> Hi Ron, 
>>> 
>>> I also tried that like this
>>> 
>>> <IfModule mod_php.c>
>>>       php_value session.save_path /home/tietotil1/public_html/fi/tmp
>>> </IfModule>
>>> 
>>> and the warning I get in Exp is like this then:
>>> 
>>> Warning: session_start() [function.session-start]: open(/home/tietotil1/public_html/fi/tmp /sess_12bf6ac9254da68f74909ebeb36bf0b0, O_RDWR) failed: No such file or directory (2) in /home/tietotil1/public_html/fi/subsystems/sessions.php on line 61
>>> 
>>> cutting from above the url, there is a SPACE after "tmp" for some reason:
>>> /home/tietotil1/public_html/fi/tmp /sess_12bf6ac9254da68f74909ebeb36bf0b0
>>> 
>>> It could be the SPACE as an issue but from where it comes... there is no space in the .htaccess path
>>> 
>>> /Sanna
>>> 
>>> On 19.4.2010, at 21.24, Ron Miller wrote:
>>> 
>>>> Sanna,
>>>> 
>>>> You will need to have a full filesystem path in this value, not just "tmp".  For example:  /home/youruser/tmp (assuming that directory exists).
>>>> 
>>>> Ron Miller
>>>> 
>>>> On Apr 19, 2010, at 11:18 AM, Sanna Edelman wrote:
>>>> 
>>>>> Hi Ron,
>>>>> 
>>>>> and thanks. Yes, I get and if I change the session.save_path value, I will get an answer there is no such folder, no matter what I write as path.
>>>>> 
>>>>> Among other I made a .htaccess inside (tried also outside Exp folder) with this and other possible paths as well... this would use the tmp folder inside Exp...
>>>>> 
>>>>> <IfModule mod_php.c>
>>>>>       php_value session.save_path tmp
>>>>> </IfModule>
>>>>> 
>>>>> Running out of ideas and the server folks are quite useless in this to help. They only said I can set up my own path with the php_value.
>>>>> 
>>>>> /Sanna
>>>>> 
>>>>> On 19.4.2010, at 16.11, Ron Miller wrote:
>>>>> 
>>>>>> Hello Sanna,
>>>>>> 
>>>>>> Are you still getting the "permission denied" errors?  You won't be able to log in at all until you can write the session tmp files.  Your web host will need to either allow all users write privileges to that directory, or change teh session temp directory to something you can write to.
>>>>>> 
>>>>>> Ron Miller
>>>>>> 
>>>>>> On Apr 19, 2010, at 5:59 AM, Sanna Edelman wrote:
>>>>>> 
>>>>>>> Hi,
>>>>>>> 
>>>>>>> what should be the php settings for 
>>>>>>> session.use_trans_sid ?
>>>>>>> Here is "0" for that.
>>>>>>> 
>>>>>>> Still can't get the admin login working.
>>>>>>> 
>>>>>>> /Sanna
>>>>>>> 
>>>>>>> Begin forwarded message:
>>>>>>> 
>>>>>>>> From: Sanna Edelman <direct@xxxxxxxxxxxx>
>>>>>>>> Date: 15. huhtikuuta 2010 9.52.03 UTC+3.00
>>>>>>>> To: exponent-cms@xxxxxxxxxxxxxxxxxxx
>>>>>>>> Subject: Warning after installation, dev "1"
>>>>>>>> disposition-notification-to: management@xxxxxxxxxxxx
>>>>>>>> 
>>>>>>>> Hi,
>>>>>>>> 
>>>>>>>> now I get similar issue with another server when trying to log in after installation, with Exponent 0.97:
>>>>>>>> 
>>>>>>>> Warning: session_start() [function.session-start]: open(/var/lib/php/session/sess_12bf6ac9254da68f74909ebeb36bf0b0, O_RDWR) failed: Permission denied (13) in /home/customer/public_html/fi/subsystems/sessions.php on line 61
>>>>>>>> 
>>>>>>>> If I write a wrong password, it does recognise that it is wrong. With the right password comes the warning and it doesn't get logged in.
>>>>>>>> 
>>>>>>>> I assume this is something to do with the server set up since there has been already several corrections made with these folks not following what we asked as requirements.
>>>>>>>> 
>>>>>>>> This happens both with "mysql" and "mysqli" as DB_Engine.
>>>>>>>> 
>>>>>>>> PHP Version 5.2.10
>>>>>>>> Mysql Client API version 5.0.27 
>>>>>>>> 
>>>>>>>> /Sanna
>>>>>>>> 
>>>>>>>> On 13.4.2010, at 23.11, Phillip Ball wrote:
>>>>>>>> 
>>>>>>>>> Sanna,
>>>>>>>>> 
>>>>>>>>> This is exp2 I take it, seeing that the error is in expRecord.php.
>>>>>>>>> 
>>>>>>>>> My guess is that you're using the regular mysql subsystem and not mysqli. Try switching. The mysql code needs to be brought up to the mysqli. I am pretty sure this bug is logged in Launchpad, but not quite sure...
>>>>>>>>> 
>>>>>>>>> Are you using the downloadable preview or a pull from the bzr repo on Launchpad?
>>>>>>>>> 
>>>>>>>>> Phillip
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> On Apr 13, 2010, at 1:10 PM, Sanna Edelman wrote:
>>>>>>>>> 
>>>>>>>>>> Hi all!
>>>>>>>>>> 
>>>>>>>>>> I have suddenly encountered an issue of fatal error in our test server space in a shared server.
>>>>>>>>>> Installations have been plain sailing before and also the install process went fine now too but after that it doesn't render the page totally when trying to access the coolwater theme with the created passwords.
>>>>>>>>>> 
>>>>>>>>>> It comes this fatal error:
>>>>>>>>>> 
>>>>>>>>>> Fatal error: Call to undefined method mysql_database::selectArray() in/home/cutsomer/public_html/cms2/framework/core/datatypes/expRecord.php on line61
>>>>>>>>>> 
>>>>>>>>>> MySQL version	5.0.90-community
>>>>>>>>>> Apache version	2.2.11
>>>>>>>>>> PHP version	5.2.9
>>>>>>>>>> 
>>>>>>>>>> I do not have info, atleast yet, if the mySQL version would have changed. PHP is the same than last time installing and successfully using one Exp site on this same server.
>>>>>>>>>> 
>>>>>>>>>> Anyone else have seen similar issues?
>>>>>>>>>> 
>>>>>>>>>> BR, 
>>>>>>>>>> 
>>>>>>>>>> Sanna
>>>>>>>>>> 
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Mailing list: https://launchpad.net/~exponent-cms
>>>>>>>>>> Post to     : exponent-cms@xxxxxxxxxxxxxxxxxxx
>>>>>>>>>> Unsubscribe : https://launchpad.net/~exponent-cms
>>>>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>>>> 
>>>>>>>>> _______________________________________________
>>>>>>>>> Mailing list: https://launchpad.net/~exponent-cms
>>>>>>>>> Post to     : exponent-cms@xxxxxxxxxxxxxxxxxxx
>>>>>>>>> Unsubscribe : https://launchpad.net/~exponent-cms
>>>>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> _______________________________________________
>>>>>>> Mailing list: https://launchpad.net/~exponent-cms
>>>>>>> Post to     : exponent-cms@xxxxxxxxxxxxxxxxxxx
>>>>>>> Unsubscribe : https://launchpad.net/~exponent-cms
>>>>>>> More help   : https://help.launchpad.net/ListHelp
> 
> 
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~exponent-cms
> Post to     : exponent-cms@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~exponent-cms
> More help   : https://help.launchpad.net/ListHelp





References