Having problem with Apache and PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • joe

    #1

    Having problem with Apache and PHP

    Hi,

    I am new to both Apache and PHP. I have installed Apache 2.0.59 and PHP

    5.1.6 on WinXP Home. I can run test.php page from default DocumentRoot
    "C:/Program Files/Apache Group/Apache2/htdocs" but I have a
    subdirectory "C:/Program Files/Apache Group/Apache2/htdocs/sub1" from
    which I cannot run my test.php page.

    Can someone give me an idea as what is wrong here and how I can fix it
    so that I can run PHP pages from any subdirectory of C:/Program
    Files/Apache Group/Apache2/htdocs.

    Thanks for your time,

    Joe

  • Ron Barnett

    #2
    Re: Having problem with Apache and PHP

    "joe" <green2004@cana da.comwrote in message
    news:1158856497 .371264.35540@i 42g2000cwa.goog legroups.com...
    Hi,
    >
    I am new to both Apache and PHP. I have installed Apache 2.0.59 and PHP
    >
    5.1.6 on WinXP Home. I can run test.php page from default DocumentRoot
    "C:/Program Files/Apache Group/Apache2/htdocs" but I have a
    subdirectory "C:/Program Files/Apache Group/Apache2/htdocs/sub1" from
    which I cannot run my test.php page.
    >
    Can someone give me an idea as what is wrong here and how I can fix it
    so that I can run PHP pages from any subdirectory of C:/Program
    Files/Apache Group/Apache2/htdocs.
    >
    Thanks for your time,
    >
    Joe
    Hi Joe,

    Can you serve an HTML page from the subfolder?

    if the root of your server is //myServer (equating to 'C:/Program
    Files/Apache Group/Apache2/htdocs')
    you should put //myServer/sub1 into your browser address bar and this will
    then call whatever is your defined default page , or add a specific page
    name //myServer/sub1/mytest.php

    You should also check that the document type settings in Apache that invoke
    the PHP extensions may have to be enabled for additional directories - look
    in the apache config file for php.

    HTH

    Ron


    Comment

    • otrWalter@gmail.com

      #3
      Re: Having problem with Apache and PHP


      Ron Barnett wrote:
      "joe" <green2004@cana da.comwrote in message
      news:1158856497 .371264.35540@i 42g2000cwa.goog legroups.com...
      Hi,

      I am new to both Apache and PHP. I have installed Apache 2.0.59 and PHP
      5.1.6 on WinXP Home. I can run test.php page from default DocumentRoot
      "C:/Program Files/Apache Group/Apache2/htdocs" but I have a
      subdirectory "C:/Program Files/Apache Group/Apache2/htdocs/sub1" from
      which I cannot run my test.php page.
      If you want a solid install of Apache with PHP and various other linix
      type tools, read...



      It gives you detailed instructions on how to install these tools (in
      about 15 mnutes) and how to make sure it all works properly.

      One of the best things about this method of installation is that it
      takes only a few minutes to back it up to CD and then even less time to
      restore the setup if you need to!

      Give it a try

      Walter

      Comment

      Working...