Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i want to change the session.save_path in the php.ini with augeas



target value


augeas returns quite interesting results

not working command (save is failing)

set /files/etc/php5/apache2/php.ini/Session/session.save_path '"3;/tmp"'
set /files/etc/php5/apache2/php.ini/Session/session.save_path '"3\;/tmp"'
set /files/etc/php5/apache2/php.ini/Session/session.save_path \"3;/tmp\"

partly working commands (save works but not the desired result)

set /files/etc/php5/apache2/php.ini/Session/session.save_path '"/tmp/test"'

is there a way to force augeas to just set the value to the given string and don't try to spit them up

edit: bug report link:

share|improve this question
up vote 0 down vote accepted

The php.aug lens (based on inifile.aug) does not allow semi-colons in value fields, because they conflict with end-of-line comments, which can use semi-colons, too:

let to_comment_re = /[^;# \t\n][^;#\n]*[^;# \t\n]|[^;# \t\n]/

If these values should be accepted, please open a bug report for it.

share|improve this answer
then it is a bug. php needs the semicolon for the session.save_path. see… session.save_path = "N;MODE;/path" – c33s Dec 20 '11 at 20:30
Have you reported it? – ℝaphink Jan 21 '12 at 10:54
yes: – c33s Jan 25 '12 at 18:28
Sorry for the delay. The bug was fixed. – ℝaphink Feb 9 '12 at 9:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.