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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-17-2005, 01:09 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2005
Posts: 2
Rep:
|
Apache and PHP5
Here's the skinny:
I have just upgraded my Fedora Core3 box to Fedora Core 4 (I wanted php5, and being a kinda newbie and after having a lot of problems trying to install it, I just decided to upgrade fedora since it had the new version pre-installed). The upgrade went smoothly, but php5 does not seem to be working. I know that Apache is up and running AND that it says the php5 module is loaded. I found this out by trying to add the line
LoadModule php5_module /usr/lib/httpd/modules/libphp5.so
to the httpd.conf and upon doing so, got a warning saying the php5 module was already loaded. Yet, when I load a page with php content (LogIn.php for example), it dumps the code to the browser instead of executing it.
I can run php from the command line and get correct ouput, for example ?>php ./LogIn.php
What am I doing wrong, I am guessing it is a problem with my apache configuration
Info:
Server version: Apache/2.0.54
PHP 5.0.4 (cli) (built: May 9 2005 11:21:11)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
|
|
|
|
06-17-2005, 02:09 PM
|
#2
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Check that the Directory Index section in your httpd.conf has index.php as one of the listed indexes. If not add it to the list.
|
|
|
|
06-17-2005, 03:20 PM
|
#3
|
|
LQ Newbie
Registered: Jun 2005
Posts: 2
Original Poster
Rep:
|
I actually just found the source of the problem. When I upgraded to Core 4, it generated a new configuration file for apache (httpd.conf.rpm...something). I am not sure if it was Fedora or if it was Apache that generated this file, but It was this new config file that apache needed to work correctly. I guess it doesn't replace httpd.conf so as not to hose your old config settings. Anywho, I renamed httpd.conf.rpm... to httpd.conf and things started working again.
Thanks for your input, checking the webroot was a good idea that hadn't thought of ^_^
|
|
|
|
06-17-2005, 03:43 PM
|
#4
|
|
Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Thats the way rpm is deigned, it does not overwrite most config files by default. I should have thought of that since you said you did an upgrade.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:07 AM.
|
|
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
|
|