Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-06-2008, 01:53 PM   #1
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?????

Old 03-06-2008, 02:26 PM   #2
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, 07:14 PM   #3
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/"

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

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


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

All times are GMT -5. The time now is 04:29 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