I follow this portuguese article to configure Apache and PHP:
How to install and configure a development environment in PHP - part 2 .
I have already configured the php.ini and httpd.conf files . In addition, php5apache2_4.dll is located in the correct directory, but when the server restarts, it displays the following error:
httpd.exe: syntax error on line 531 of file D: /Apache24/conf/httpd.conf: invalid path LoadModule \ xe2 \ x80 \ xaa "D: /php-5.6.13/php5apache2_4.dll"
httpd.conf:
LoadModule php5_module "D:/php-5.6.13/php5apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "D:/php-5.6.13/"
EDIT
I changed the Httpd.conf file .
LoadModule php5_module "../php-5.6.13/php5apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "../php-5.6.13/"
And now a new error returns to me:
httpd.exe: 531 D: /Apache24/conf/httpd.conf: .. /php-5.6.13/php5apache2_4.dll :% 1 n\xe3o\xe9 um aplicativo Win32 v\xe1lido.
: Win32.
:
php -version
PHP 5.6.13 (cli) (built: Sep 3 2015 15:14:40)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
httpd -version
Server version: Apache/2.4.16 (Win64)
Apache Lounge VC14 Server built: Jul 22 2015 13:24:19