Re: After editing only the httpd.conf PHP 5.2.12 works in Apache2.2 on WindowsXP Professional 2002 SP 3, Can this be?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Varuna Seneviratna wrote:
I Edited only the httpd.conf file and the changes I made were
Added: LoadModule php5_module "C:/PHP/php-5.2.12/php5apache2_2.dll"


Yes, this is completely do-able. If php cannot find a php.ini file, it uses the defaults it was compiled with.

Changed DocumentRoot and Directory  from htdocs to test: DocumentRoot
"C:/Program Files/Apache Software Foundation/Apache2.2/test" and <Directory
"C:/Program Files/Apache Software Foundation/Apache2.2/test">

Added the following
AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
    AddType image/x-icon .ico
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps

There is no php.ini file in PHP installation directory or WINDOWS or
anywhere, there is only the original php.ini-dist and -recommended

But apart from the above PHP works fine.


And also when the URL http://localhost/test is entered the output message is

Not Found

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


if your DocumentRoot is set to "C:/Program Files/Apache Software Foundation/Apache2.2/test", then all you need to do is access http://localhost/ and it will serve up the files from the "C:/Program Files/Apache Software Foundation/Apache2.2/test" directory.

But when a file name residing in the test directory is entered the expected
output is given.

Not sure what you mean by this.  Please provide an example.

Why is the set of files in the test directory not listed in the browser
output.


Because you are trying to look for a file or folder called test in the "C:/Program Files/Apache Software Foundation/Apache2.2/test" directory.

Jim
--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux