LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 05-07-2009, 09:15 AM   #1
ct_hamster
Member
 
Registered: Apr 2009
Posts: 47

Rep: Reputation: 15
php not displaying


Hello,

I am having a problem with PHP files. I have installed the files for running PHP but when I create a sample file:

--------------------------

<html>
<body>
<?php
echo "Hello World";
?>
</body>
</html>

--------------------------

The webpage shows up blank and the source shows the same thing displayed above.

i followed the instructions on how to setup PHP from:

http://www.flmnh.ufl.edu/linux/install_apache.htm

is there something i am missing that needs to be setup?

Computer OS is Fedora 10
 
Old 05-07-2009, 09:48 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware, Ubuntu
Posts: 9,982

Rep: Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329Reputation: 2329
Where did you put the php file? What is the Document Root entry in your httpd.conf file? I think it should be /var/www/html in Fedora but I don't use Fedora. Do you have 'mod-php enabled in httpd.conf? Also check to see if you have: Directory Index: index.php and index.shtml. Add'.httpd-php .php to Add Type Application if not there.

In your php.ini file you need the correct doc_root entry, /var/www/html?
 
Old 05-28-2009, 12:28 PM   #3
esoukenka
LQ Newbie
 
Registered: Feb 2009
Posts: 19

Rep: Reputation: 2
tips

In those setup instructions you were told to run phpinfo did this show anything?

Is the html showing up in the source code?

Check the php logs usually in /var/logs
 
  


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
Help with displaying an image in PHP pandersson61 Programming 3 07-31-2008 09:40 PM
php page displaying text that is supposed to be part of php code DragonM15 Programming 9 07-31-2008 04:58 PM
Webserver not displaying the new version of php??? Why? rajnair0278 Linux - Software 4 03-27-2006 07:08 AM
displaying variables in flash from php zowey Programming 0 10-04-2004 03:54 PM
php4 problem _ downloading index.php instead of displaying tharris Debian 2 10-24-2003 06:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:45 AM.

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
Open Source Consulting | Domain Registration