LinuxQuestions.org
Help answer threads with 0 replies.
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 06-02-2009, 01:42 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
install problem


sorry to ask a question here

I have install a apache , php in my RH server , it seems everything go smoothly , then I started the apache server , it is OK to start , when I use phpinfo.php to test if the php is successfully run , but it pop the below error in my browser , can advise what is wrong in my system ? very thanks if you can help .


in my browser , i type
=======================
http://my_ip/phpinfo.php



pop the below error in my browser
===========================
<?
phpinfo();
?>
 
Old 06-02-2009, 02:02 PM   #2
tritonsmoon
LQ Newbie
 
Registered: May 2009
Distribution: SuSE 10.2
Posts: 11

Rep: Reputation: 0
When I test php I always put this in the body of the phpinfo.php file:

<?php
phpinfo();
?>

Tritonsmoon

Last edited by tritonsmoon; 06-02-2009 at 02:16 PM.
 
Old 06-02-2009, 02:06 PM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by tritonsmoon View Post
When I test php I always put this in the body of the phpinfo.php file:

<?php
phpinfo();
?>

Tritonsmoon
thx reply ,

Yes , I also put this to the body of phpinfo.php , the expected result should be the php , apache info , not the body of the file , can advise what is wrong in my system ? thx
 
Old 06-02-2009, 10:23 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,298

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
Did you set the Document Root in php.ini file? Where did you save the phpinfo.php file? Did you install the apache php module. I don't use Red Hat but have seen some pretty good tutorials for LAMP servers online with Red Hat.
 
Old 06-03-2009, 06:16 AM   #5
paul81
LQ Newbie
 
Registered: Feb 2008
Location: Rotterdam, Netherlands
Distribution: Fedora and Ubuntu
Posts: 14

Rep: Reputation: 1
Clearly, Apache doesn't know how to handle PHP files. That's why it's returning your PHP code in clear text.

Try installing the apache PHP modules. And see that they're properly being included in your apache configuration file.
 
  


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
Install problem escalated to graphics problem Fice Linux - Software 1 01-04-2008 01:07 AM
Slack 11 install problem (cd install asks for /dev/fd0) cygnus-x1 Slackware 1 10-16-2006 10:30 AM
Sound Card problem(every time i install linux i have diffirent hardware problem) jacka1l Linux - Newbie 7 08-11-2005 06:10 AM
Slack 10.1 Install Problem(During Package Install) terdbird Slackware - Installation 2 04-22-2005 02:18 PM
dhcp problem in Debian netinst install..Help !! install. copter Linux - Networking 11 06-30-2004 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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