LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-06-2008, 12:53 PM   #1
rfw62
LQ Newbie
 
Registered: May 2005
Posts: 23

Rep: Reputation: 15
Unhappy Apache not serving PHP5 pages


Hey i just installed FreeBSD 7.0 RELEASE and PHP5
i followed all the documentation steps and it shows the test.php
(phpinfo()) file when i point to the server but when i click on the test.php file on my second machine it opens it up in dreamweaver??

I cant figure out why apache is not parsing the php file!!!

It think php is loaded correctly on my freebsd box and php5 - both where installed from the ports and i amended the httpd.conf file to access php files but still not working!!!

any ideas?????

Newbie
 
Old 03-06-2008, 01:26 PM   #2
Zeistler
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 108

Rep: Reputation: 15
If you read through the apache configuration file which is usually stored in /etc/httpd/httpd.conf you should come across this section:

# Uncomment the following line to enable PHP:
#
# Include /etc/httpd/mod_php.conf

Uncomment the last line and restart apache
 
Old 03-06-2008, 06:14 PM   #3
rfw62
LQ Newbie
 
Registered: May 2005
Posts: 23

Original Poster
Rep: Reputation: 15
htttpd.conf file doesnt have mod_php.conf

mod_php.conf not in the httpd.conf file..should i include that line?? It does have:
"LoadModule php5_module libexec/apache22/libphp5.so"


Is this enough to run php5 or do i need something more???
 
Old 03-06-2008, 07:55 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
You should also have something like these:
Code:
DirectoryIndex index.html index.html.var index.php
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
 
  


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
Web server not serving pages... grob115 Linux - General 19 05-09-2006 06:57 PM
Apache not serving pages bcf2 Linux - Software 1 11-22-2005 03:46 AM
Redhat 9, apache + frontpage not serving pages except admin page JRinOKC Linux - Newbie 5 01-12-2004 02:58 AM
Squid - Serving stale pages cli_man Linux - Software 0 12-08-2003 08:45 AM
serving web pages on another port iggymac Linux - Networking 3 03-21-2002 01:21 PM


All times are GMT -5. The time now is 12:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration