Fedora Linux Support Community & Resources Center
  #1  
Old 1st February 2005, 03:01 AM
n4t3d Offline
Registered User
 
Join Date: Feb 2005
Posts: 1
Apache PHP problem

I'm having a little bit of trouble, here. I've installed Apache and PHP, as it comes in .rpm form from the Fedora Core 3 CDs. I activated httpd, checked a basic .html page (which came up fine), but when I tried to go to a PHP page...no dice. And the strange thing is, it didn't even show the text from the PHP data. A page that was written thus:

<?php
phpInfo();
?>

Came up completely blank, and the source of the page looked like this:

<html><head></head></html>

I tried the same page on my laptop, running Red Hat 9, and the page displayed fine. I've been looking around, and I can't find any other modifications I need to make before PHP'll work...can someone help me out here? I have the httpd.conf file on hand, if you need to see a section of it...

Last edited by n4t3d; 1st February 2005 at 03:10 AM.
Reply With Quote
  #2  
Old 1st February 2005, 03:20 AM
Void Main Offline
Registered User
 
Join Date: Jan 2005
Posts: 355
That means there was an error. Check your /var/log/httpd/error_log for messages. Also you can try running it at a shell prompt and see if it spits out any errors:

php tst.php
__________________
voidmain.is-a-geek.net
82.94 BogoMIPS, 125Mhz MIPS, 16MB RAM, 0GB HDD, Linux 2.4.20
$ echo '[q]sa[ln0=aln128%Pln128/snlbx]sb25384035327623601753454966742snlbxq'|dc
Reply With Quote
  #3  
Old 1st February 2005, 04:41 AM
mattmattic Offline
Registered User
 
Join Date: Jan 2005
Posts: 12
Definitely doesn't sound like PHP is initializing.

Check: /etc/httpd/modules

Be sure you have: libphp4.so

If you don't have it, try reinstalling PHP using Yum.
__________________
Regards,
Matt
Reply With Quote
  #4  
Old 1st February 2005, 06:16 AM
adam's Avatar
adam Offline
Registered User
 
Join Date: Nov 2004
Location: Gorzow Wlkp, Poland
Age: 30
Posts: 143
Also definetely you should check your rights to execute this file =)
__________________
Take care.

Linux User #374234
ACER TM 4060: Pentium M 760 2.0GHz, 15.4 WXGA wide, 100GB HDD, 1GB DDR2 DC, 802.11b/g wireless LAN :cool:
Reply With Quote
  #5  
Old 1st February 2005, 05:00 PM
james_in_denver Offline
Registered User
 
Join Date: Oct 2004
Posts: 1,227
in your "/etc/httpd/conf/httpd.conf" file do you have the following lines?
LoadModule php4_module modules/libphp4.so

AddHandler php-script php
AddType text/html php

???????????//

That's what "tells" apache to load the "php" module and which files to pass the "php" module for processing. Otherwise all that nifty embedded "php" code won't get executed.
__________________
Only dead fish go with the flow....

Hmmm, what did I miss?
Reply With Quote
  #6  
Old 25th November 2005, 02:28 PM
llbbl Offline
Registered User
 
Join Date: Nov 2005
Posts: 38
at the CLI just type
#php -v

It will print the version

I am thinking that it is either the httpd.conf file or you haven't installed the right packages. Oh sorry this thread is a lil old.. doh
Reply With Quote
Reply

Tags
apache, php, problem

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in apache again shreedhan Servers & Networking 3 31st July 2007 09:17 AM
Problem in apache+ssl sixth.neo Servers & Networking 5 5th December 2006 09:09 AM
problem with apache lin Servers & Networking 1 23rd May 2006 04:11 AM
Problem not sure if it is Apache or DNS! psycobass Servers & Networking 3 26th May 2005 10:49 PM
SSH/Apache Problem Jburrell Servers & Networking 2 22nd October 2004 01:48 AM


Current GMT-time: 23:40 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat