LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Test php code on Apache (https://www.linuxquestions.org/questions/linux-newbie-8/test-php-code-on-apache-364776/)

backpacker 09-19-2005 03:20 AM

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?

reddazz 09-19-2005 03:38 AM

No, you are supposed to see the text "Hello, World".

slackie1000 09-19-2005 06:53 AM

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

hadiseh 12-17-2005 04:14 AM

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


All times are GMT -5. The time now is 07:27 PM.