Incorrect example for .htaccess "session.save_handler files" override

avolve - April 7, 2009 - 23:05
Project:Piwik - Web analytics
Version:6.x-1.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I installed piwik yesterday and set it up for one site. The Piwik install seems to be running fine (no data yet), though there is a 'service unavailable' error given in Safari's activity window and a broken image link.

From firebug, the source for the image is http://piwik.avolvedesigns.net/piwik.php?url=http%3A%2F%2Fcolin.salter.i...

The site is http://colin.salter.id.au

I created a .htaccess file based on the readme and it is in the directory piwik is installed in (note 2 under known issues).

I noted a similar past issue with a D5 version of this module, though it did not outline a fix. Anyone able to point out what I am missing/the source of the issue.

thx

#1

hass - April 7, 2009 - 23:42
Status:active» fixed

"503 Service Temporarily Unavailable" is a clear statement. Your server is broken.

Have you tried this in your php.ini?

[Session]
session.save_handler = files

Otherwise I have no idea... please report back if you have found a solution. I have send on of the maintainers of Piwik a mail about this session.save_handler = user issue, but have not yet opened a bug report in track.

#2

avolve - April 13, 2009 - 02:01

I appreciate your assistance.

I was under the impression that creating a custom .htaccess file for the Piwik directory would overcome the need to edit the php.ini file. Did i read the readme.txt incorrectly?

The site is hosted on dreamhost, and i want to avoid compiling php and potential issues with other sites on the server. Perhaps I am stuck unless/until there are changes in Piwik itself?

#3

hass - April 13, 2009 - 09:25

I wasn't able to test the directory based .htaccess myself... I need to test, but nevertheless this is more or less a piwik bug. Please subscribe to http://dev.piwik.org/trac/ticket/651

#4

hass - April 13, 2009 - 22:43

Aside - do you have mod_rewrite activated in your installation?

The example depends on mod_rewrite, but this makes no big sense to me... could be a nobrainer.

<IfModule mod_rewrite.c>
  RewriteEngine on
  php_value session.save_handler files
</IfModule>

Try a .htaccess file with only (untested):

php_value session.save_handler files

#5

hass - April 18, 2009 - 21:25

Please try the below .htaccess. For me it's working with Apache 2.2 and PHP 5.2. I have updated the readme.txt.

[.htaccess]

# PHP 4, Apache 1.
<IfModule mod_php4.c>
  php_value session.save_handler files
</IfModule>

# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
  php_value session.save_handler files
</IfModule>

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_value session.save_handler files
</IfModule>

#6

hass - April 18, 2009 - 21:26
Title:service unavailable/broken image in footer» Incorrect example for .htaccess "session.save_handler files" override

#7

avolve - April 19, 2009 - 06:22

I replaced the my htaccess file with one containing only the following:

# PHP 4, Apache 1.
<IfModule mod_php4.c>
  php_value session.save_handler files
</IfModule>

# PHP 4, Apache 2.
<IfModule sapi_apache2.c>
  php_value session.save_handler files
</IfModule>

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_value session.save_handler files
</IfModule>

This htaccess file is in the same directory as the Piwik install. Sadly, I am still noting the same problem.

I really appreciate your assistance on this. let me know if there is anything i can do to assist in locate possible sources.

#8

hass - April 19, 2009 - 07:32

No idea... I've successfully tested and running this configuration on my site. Take a look to your Apache error_log and you may see what's wrong. On my site I was also made to re-configure the session.path folder variable via the override... check your error_log.

#9

System Message - May 3, 2009 - 07:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.