I installed Apache2.2.17 after which installed PHP5.3.5 and Apache will begin however it willn't read the PHP. For example the code below won't show me the phpInfo() file?
<html> <head> <title>Hello in PHP</title> </head> <body> <h1>Hello in PHP</h1> <? print "Hello, world!"; phpInfo(); ?> </body> </html>
I've added the next lines of code to httpd.conf file and installed php like a module. I made use of the VC6 x86 thread safe microsoft installer
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL PHPIniDir "C:/Program Files/PHP/" #ScriptAlias /php/ "C:/Program Files/PHP/" LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" #AddModule mod_php5.c AddType application/x-httpd-php .php #END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
Any comments is needed I've been trying for 2 days to get this work.
Thanks ahead of time.
I personally use Apache 2.2.17 &lifier Php 5.3.4 and also have the following lines at the end of my httpd.conf:
LoadModule php5_module "C:/apache/php-5.3.4/php5apache2_2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/apache/php-5.3.4"
Note: it is possible to php.ini in PHPiniDir? IT is not there automatically.
<?php phpinfo(); ?>
Above configuration works fine!