LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   php configuration on Slackware 10 (http://www.linuxquestions.org/questions/programming-9/php-configuration-on-slackware-10-a-220605/)

reddazz 08-21-2004 02:18 PM

php configuration on Slackware 10
 
I'm trying to learn php and wrote the following php page,

<html>
<head>
<title>test page</title>
</head>
<body>
<?php
echo 'testing php';
?>
</body>
</html>

I discovered that php won't print anything to the browser and I believe it is a problem with the configuration on Slack because the same page works fine under fedora. Anyway help will be appreciated.

david_ross 08-21-2004 02:43 PM

If you view the source of the page having accessed the page through your web server does it still look the same as what you have posted above?

reddazz 08-21-2004 02:53 PM

Yeas, it does. Now, I know it's not supposed to do that, so how do I rectify this.

reddazz 08-21-2004 03:07 PM

Ok, sorted
 
I have finally got a solution. Apache wasn't configured to include mod_php.conf. After I uncommented the line relevant to mod_php.conf, it works like a charm.


All times are GMT -5. The time now is 11:39 AM.