LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-19-2005, 03:20 AM   #1
backpacker
Member
 
Registered: Jun 2005
Distribution: Fedora 11
Posts: 68

Rep: Reputation: 15
Test php code on Apache


If I edit the hello.php file as the following
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo'<p>Hello World</p>';?>
</body>
</html>
and I obtain the complete same text like as above when I test it on Apache.Do I get correct result?
 
Old 09-19-2005, 03:38 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
No, you are supposed to see the text "Hello, World".
 
Old 09-19-2005, 06:53 AM   #3
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
Re: Test php code on Apache

hi there,
Quote:
Originally posted by backpacker
If I edit the hello.php file as the following
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo'<p>Hello World</p>';?>
</body>
</html>
and I obtain the complete same text like as above when I test it on Apache.Do I get correct result?
hi there,
just adding to reddazz answer..
this sounds like the php module is not loaded correctly..
check you apache config file for something like...
Code:
LoadModule php4_module  somewhere/lib/apache...
regards,
slackie1000
 
Old 12-17-2005, 04:14 AM   #4
hadiseh
Member
 
Registered: Dec 2005
Posts: 38

Rep: Reputation: 15
hi
at first u should test ur apache.and if u use MySQL u should be sure that it's running.if every thing be ok u should add some lines into ur config file(something like slackie1000 wrote)it depends on ur apache and php version and ur parameters.
good luck
 
  


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
about test.php dummyagain Linux - General 3 01-28-2010 12:58 AM
php test? skate Linux - Software 5 06-01-2005 10:50 AM
Server load code Apache+PHP mindfrost82 Linux - Software 1 01-03-2005 10:43 AM
Set up Apache to read php IN html code? WorldBuilder Linux - Networking 10 01-27-2004 12:16 PM
How do I compile a code snippet. to test my box?? _Mhz Linux - Newbie 4 07-10-2002 11:03 AM

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

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