Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th March 2013, 14:31
darkangel darkangel is offline
Member
 
Join Date: May 2011
Location: Cape Town, South Africa
Posts: 53
Thanks: 6
Thanked 2 Times in 2 Posts
Exclamation 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.
Reply With Quote
Sponsored Links
  #2  
Old 26th March 2013, 19:16
darkangel darkangel is offline
Member
 
Join Date: May 2011
Location: Cape Town, South Africa
Posts: 53
Thanks: 6
Thanked 2 Times in 2 Posts
Default

Please help.
Reply With Quote
  #3  
Old 28th March 2013, 11:38
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Question 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?
__________________
We are not equal
Reply With Quote
  #4  
Old 28th March 2013, 11:42
darkangel darkangel is offline
Member
 
Join Date: May 2011
Location: Cape Town, South Africa
Posts: 53
Thanks: 6
Thanked 2 Times in 2 Posts
Default

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
Reply With Quote
The Following User Says Thank You to darkangel For This Useful Post:
Eleven Cool (28th March 2013)
  #5  
Old 28th March 2013, 12:12
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Cool "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?
__________________
We are not equal
Reply With Quote
  #6  
Old 28th March 2013, 12:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Eleven Cool (28th March 2013)
  #7  
Old 28th March 2013, 12:34
darkangel darkangel is offline
Member
 
Join Date: May 2011
Location: Cape Town, South Africa
Posts: 53
Thanks: 6
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by Eleven Cool View Post
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.
Reply With Quote
  #8  
Old 28th March 2013, 12:34
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
Cool

Thanks Till, I will submit the feature request there.

Quote:
Originally Posted by till View Post
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).
__________________
We are not equal
Reply With Quote
  #9  
Old 28th March 2013, 12:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,006
Thanks: 826
Thanked 5,377 Times in 4,224 Posts
Default

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.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 28th March 2013, 14:14
Unfaiir Unfaiir is offline
HowtoForge Supporter
 
Join Date: Jul 2012
Location: Orange County, CA, USA
Posts: 43
Thanks: 14
Thanked 4 Times in 2 Posts
 
Cool

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
__________________
We are not equal
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig3 Debian Squeeze Crontab - Log petrichbg Installation/Configuration 5 22nd March 2011 12:25
Cannot login to phpmyadmin penkku HOWTO-Related Questions 1 24th February 2011 09:26
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 21:13
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 05:19


All times are GMT +2. The time now is 04:15.


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