After editing only the httpd.conf PHP 5.2.12 works in Apache2.2 on

After editing only the httpd.conf PHP 5.2.12 works in Apache2.2 on

am 06.01.2010 07:51:34 von Varuna Seneviratna

--0016e64dcce2a3519b047c796274
Content-Type: text/plain; charset=ISO-8859-1

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"

Changed DocumentRoot and Directory from htdocs to test: DocumentRoot
"C:/Program Files/Apache Software Foundation/Apache2.2/test" and "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.
>
But when a file name residing in the test directory is entered the expected
output is given.
Why is the set of files in the test directory not listed in the browser
output.

--0016e64dcce2a3519b047c796274--

Re: After editing only the httpd.conf PHP 5.2.12 works in Apache2.2on WindowsXP Professional 2002 S

am 06.01.2010 07:59:27 von List Manager

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 > "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