The first thing is that Apache and PHP are not officially supported on Windows 64 bit systems at the moment. If you try installing apache with the win32 binaries the service will mysteriously shut down at random or even worse not even start complaining about red herrings such as permissions. PHP win32 will complain about errors such as random missing files such as m\xf3dulo.
You need to make sure that you download 64bit install files and more than likely you will have to do a manual install using third party compilations. The Windows x86 and 32bit packages will not work although they will let you install them. You only find the errors later when you start to try run something.
Step 1
Download all the install packages
PHP 64bit Windows here
http://www.anindya.com/php-5-3-8-x64-64-bit-for-windows/
Apache 64bit Windows
http://www.blackdot.be/?inc=apache/binaries
MySql 64bit Windows
http://dev.mysql.com/downloads/mysql/
Step 2
I also find myself having to create my own service for Apache using:
sc create ApacheService binPath= "C:\Apache\bin\httpd.exe -k runservice" DisplayName= "Apache Server"
sc description ApacheService "Apache service installed manually"
Step 3
Editing the Apache Config File adding, also set all the normal apache settings such as ServerName etc.
LoadModule php5_module "c:/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php5"
Make sure all the paths exists and make changes to setting paths where necessary.
1 comment:
This help me a lot.
But I have a problem I cannot connect to mysql. It say "Call to undefined function mysql_connect()". I try searching internet. Someone say that have to copy libmysql.dll and php_mysql.dll from c:\PHP to C:\Windows\System32. But I cannot find libmysql.dll in c:\php. I see only php_mysql.dll there. I have copied it to C:\Windows\System32. The same error still occur.
Do you have some suggestion ?
Post a Comment