LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache Setup (https://www.linuxquestions.org/questions/linux-newbie-8/apache-setup-679924/)

ifeatu 10-29-2008 11:28 PM

Apache Setup
 
This is my first time installing Apache and I have some basic questions...Apache is fully installed...I'm attempting to install gmail-lite on it as an experiment to see if its working...when I type my domain into my browser (on a different computer in my network) I get the message "It Works" which I'm assuming is a good sign...however the gmail lite directory (which I extracted into /var/www/ ) is showing that I need to "run" a .php file...how do I run a .php file and since I extracted the folder into the appropriate directory shouldn't the web interface automatically come up in lieu of "It Works"...please walk me through this one like a baby...thanks

j-ray 10-30-2008 03:31 AM

"It works" is the default message sent by apache when it is running It has nothing to do with programs running on it. You have to install the php-module for apache. I don't know fedora but for sure there will be an rpm for that purpose and an installation tool available, too. I dont know either whether /var/www is the document root of this apache. It may reside somewhere else.

onesixtyfourth 10-30-2008 03:31 AM

You need the php module installed, activated and set up. Which distro?

comprookie2000 10-30-2008 03:44 AM

What Distro, Fedora 9?
Save this as phpinfo.php and upload it to your webserver and open it with a browser.
Code:

<html>
<head>
        <title>PHP Test</title>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>
        <h1>PHP Test</h1>
        <p>
        <b>An Example of PHP in Action</b><br />
                <?php echo "The Current Date and Time is: <br>";
                        echo date("g:i A l, F j Y.");?>
        </p>

        <h2>PHP Information</h2>
        <p>
                <?php phpinfo(); ?>
        </p>
</body>
</html>

What happens?

ifeatu 10-30-2008 06:30 PM

Thanks
 
Thanks so much guys...it was in fact that I didn't have php installed

Thank you for all of your help...


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