LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-29-2005, 04:34 PM   #1
GTbikr84
LQ Newbie
 
Registered: Sep 2002
Distribution: Vector Linux 4.3
Posts: 7

Rep: Reputation: 0
apache question


I was wondering if it is possible to set up apache so that when i enter the document root into a browser it processes my PHP as if i had entered the server IP.

Example:
If I enter /usr/local/apache2/htdocs/page.php it displays the HTML but not anything generated by PHP.
If I enter 127.0.0.1/page.php it will display the PHP.

Is it possible to get the first example to work the same as the second.
 
Old 04-29-2005, 04:45 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Thats not possible, php pages have to be processed on the web server first before being shown on the web browser unlike plain html files.
 
  


Reply



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
Apache Question rshooper Linux - Software 1 09-21-2004 09:29 PM
Apache question RandyAdams Linux - Software 1 04-07-2004 04:02 PM
apache question plisken Linux - Software 3 03-09-2004 10:26 AM
another apache question needforspeed Linux - Software 2 09-26-2003 09:24 PM
Apache 2.0 question deepsix Linux - Software 10 08-29-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:10 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
Open Source Consulting | Domain Registration