LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 01:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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



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

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

All times are GMT -5. The time now is 09:25 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
Open Source Consulting | Domain Registration