Configuring apache 2.0.64 and PHP 5.2.17

Hello, please help with the setup of Apache 2.0.64 и PHP 5.2.17.Here's how I set it up:

htaccess:

Options Indexes FollowSymLinksDirectoryIndex index.php

httpd.conf:

LoadModule php5_module "C:/php5/php5apache2.dll"  - когда подключаю не пашет Апач, когда                                                    AddType application/x-httpd-php .php

I turn it off - it works.
Waiting for an answer, thank you very much.

Author: Kantemir, 2013-01-24

1 answers

I recommend, at least occasionally, to read the documentation: how to fasten 5 PHP to the second Apache in intall.txt it is written in detail.

I give a synopsis:

  • Forget about htaccess and write DirectoryIndex in httpd. conf (in the "Main server config" part)

<IfModule dir_module>

DirectoryIndex index.html index.php

</IfModule>

  • Write in full all required directives for PHP

PHPIniDir "C:/php5/"

LoadModule php5_module "C:/php5/php5apache2.dll"

AddType application/x-httpd-php phtml php

 1
Author: Барсук Ленивый, 2013-02-07 10:06:46