Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Installing PHP
- Bill McFarland
September 16, 2004, 1:02 am
rate this thread
I'm installing PHP 5 with Apache 2 as a module (also with MySQL embedded in
php as an extension along with gd and tiny) on a Win2003 server. When I
start Apache2 as a service without the php.ini in the C:\WINDOWS directory,
Apache starts. PHP also functions (my test.php file (<? phpinfo(); ?>)
produces the expected output), however, none of the three embedded modules
is active (which is to be expected). When I add the php.ini file to the
WINDOWS directory, however, Apache2 just hangs and won't start. Any ideas?
Here are what I believe to be the pertinent parts of the php.ini file and I
think there are no problems with the httpd config for Apache2 since it will
start (without the php.ini file in the WINDOWS directory) and PHP is
functional with its defaults.
doc_root = "c:\Program Files\Apache Group\Apache\htdocs"
extension_dir = "C:\PHP\ext"
MySQL has passed its tests but I've tried commenting it out in the PHP
config file and making sure that it isn't running and that has no effect.
PHP is installed as an apache module
Re: Installing PHP
http://www.aesthetic-theory.com/learn.php?server2 , which contained the
knowledge nuggets I was seeking. It's very different than anything else I
was able to find, but did work. Perhaps it will help someone else.
Re: Installing PHP
Because those extensions require extra dlls, which are usually
included in php's directory (but php can't find them automatically
The easist solution is to copy C:\Program Files\PHP\*.dll to
C:\Program Files\Apache Group\Apache2\bin\, but there are some
extensions which do need 3rd-party dlls.
Here is a list of php extensions that can load by defaut:
php_mysql.dll (You must use it with the libmysql.dll that comes with
To track dlls loaded when program runs, use