php5-fpm never updates 'pm' in mysql table

Discussion in 'Developers' Forum' started by ispcomm, Dec 8, 2013.

  1. ispcomm

    ispcomm Member

    It is possible to create a site using the remoting api with an empty 'pm' value and no php5 service.

    when php5-fpm is enabled on such site (via gui) the value of 'pm' is not set.

    this causes an error in php5-fpm startup script (fails to load).

    if on the server php5-fpm is restart (stop+start) or the server is reboot, then all sites using php will be unavailable because php5-fpm fails to start.

    This is a "gui" problem (imho) as the empty 'pm' value is legit in the database and is not required for non-php site operation.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The gui sets this value when the site is created, even if no php is selected. So this value is never empty when you create a site in gui, so you should set this value too when you use the api to create a site. I will add a function that checks all nescessary values again when fpm is activated to fix sites that ahd been created or imported with wrong values. I've added that to the bugtracker.

Share This Page