Why is the modified document root is not taken by Apache2.2?

Why is the modified document root is not taken by Apache2.2?

am 15.11.2009 18:54:48 von varunawithapache

--0003255597fecf6bd204786c967b
Content-Type: text/plain; charset=ISO-8859-1

In file httpd.conf
I modified DocumentRoot "C:/Program Files/Apache Software
Foundation/Apache2.2/htdocs" , to be DocumentRoot "C:/Program Files/Apache
Software Foundation/Apache2.2/test"
Then Foundation/Apache2.2/htdocs"> to be Software Foundation/Apache2.2/test">
at the end of the above operation I created a directory "test" in the
Apache2.2 directory and put inside the file phptest.php which contained the
script .
>
> html>
>
> PHP
>
>
> > echo "It really works!"
> ?>
>
>
>
But the message "It really works" does not get displayed when typed the URL
http:/localhost/test/phptest.php, what is displayed is "
Not Found

The requested URL /test/phptest.php was not found on this server.
*The line LoadModule php5_module "c:/php/apache2_2.dll and the lines AddType
application/x-httpd-php .php, AddType application /x-httpd-php-source .phps
were also added*

*Regards Varuna*

--0003255597fecf6bd204786c967b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

In file httpd.conf
I modified Doc=
umentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdoc=
s" ,=A0 to be
Docum=
entRoot "C:/Program Files/Apache Software Foundation/Apache2.2/test&qu=
ot; );">

Then
, 0);"><Directory "C:/Program Files/Apache Software Foundation/Apac=
he2.2/htdocs">
to be =
<Directory "C:/Program Files/Apache Software Foundation/Apac=
he2.2/test">

at the end of the above operation I created a directory "test" in=
the Apache2.2 directory and put inside the file phptest.php which containe=
d the script .

); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class=3D"gmail_quote">
html>

<head>

  =A0 <title> PHP </title>

</head>

<body>

  =A0 <?php

    =A0 echo "It really works!"

  =A0 ?>

</body>

</html>


But the message "It really works" does not get displayed when typ=
ed the URL http:/localhost/test/phptest.php, what is displayed is " >

Not Found


The requested URL /test/phptest.php was not found on this server.

=
The line LoadModule php5_module "c:/php/apache2_2.dll and the lines Ad=
dType application/x-httpd-php .php, AddType application /x-httpd-php-source=
.phps were also added



);">Regards Varuna




--0003255597fecf6bd204786c967b--

Re: Why is the modified document root is not taken by

am 15.11.2009 20:18:52 von Eric Covener

On Sun, Nov 15, 2009 at 12:54 PM, varunawithapache
wrote:

> to be DocumentRoot "C:/Program Files/Apache

> http:/localhost/test/phptest.php, what is displayed is "

Why do you have /test/ in your URL if the documentroot already
contains the test subdirectory?

--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org