LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 08-15-2003, 06:15 AM   #1
muffamatician
LQ Newbie
 
Registered: Aug 2003
Location: London
Distribution: RH9
Posts: 4

Rep: Reputation: 0
Wink getting started with php


Hi again people,

I am trying to have a little mess about with php, maybe creating a website for my cricket club eventually.

I am having trouble setting things up...

I think i have apache installed and httpd seems to be running...

php is also installed i think...

i types the following into a file which i called phptest.php

<?php
print "Hello Web!";
?>

However when i navigate to this file using a web browser (mozilla) it simply displays the text file rather than showing Hello Web! on a blank page. What is going wrong??? I'm sure its just a stupid newbie error but help would be much appreciated.

Thanx Muffamatician
 
Old 08-15-2003, 02:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Have you installed php?
rpm -qa | grep php

If so then take a look at httpd.conf and uncomment the LoadModule and AddType lines relating to php.
 
  


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
Getting Started with Apache, PHP and MYSQL jammyjames Linux - Newbie 23 09-02-2005 11:58 AM
Getting Started with Apache, PHP and MYSQL jammyjames Linux - General 1 08-30-2005 11:14 AM
Getting Started with Apache, PHP and MYSQL jammyjames Linux - Software 1 08-30-2005 10:57 AM
php apache or php cgi - php learner rblampain Linux - Security 3 12-18-2004 12:10 AM
Getting Started burningtheory Linux - Distributions 2 09-07-2004 04:32 PM


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