473,566 Members | 3,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\ht docs"
extension_dir = "C:\PHP\ext "
extension=php_g d2.dll
extension=php_m ysql.dll
extension=php_t idy.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 2225
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********@mcf arland-CPA.com> wrote in message
news:Pn72d.5823 0$nk.19580@okep read05...
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\ht docs"
extension_dir = "C:\PHP\ext "
extension=php_g d2.dll
extension=php_m ysql.dll
extension=php_t idy.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********@mcf arland-CPA.com> wrote in message news:<Pn72d.582 30$nk.19580@oke pread05>...
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\b in\, 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.d ll
php_ldap.dll
php_mbstring.dl l
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.d ll
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
4910
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 steps: #1 compiled and installed apache using --prefix=/home/imbeauje/apache. Tested that it works.
1
2397
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, after installing those I have to install 'QMF' for SQL Server. It indicates to check Microsoft's documentation on installing QMF on SQL Server. I...
0
2798
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: - Removing SQL server from 'Program Files' folder following an unsuccessful attempt to re-install, and entirely removing the registry entry...
5
2713
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 my working PC, I already have VS.Net installed, but not VS6. My question, will installing the older VS6 with VS.Net already installed give me...
0
2622
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: file /apps/oracle/prod/9.2/lib/libclntsh.so: wrong ELF class: ELFCLASS64 I found the solution on Grig Gheorghiu's blog. Grig had similar...
3
4096
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 installing DB2. they seems like related to java or dependent on java. Is there anyone who has faced some problem installing DB2? Do i have to install Java...
3
1610
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 original installation CD. I would prefer not to be seen to be 'breaking' customer's computers, (thanks Microsoft!!!) Does anyone know how to avoid this...
13
8347
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 a data source string in their config files. After installing VB 6, they stopped working, producing the error "3220: The supplied provider is...
7
2907
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="*" path="*.sgf" type="CustomExtensionHandler, Extenders.CustomExtensionHandler, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d831d925597c1031"...
11
5693
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: System.ComponentModel.Win32Exception: The account name is invalid or does not exist, or the password is invalid for the account name specified I am in the same folder my program is...
0
7673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8109
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7645
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6263
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5485
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1202
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.