1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Bug: Migrate site from 9.x to 10.x, subdomains can't use PHP session with FastCGI

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by bluik, Jul 31, 2011.

  1. bluik

    bluik Basic Pleskian

    14
    85%
    Joined:
    Jul 5, 2011
    Messages:
    40
    Likes Received:
    0
    I had a server running the latest 9.x series Plesk.
    I migrated a site with several (20) subdomains to latest Plesk 10.x with FastCGI turned on.

    All subdomains cannot use PHP sessions.
    It seems to be some kind of bug concerning only the migrated subdomains.
    If I create a simple test file (sess.php) /var/www/vhosts/example.com/httpdocs:
    And run it under the main domain (http://example.com/sess.php), it works - no errors at error_log.
    If I then move this same test file (sess.php) to one of the migrated subdomains, say /var/www/vhosts/example.com/subdomains/test/httpdocs and try to run it (http://test.example.com/sess.php) it does not work, unable to write to /var/lib/php/sessions. I even chmod 777 this directory for testing but it does not help.

    Errors:

    What to do? I have tons of sites I need to migrate to Plesk 10, and most of them are using Joomla. So it would be a great hassle to move them manually to different directories (need to reconfig Joomla a lot).


    EDIT:
    Seems the problem is missing custom php.ini. The main site in conf/<long random number string created by PMM>_httpd.include has the following:

    SetEnv PP_CUSTOM_PHP_INI /var/www/vhosts/tst.khmerdev.com/etc/php.ini

    <IfModule mod_fcgid.c>
    FcgidInitialEnv PP_CUSTOM_PHP_INI /var/www/vhosts/tst.khmerdev.com/etc/php.ini
    </IfModule>

    But any subdomain does not.
    This means subdomains created with Plesk (not migrated) have the same problem. I am cross-posting this to "Troubleshooting" forum also.
     
    Last edited: Jul 31, 2011
  2. bluik

    bluik Basic Pleskian

    14
    85%
    Joined:
    Jul 5, 2011
    Messages:
    40
    Likes Received:
    0
Loading...