Sirte blocke after change PHP mod

Discussion in 'General' started by betafer, Nov 10, 2017.

  1. betafer

    betafer Member

    Hello,
    we have changed php in our website form fast-cgi to PHP-FPM
    now the site is complitely offline
    i have try to restart apache and i have this error:

    Nov 10 10:29:05 srv apache2[4963]: AH00526: Syntax error on line 72 of /etc/apache2/sites-enabled/100-betafer.it.vhost:
    Nov 10 10:29:05 srv apache2[4963]: FastCgiExternalServer: redefinition of previously defined class "/var/www/clients/client1/web1/cgi-bin/php5-fcgi-*-80-betafer.it"
    Nov 10 10:29:05 srv apache2[4963]: Action 'configtest' failed.
    Nov 10 10:29:05 srv apache2[4963]: The Apache error log may have more information.
    Nov 10 10:29:05 srv systemd[1]: apache2.service: control process exited, code=exited status=1
    Nov 10 10:29:05 srv systemd[1]: Failed to start LSB: Apache2 web server.
    -- Subject: Unit apache2.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit apache2.service has failed.
    --
    -- The result is failed.
    Nov 10 10:29:05 srv systemd[1]: Unit apache2.service entered failed state.

    how can i restore ti fastcgi ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Just a guess, did you use letsencrypt on the shell to create a cert for that site? Do you have any files with '-le' in the filename in /etc/apache2/sites-enabled/ folder?
     
  3. betafer

    betafer Member

    Yes, we use let's encryprt
    no file with -le in /etc/apache2/sites-enabled/
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That#s fine, as long as you use it from within ISPConfig and not wit the apache module on the shell.

    Check if you have a copy of the /etc/apache2/sites-enabled/100-betafer.it.vhost file in the /etc/apache2/sites-enabled/ flder, if yes, remove that copy. There must be a duplicate file somewhere for that site.

    If you can't find that duplicate file, then delete the file /etc/apache2/sites-enabled/100-betafer.it.vhost, restart apache, login to ispconfig and enable the other php mode again.
     
  5. betafer

    betafer Member

    Thanks, You're great!
     

Share This Page