LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 09-20-2004, 07:32 AM   #1
tej
Member
 
Registered: Aug 2004
Location: india
Posts: 32

Rep: Reputation: 15
Arrow apache setting for php


hello,

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, 07:42 AM   #2
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 31
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!
Boby
 
Old 09-20-2004, 08:17 AM   #3
tej
Member
 
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

-bye
 
  


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/Novell 8 06-27-2005 12:20 PM
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 05:05 AM
Setting up apache with php and mysql meander Linux - Networking 6 01-26-2005 05:10 AM
Help Setting Up PHP On Apache AFI_Flame Linux - Networking 3 06-28-2004 01:44 PM
Apache / PHP - OK, what setting am I missing? bkeating Linux - Software 1 12-10-2002 04:57 PM


All times are GMT -5. The time now is 07:29 PM.

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