LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Server setup problem... (https://www.linuxquestions.org/questions/linux-software-2/apache-server-setup-problem-446170/)

crillegs 05-18-2006 04:04 PM

Apache Server setup problem...
 
Hi LinuxQuestions.org


I've decided to set up an Apache Server and install PHP 5 into that, running Fedora Core 4. My problem is that (and Im a real noob) I can't find a proper tutorial that actually makes PHP 5 works with the APache server. My Apache server is running, and I can see my HTML code, but not my PHP.

Can you find some nice tutorial or give me a simple description on how to make Apache "aware" of that PHP 5 is installed

Best Regards

Christian Sorensen

reddazz 05-18-2006 04:20 PM

How did you install these packages. If you compiled from source, take a look at the docs at php.net for how to configure apache to work with php5.

markw8500 05-18-2006 09:52 PM

Did you double check your code... Because when I started to use php, I found that the reason why I couldnt see any of my php files was because of stupid mistakes in my code...
Try this code and save it as phptest.php

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
echo "Hello World";
?>
</body>
</html>

If this code works, then everything should be running ok with your server...

crillegs 05-19-2006 07:23 AM

Double checking
 
I thought of the same thing at first, but I've triple checked it, and it works on one of my friends PHP servers, so I can't be my code that is wrong

markw8500 05-22-2006 11:00 AM

Did you install it yourself or was php already installed...

You can also check out:
http://www.redhat.com/docs/manuals/d...rog/c7614.html

stephenb 05-23-2006 01:57 PM

are you installing php5?


All times are GMT -5. The time now is 02:14 PM.