Current time: 05-06-2024, 02:40 PM Hello There, Guest! (LoginRegister)


Post Reply 
parsing html as php
Author Message
taluma Offline
Newbie
*

Posts: 8
Joined: Jul 2010
Reputation: 0
Post: #5
RE: parsing html as php
Hi
I am sorry for after question!
How to know if fastcgi or fcgid is used on my server,
Another staff has setup my server previous so I can't control
You are very kind
Thanks for this support
Oh, I think I have get OK
Thanks Kilburn
I has follow your help:
-----------
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>

2. Regenerate domain configurations and restart apache.

3. Insert the following in your .htaccess:
Code:
# Enable php for html-files
AddHandler php5-script .htm .html

Similarly, you can...
Code:
# Disable php in this folder and it's childs (unles re-enabled by another .htaccess)
RemoveHandler .php .php5
------------------------
(This post was last modified: 07-21-2010 05:07 PM by taluma.)
07-21-2010 04:37 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
parsing html as php - taluma - 07-20-2010, 01:56 PM
RE: parsing html as php - kilburn - 07-20-2010, 08:39 PM
RE: parsing html as php - taluma - 07-21-2010, 03:07 PM
RE: parsing html as php - kilburn - 07-21-2010, 04:09 PM
RE: parsing html as php - taluma - 07-21-2010 04:37 PM

Forum Jump:


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