Current time: 11-26-2024, 06:20 AM Hello There, Guest! (LoginRegister)


Post Reply 
problem parsing html as php with .htaccess
Author Message
jdubs11 Offline


Posts: 4
Joined: Jan 2010
Reputation: 0
Post: #6
RE: problem parsing html as php with .htaccess
(01-21-2010 02:36 AM)kilburn Wrote:  Under fcgid
You're out of luck, as the default configuration doesn't allow you to do this (at least I've been unable to). Now, I enabled this possibility by following these steps:

1. Replace the "<IfModule mod_fcgid.c>....</IfModule>" block from the files /etc/ispcp/apache2/parts/{als,dmn,sub}_php2_entry.tpl by the following one:
Code:
<IfModule mod_fcgid.c>
        Alias /fcgi/ {STARTER_DIR}/{DMN_NAME}/
        <Directory "{STARTER_DIR}/{DMN_NAME}/">
                AllowOverride None
                SetHandler fcgid-script
                Options +ExecCGI
        </Directory>
        AddHandler php{PHP_VERSION}-script .php .php{PHP_VERSION}
        Action php{PHP_VERSION}-script /fcgi/php{PHP_VERSION}-fcgi-starter
        AddType application/x-httpd-php .php
    </IfModule>

Ok, it appears I have been setup w/ fcgi. To confirm what you're saying, the block in the xyx_php2_entry.tpl files looks like this currently
Code:
<IfModule mod_fcgid.c>
    Include {MODS_DIR}/fcgid_ispcp.conf
        <Directory {WWW_DIR}/{DMN_NAME}/htdocs>
            FCGIWrapper {STARTER_DIR}/{DMN_NAME}/php{PHP_VERSION}-fcgi-starter .php
            Options +ExecCGI
        </Directory>
        <Directory "{STARTER_DIR}/{DMN_NAME}">
            AllowOverride None
            Options +ExecCGI MultiViews -Indexes
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>

All of that should be replaced w/ what you indicated above?
(This post was last modified: 01-21-2010 03:05 AM by jdubs11.)
01-21-2010 03:04 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: problem parsing html as php with .htaccess - jdubs11 - 01-21-2010 03:04 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)