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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-10-2005, 07:56 PM
|
#1
|
Member
Registered: Nov 2004
Distribution: Shrike
Posts: 55
Rep:
|
Configuring PHP with Apache.
Hi i have installeed php5 with apache2 but when i try to run the test page, it simply shows up as an html page, with all the php code, just showing as code, any idea how to fix this.
Thank you
|
|
|
07-10-2005, 08:00 PM
|
#2
|
Member
Registered: Mar 2005
Location: Chicago
Distribution: Gentoo AMD64
Posts: 365
Rep:
|
Make sure the second line here in your /etc/apache/mod_php.conf file is uncommented:
# Load the PHP module:
LoadModule php5_module libexec/apache/libphp5.so
|
|
|
07-10-2005, 08:53 PM
|
#3
|
Member
Registered: Nov 2004
Distribution: Shrike
Posts: 55
Original Poster
Rep:
|
I have
LoadModule php5_module modules/libphp5.so
but this does not work, i have also tried your way and that doesn't work either.
Plz help.
|
|
|
07-10-2005, 09:01 PM
|
#4
|
Member
Registered: Nov 2004
Distribution: Shrike
Posts: 55
Original Poster
Rep:
|
I dont have a mod_php.conf in my usr/local/apache2 folder
Last edited by LinuxStart; 07-10-2005 at 09:42 PM.
|
|
|
07-10-2005, 10:53 PM
|
#5
|
Member
Registered: Mar 2005
Location: Chicago
Distribution: Gentoo AMD64
Posts: 365
Rep:
|
Try typing "locate mod_php.conf", the file should be in the /etc/httpd/conf directory. That is where all the configuration files are, if you problem isn't in that file, it could be with httpd.conf in the same directory.
|
|
|
07-11-2005, 04:36 AM
|
#6
|
Senior Member
Registered: Oct 2004
Posts: 1,272
Rep: 
|
aswell as the loadmodule line you need
Code:
AddType application/x-httpd-php .php
both in your httpd.conf file, you don't need a mod_php.conf file
Last edited by phil.d.g; 07-11-2005 at 04:38 AM.
|
|
|
07-11-2005, 09:15 AM
|
#7
|
Member
Registered: Nov 2004
Distribution: Shrike
Posts: 55
Original Poster
Rep:
|
i added both lines, but it still doesnt work, im putting the test info php page
in /var/www/html/
|
|
|
All times are GMT -5. The time now is 04:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|