Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all, Just installed Apache & Php5, Have all my php scripts in /var/www directory, and then went to my apache webserver to open script phpinfo.php, but I just get ...
  1. #1
    fvs
    fvs is offline
    Linux Newbie
    Join Date
    May 2005
    Location
    Scranton, Pa
    Posts
    166

    PHP don't open in Apache?

    Hi all,
    Just installed Apache & Php5, Have all my php scripts in /var/www directory, and then went to my apache webserver to open script phpinfo.php, but I just get an error 404 message.
    I can see apache page open with localhost/ It opens, yet can't open localhost/phpinfo.php or any html script either. here is my /var/www directory,


    [root@localhost www]# ls
    cgi-bin hello hello.php~ icons phpinfo.php test.php
    error hello.php html new.html phpinfo.php~

    [root@localhost www]# php -v
    PHP 5.2.1 (cli) (built: Mar 29 2007 07:39:31)
    Copyright (c) 1997-2007 The PHP Group
    Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

    What do I try? Thanks

  2. #2
    Just Joined!
    Join Date
    May 2006
    Posts
    9
    Have you put the module in the apache/module folder and included it in the apache config.

    Also, is your document root in your apache config set to /var/www too?

    HTH

  3. #3
    fvs
    fvs is offline
    Linux Newbie
    Join Date
    May 2005
    Location
    Scranton, Pa
    Posts
    166
    Not sure about that?

  4. #4
    fvs
    fvs is offline
    Linux Newbie
    Join Date
    May 2005
    Location
    Scranton, Pa
    Posts
    166

    Resolved!

    It was that my root directory is /var/www/html,
    Thanks jiminald, That did it, Just an over sight.

  5. #5
    Just Joined!
    Join Date
    May 2006
    Posts
    9
    Thats ok!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...