Results 1 to 4 of 4

Thread: howto parse php in .html files fcgi

  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default howto parse php in .html files fcgi

    Just as the title states, we moved php5 to fcgi-suexe and now we need to parse some php thats in html fils. How should we go about this?

    Also, where are all the settings for fcgi? Shouldnt there be something like this someone for the settings?
    Code:
    <IfModule mod_fastcgi.c>
    FastCgiIpcDir /usr/local/www/fcgi_ipc/tmp
    AddHandler fastcgi-script .fcgi
    FastCgiSuexec /usr/local/sbin/suexec
    FastCgiConfig -singleThreshold 100 -killInterval 300 -autoUpdate -idle-timeout 240 -pass-header HTTP_AUTHORIZATION
    </IfModule>
    <Location /php-fastcgi/>
    Options ExecCGI        
    SetHandler fastcgi-script
    </Location>
    Thanks
    Last edited by mtech-hosting; 09-15-2007 at 03:25 PM.

  2. #2
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default

    Anyone? I cant find any configurable options anywhere

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Nov 2003
    Location
    moscow
    Posts
    295

    Default

    If you use Apache 2.xxx and php 5.xxx try set in user .htaccess fille RemoveType directive. Like this one:

    RemoveType .php .php3 .php4 .phtml .asp .htm .html
    AddType x-httpd-php5 .php .php3 .php4 .phtml .asp .htm .html
    AddHandler x-httpd-php5 .php .php3 .php4 .phtml .asp .htm .html

    It should be help with interpreting .html extension as php
    https://robobill.net
    US dedicated, Europe and Asia and Russia dedicated server. Shared, Reseller, VPS hosting in US and Europe.
    We are RESELLER of dedicated servers since 2002.

  4. #4
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default

    Thank you for the info but i dont think that would would help since the php is using a wrapper. I managed to solve the issue by using
    Code:
    # Fastcgi configuration for PHP5
    LoadModule fcgid_module modules/mod_fcgid.so
    MaxRequestsPerProcess 500
    AddHandler fcgid-script .php5 .php .php3 .php2 .phtml .html 
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml
    FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .html
    I just added another wrapper for .html to the AddHandler and a FCGIWrapper for html. I dont know if this will enable it html parsing for the entire server, but its working now though it may not be the correct way to do it.

Similar Threads

  1. Individual php.ini files for PHP FCGI and PHP CGI
    By Miraenda in forum cPanel & WHM Discussions
    Replies: 10
    Last Post: 05-19-2013, 01:46 AM
  2. SuPHP Question - making .html files behave as .php files
    By Doug E in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 09-02-2010, 09:47 AM
  3. Cannot Parse php within .html files!
    By smartads in forum cPanel & WHM Discussions
    Replies: 9
    Last Post: 03-19-2009, 08:24 PM
  4. Problem getting .html/.shtml to parse PHP
    By Dweezel in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 03-04-2008, 05:05 PM
  5. How do I make .htm files parse as php
    By denisdekat09 in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-11-2008, 10:40 AM