ISPconfig3 fcgi an apache2-mpm-worker

Discussion in 'Installation/Configuration' started by tom, Apr 14, 2010.

  1. tom

    tom Member

    In falcosThe perfect-server howto it is told to install not the apache2-mpm-worker but the standard apache2-mpm-prefork modul.

    I'm not shure but the apache2-mpm-worker mode should give the best performace using fcgi.

    So if the ISPconfig admin is only handling with fcgi for php he should install apache2-mpm-worker.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    If you dont install mod_php, then you can use mpm-worder as well.
  3. tom

    tom Member

    Hm, I just tried it but after installing the apache worker modul the php_admin_value, used by ISPConfig to configure the vhost, does'nt work anymore
    Any work arounds for that php_admin_value to hold the vhost config of ISPConfig?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    php_admin_value is a function of mod_php, it never works on any cgi or fastcgi vhosts.
  5. cantoute

    cantoute New Member

    is where you can control the php settings of your virutal host

    I have not tested myself what vars you can change but I would assume that there are no limits in here
    would make it possible to point to a different php.ini :)

    by the way, ispconfig set this that i would comment out
    # export PHP_FCGI_CHILDREN

    this was perhaps good with mod_fastcgi but is realy bad with mod_fcgid that can not make any useful use of this and that actualy leaves you with some php zombies that pile up with time

    consider changing the lines in ispconfig default for future vhosts
    ISPconfig > System > Edit Server

    find the line fastcgi_children and set it to 1


    Hope this can help you
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    @cantoute. You seem to use a old ispconfig version, the current ISPConfig versions do not set PHP_FCGI_CHILDREN anymore. I recommend thyt you update your server.
  7. tom

    tom Member

    If I install the apache worker module mod_php will be deinstalled from the server.

    Everything seems to be ok but the ISPConfig webinterface leading to squirrelmail show an internal server error without mod_php.

    I don't unterstand why.
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the exact error message.
  9. tom

    tom Member

    sorry, here it is
    Last edited: May 3, 2010
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Looks as if you tried to access webmail and not ispconfig. The error occurs because the squirrelmail install is not within the apache docroot. When you use fcgi with suexec, you can not use the squirrelmail package from the linux distribution anymore as it is in the wrong location. I recommend that you create a new website in ispconfig e.g. and then install a webmail application of your choice within this website.
  11. tom

    tom Member

    The same happend with phpmyadmin,if I try to reach it from the ISPConfig panel.
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    The reason is the same then with webmail and you can use the same solution that I proposed for webmail for phpmyadmin too. I have no idea why the linux distributions compile a different web root into the apache package then tehy use for their webbased applications, does not make much sense, but we cant change it so we have to live with it and work around it by installing the nescessary applications within the apache docroot (a subfolder of /var/www) where ispconfig also stores its website for exact this reason.
  13. tom

    tom Member

    Thats realy not nice with the diffrent web roots...

    What do you think of putting that to mod_fcgid
    as shown here
  14. tom

    tom Member

    Do you have an install instruction to install webmail in an sussex and fastcgi environment? I tried cp /usr/share/squirrelmail/ to the webroot with www-data ore user as owner but there is no access.
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Copying the files from the debian install will not work as the debian setup uses also files in other directories (like /etc) which are not in the docroot too. I installed it on my server with these steps:

    1) Create a nwe website.
    2) Go to the website directory with ssh, then download the squirrelmail tar.gz file with wget.
    3) Unpack the tar.gz file and chown the files to the website user and group.
    4) Then follow the installation instructions from the squirrelmail project to configure squirrelmail.

Share This Page