session_save_path possible bug

  • Hi! I have a domain 'mydomain' which had subdomain 'mail'. Once removed the subdomain it seems that the 'mydomain' session save path has been overwritten by the removed subdomain. In fact, if I run a simple php script like the following


    Code
    1. if (!is_writable(session_save_path())) { echo 'Session path "'.session_save_path().'" is not writable for PHP!'; }


    located under 'mydomain', I get


    Code
    1. Session path "/var/www/virtual/mydomain/mail/phptmp" is not writable for PHP!


    Actually mail directory doesn't exists anymore because of subdomain deletion! How to re-assign proper phptmp location for 'mydomain'?

  • Probably this file is involved


    Code
    1. /etc/php5/fpm/pool.d/mydomain.com.conf


    because it contains the wrong session.save_path value


    Code
    1. php_admin_value[session.save_path] = /var/www/virtual/mydomain.com/mail/phptmp