Fedora Linux Support Community & Resources Center
  #1  
Old 21st September 2004, 10:54 AM
acrors Offline
Registered User
 
Join Date: Sep 2004
Posts: 10
php problem

I've have problem with fedora 2. It doesn't recognise php commands. After starting httpd, i run test.html file:

<html><head><title>My First PHP Script</title></head>
<body>
<h4>Example One</h4>
<p><?php echo "Hello World"; ?></p>
</body>
</html>

and test.php file:

<?php print("Hello World"); ?>

In both cases i don't get "Hello World" text.

Pls. show me how to fix this problem (let php running)

Thank you
Reply With Quote
  #2  
Old 21st September 2004, 01:05 PM
jeru Offline
Registered User
 
Join Date: May 2004
Location: Arizona
Posts: 119
Does

rpm -qa php

return anything? If not;

up2date php

(P.S. by default your first example will not work anyways, use .php extensions for php embedded pages)

Last edited by jeru; 21st September 2004 at 01:14 PM.
Reply With Quote
  #3  
Old 22nd September 2004, 05:04 AM
acrors Offline
Registered User
 
Join Date: Sep 2004
Posts: 10
it doesn't help me ....
Reply With Quote
  #4  
Old 27th September 2004, 01:40 AM
LLS
Guest
 
Posts: n/a
How are you trying to view these "hello world" scripts Jeru?
Reply With Quote
  #5  
Old 28th September 2004, 03:36 AM
lindamus Offline
Registered User
 
Join Date: Jul 2004
Location: Australia
Age: 39
Posts: 74
From what you have said, you need to install php.

best way to do that is to 'yum install php apache-php' there may be some optional extras/deps like php-mysql you would like to install as well.

After that, create a file:

in your /var/www/html/phptest.php

<?
phpinfo();
?>

and then in your browser have a look at it. Should have all the php info that apache is capable of using.

HTH
__________________
Lindamus

Last edited by lindamus; 28th September 2004 at 03:39 AM.
Reply With Quote
  #6  
Old 28th September 2004, 03:59 AM
superbnerd
Guest
 
Posts: n/a
you should really check this thread about a similar problem with html and php.
Reply With Quote
Reply

Tags
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


Current GMT-time: 18:00 (Wednesday, 22-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