Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-20-2004, 06:32 AM   #1
Registered: Aug 2004
Location: india
Posts: 32

Rep: Reputation: 15
Arrow apache setting for php


i have a software that generates html pages by default. i am adding few lines of php script to it. now as these file have .html extension php script can not be executed.
problem: - is there any setting in apache server that would enable me to consider .html files as .php files and execute

-any ideas are wellcome
Old 09-20-2004, 06:42 AM   #2
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 32
Yes there is a setting in your /path/to/apache/conf/httpd.conf:

AddType application/x-httpd-php .php .html

This will tell Apache to parse certain extensions as PHP. You could have any extensions parse as PHP by simply adding more, with each separated by a space.

Hope it helped!
Old 09-20-2004, 07:17 AM   #3
Registered: Aug 2004
Location: india
Posts: 32

Original Poster
Rep: Reputation: 15
that did the job

helo buddy

that did the job from me, thks very much for prompt reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up PHP with Apache D4ve G SUSE / openSUSE 8 06-27-2005 11:20 AM
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 04:05 AM
Setting up apache with php and mysql meander Linux - Networking 6 01-26-2005 04:10 AM
Help Setting Up PHP On Apache AFI_Flame Linux - Networking 3 06-28-2004 12:44 PM
Apache / PHP - OK, what setting am I missing? bkeating Linux - Software 1 12-10-2002 03:57 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration