ISPconfig vhosts apache mod and/or fcgi, php ...

Discussion in 'Feature Requests' started by hrvbid, Jun 7, 2008.

  1. hrvbid

    hrvbid New Member


    I'm not a very experienced user of ispconfig, but very happy with. (When experience grows, sure the happiness does also).

    Thinking about the apache modes, like apache/mod contra apache/fastcgi and with php, an option to control that mode during site generation/update would be very helpful. The suggestion is, to have a checkbox labeled "Fcgi" or a like in ISPconfig Manager that could be the switch to inject specific lines in the vhost control file. At the moment, I do that manually. An example vhost looks like:

    SuexecUserGroup web7_u2 web7
    ServerName pws150.local.vnet:80
    ServerAdmin webmasterATlocal.vnet
    DocumentRoot /var/www/web7/web
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.jsp Default.htm default.htm
    Alias /cgi-bin/ /var/www/web7/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    ErrorLog /var/www/web7/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
    SetOutputFilter PHP
    SetInputFilter PHP
    <Files *.php3>
    SetOutputFilter PHP
    SetInputFilter PHP
    <Files *.php4>
    SetOutputFilter PHP
    SetInputFilter PHP
    <Files *.php5>
    SetOutputFilter PHP
    SetInputFilter PHP
    php_admin_flag safe_mode Off
    # ===
    ScriptAlias /php-fastcgi/ /var/www/web7/cgi-bin/
    AddType application/x-httpd-fastphp .php
    Action application/x-httpd-fastphp /php-fastcgi/php5-fcgi
    # ===
    Alias /error/ "/var/www/web7/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web7/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web7/user/$1/web/$3

    The lines between the # === comments showing the additional controls. The place is essential.

    My question is, is there a way just implemented to have such result? BTW, the shown example is running successfully in a VMware machine, so - no worry about the concious domain name.

  2. falko

    falko Super Moderator ISPConfig Developer

    Currently ISPConfig does not support PHP through Fast-CGI...

Share This Page