HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Unable to set session.save_path when using PHP-FPM (http://www.howtoforge.com/forums/showthread.php?t=61127)

darkangel 25th March 2013 15:31

Unable to set session.save_path when using PHP-FPM
 
Hi,

When using PHP-FPM, it does this:

...
php_admin_value[open_basedir] = none
php_admin_value[session.save_path] = /var/www/clients/client1/web3/tmp
php_admin_value[upload_tmp_dir] = /var/www/clients/client1/web3/tmp
...

Because of this, I can't set a different save path in my code. I tried setting it in custom PHP settings, but that doesn't seem to work either.

I think it's because php_admin_value cannot be overridden, but php_value can, so shouldn't ISPConfig be using php_value? (see here)

Thanks.

darkangel 26th March 2013 20:16

Please help.

Unfaiir 28th March 2013 12:38

Did you ever figure this out?
 
I am having the same exact issue. I need to change 'session.save_path' but I can't.

Is there any solution to this?

darkangel 28th March 2013 12:42

From Till ...

Quote:

Hi,

thats not a bug as we dont want this value to be changable by a customer. You can easily configure this in the php_fpm_pool.conf.master file in /usr/local/ispconfig/server/conf.

Best Regards

Till

Unfaiir 28th March 2013 13:12

"Almost"
 
Thank you very much for responding so quickly with that.

I changed all of the 'php_admin_value' directives to just 'php_value' in that file but I was still unable to change the 'session.save_path'.

A little more digging and I found that the 'php_admin_value' directives are ALSO in the vhost files for each site and must be overridden there too.

The only downside is that unless I modify the vhost template, then the next time I save this site the vhost file will be re-written and I'll have to make these changes again. That is a small price to pay, because without being able to override 'session.save_path' my entire site goes down.

Feature Request Please Falko?

till 28th March 2013 13:18

Please post feature requests in the bugtracker.

http://bugtracker.ispconfig.org

If it gets enough votes, we will consider to change that.

Btw. You can override vhost values in the apache directives field of the website.

darkangel 28th March 2013 13:34

Quote:

Originally Posted by Eleven Cool (Post 294873)
Thank you very much for responding so quickly with that.

I changed all of the 'php_admin_value' directives to just 'php_value' in that file but I was still unable to change the 'session.save_path'.

A little more digging and I found that the 'php_admin_value' directives are ALSO in the vhost files for each site and must be overridden there too.

The only downside is that unless I modify the vhost template, then the next time I save this site the vhost file will be re-written and I'll have to make these changes again. That is a small price to pay, because without being able to override 'session.save_path' my entire site goes down.

Feature Request Please Falko?

I don't see php_admin_values in the vhost template (vhost.conf.master), at least not for PHP-FPM ... where did you see this?

PS. If you post a feature request, let me know and I will vote on it.

Unfaiir 28th March 2013 13:34

Thanks Till, I will submit the feature request there.

Quote:

Originally Posted by till (Post 294874)
Btw. You can override vhost values in the apache directives field of the website.

This doesn't work for my particular case. I'm using a PHP framework which modifies 'session.save_path' at run time to store sessions in its own session folders (different folders depending on the user type).

till 28th March 2013 13:42

Quote:

This doesn't work for my particular case. I'm using a PHP framework which modifies 'session.save_path' at run time to store sessions in its own session folders (different folders depending on the user type).
Then you can e.g. remove the lines for the session save path from vhost template and php fpm pool template completely if you want to manage it on a per site basis. The templates exist so that a admin can taylor the system for its needs as we can not make all options available trough the interface as this would make the software unusable if we add a few ghundred additional fields with options in the site settings.

Unfaiir 28th March 2013 15:14

Till,

What I'm suggesting is not to add a lot more fields to the interface.

In fact, what I'm suggesting would only add a single field to each website, to choose a vhost template to use for that particular website.

Under the Sites section there would be a new Templates -> VHosts button on the sidebar at the bottom which would allow managing vhost templates.

I created a feature request for this with more details. Please check it out.

http://bugtracker.ispconfig.org/inde...s&task_id=2842


All times are GMT +2. The time now is 23:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.