Connecting Tech Pros Worldwide Forums | Help | Site Map

Installing PHP

Bill McFarland
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi folks.

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.

Regards,

Bill

doc_root = "c:\Program Files\Apache Group\Apache\htdocs"
extension_dir = "C:\PHP\ext"
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_tidy.dll

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.

Versions are:
apache_2.0.50-win32-x86-no_ssl.msi
mysql-4.0.21-win
php-5.0.1-Win32.zip
PHP is installed as an apache module



Bill McFarland
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Installing PHP


I didn't get any responses. In the meantime, I found this lead,
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.

Regards,

Bill
"Bill McFarland" <bmcfarland@mcfarland-CPA.com> wrote in message
news:Pn72d.58230$nk.19580@okepread05...[color=blue]
> Hi folks.
>
> I'm installing PHP 5 with Apache 2 as a module (also with MySQL embedded[/color]
in[color=blue]
> 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[/color]
directory,[color=blue]
> 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[/color]
ideas?[color=blue]
> Here are what I believe to be the pertinent parts of the php.ini file and[/color]
I[color=blue]
> think there are no problems with the httpd config for Apache2 since it[/color]
will[color=blue]
> start (without the php.ini file in the WINDOWS directory) and PHP is
> functional with its defaults.
>
> Regards,
>
> Bill
>
> doc_root = "c:\Program Files\Apache Group\Apache\htdocs"
> extension_dir = "C:\PHP\ext"
> extension=php_gd2.dll
> extension=php_mysql.dll
> extension=php_tidy.dll
>
> 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.
>
> Versions are:
> apache_2.0.50-win32-x86-no_ssl.msi
> mysql-4.0.21-win
> php-5.0.1-Win32.zip
> PHP is installed as an apache module
>
>[/color]


Aquila Deus
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Installing PHP


"Bill McFarland" <bmcfarland@mcfarland-CPA.com> wrote in message news:<Pn72d.58230$nk.19580@okepread05>...[color=blue]
> Hi folks.
>
> 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.[/color]

Because those extensions require extra dlls, which are usually
included in php's directory (but php can't find them automatically
anyway :)

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_bz2.dll
php_cpdf.dll
php_curl.dll
php_dba.dll
php_dbase.dll
php_dbx.dll
php_dio.dll
php_exif.dll
php_fdf.dll
php_filepro.dll
php_gd2.dll
php_gettext.dll
php_ifx.dll
php_imap.dll
php_interbase.dll
php_ldap.dll
php_mbstring.dll
php_mcrypt.dll
php_mhash.dll
php_mime_magic.dll
php_ming.dll
php_mssql.dll
php_msql.dll
php_mysql.dll (You must use it with the libmysql.dll that comes with
php)
php_mysqli.dll
php_oci8.dll
php_openssl.dll
php_oracle.dll
php_pgsql.dll
php_shmop.dll
php_snmp.dll
php_soap.dll
php_sockets.dll
php_sybase_ct.dll
php_tidy.dll
php_xmlrpc.dll
php_xsl.dll


To track dlls loaded when program runs, use
http://www.sysinternals.com/ntw2k/source/filemon.shtml
Closed Thread