473,387 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Installing PHP

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
Jul 17 '05 #1
2 2214
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" <bm********@mcfarland-CPA.com> wrote in message
news:Pn72d.58230$nk.19580@okepread05...
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

Jul 17 '05 #2
"Bill McFarland" <bm********@mcfarland-CPA.com> wrote in message news:<Pn72d.58230$nk.19580@okepread05>...
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.


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
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jean-Christian Imbeault | last post by:
I have a user account on a RH Linux machine but no root access. I succesfully installed apache 1.3 under my /home/ account but can't get PHP to install properly. I have done the following...
1
by: SAP BASIS Consultant | last post by:
Hello, I am installing SAP R/3 on Win2000/SQL Server. There is a CD with the SQL Server RDBMS, as well as another one with SP 3A (Both are from SAP). According to the SAP installation manual,...
0
by: Chris Halcrow | last post by:
Hi I've spent ALL DAY trying to re-install SQL Server 2000 on Windows XP. I continually get the error 'cannot configure server' just at the end of the installation. I've tried the following: ...
5
by: Gerald Hernandez | last post by:
One of my development PC's died, and I need to have legacy VS and VS.Net installed at the same time. On the now dead PC, I had VS6 installed prior to installing VS.Net. This worked just fine. On...
0
by: Steve | last post by:
I'm posting this message here, so that someone googling here will be able to find it. I was having problems installing cx_Oracle on Solaris. The build would fail with a message: > ld: fatal:...
3
by: jaggi | last post by:
Hi all, I downloaded DB2 enterprise edition from partnerworld on ibm.com and unzipped and untarred it and copied it to CD and tried installing on AIX using SMIT. I am getting errors while...
3
by: mariantrygg | last post by:
Hi I have an app that uses the a2K run-time. I have just discovered that installing this app breaks an access2003 installation causing the user to have to repair the installation using the...
13
by: bjhartin | last post by:
All, I was working at a client's site when I installed Visual Basic 6 on a machine at their request. Existing applications on this machine had specified version 4.0 of the Jet OLEDB provider in...
7
by: Adam | last post by:
Im trying to add an httphandler for all *.sgf file extensions. I have developed the handler, 1. installed it into the gac 2. added it to the machine.config: <httpHandlers> <add verb="*"...
11
by: tshad | last post by:
I have a small Windows Service program that just has a timer on it and it built fine. I try to install it using InstallUtil and I get the following message: ...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.