Discussion:
[PHP-INSTALL] PHP install with Apache
Roy Lam
2009-12-09 10:24:47 UTC
Permalink
I have a problem on installing PHP 5.3.1 with Apache Server 2.2.14. When I
adding the command "PHPIniDir" into httpd.conf, I cannot start the Apache
Server anymore. By my observation, It should have some problems when i add
an extension into the PHP module. I would like to ask how can i fixed it?

#httpd.conf

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#LoadFile "C:/Program Files/PHP/ext/php_mysql.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

#php.ini

extension_dir="C:\Program Files\PHP\ext"

extension=php_mysql.dll
extension=php_sqlite3.dll
[PHP_BZ2]
extension=php_bz2.dll
[PHP_CURL]
extension=php_curl.dll
[PHP_FILEINFO]
extension=php_fileinfo.dll
[PHP_GD2]
extension=php_gd2.dll
[PHP_GETTEXT]
extension=php_gettext.dll
[PHP_IMAP]
extension=php_imap.dll
[PHP_INTL]
extension=php_intl.dll
[PHP_LDAP]
extension=php_ldap.dll
[PHP_MBSTRING]
extension=php_mbstring.dll
[PHP_MSSQL]
extension=php_mssql.dll
[PHP_MYSQL]
extension=php_mysql.dll
[PHP_MYSQLI]
extension=php_mysqli.dll
[PHP_OCI8]
extension=php_oci8.dll
[PHP_OCI8_11G]
extension=php_oci8_11g.dll
[PHP_OPENSSL]
extension=php_openssl.dll
[PHP_PDO_MSSQL]
extension=php_pdo_mssql.dll
[PHP_PDO_MYSQL]
extension=php_pdo_mysql.dll
[PHP_PDO_OCI]
extension=php_pdo_oci.dll
[PHP_PDO_ODBC]
extension=php_pdo_odbc.dll
[PHP_PDO_PGSQL]
extension=php_pdo_pgsql.dll
[PHP_PDO_SQLITE]
extension=php_pdo_sqlite.dll
[PHP_PGSQL]
extension=php_pgsql.dll
[PHP_SHMOP]
extension=php_shmop.dll
[PHP_SOAP]
extension=php_soap.dll
[PHP_SOCKETS]
extension=php_sockets.dll
[PHP_SQLITE]
extension=php_sqlite.dll
[PHP_SQLITE3]
extension=php_sqlite3.dll
[PHP_SYBASE_CT]
extension=php_sybase_ct.dll
[PHP_TIDY]
extension=php_tidy.dll
[PHP_XMLRPC]
extension=php_xmlrpc.dll
[PHP_XSL]
extension=php_xsl.dll
[PHP_EXIF]
extension=php_exif.dll
Hendrik Schmieder
2009-12-09 10:31:19 UTC
Permalink
Post by Roy Lam
I have a problem on installing PHP 5.3.1 with Apache Server 2.2.14. When I
adding the command "PHPIniDir" into httpd.conf, I cannot start the Apache
Server anymore. By my observation, It should have some problems when i add
an extension into the PHP module. I would like to ask how can i fixed it?
#httpd.conf
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#LoadFile "C:/Program Files/PHP/ext/php_mysql.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadModule php5_module ...
must precede
PHPIniDir

Hendrik
Hendrik Schmieder
2009-12-09 10:44:22 UTC
Permalink
Hotmail schrieb:

moved top posting to bottom !
--------------------------------------------------
Sent: Wednesday, December 09, 2009 6:27 PM
Subject: Re: [PHP-INSTALL] PHP install with Apache
Post by Hendrik Schmieder
Post by Roy Lam
I have a problem on installing PHP 5.3.1 with Apache Server 2.2.14. When
I
adding the command "PHPIniDir" into httpd.conf, I cannot start the Apache
Server anymore. By my observation, It should have some problems when i
add
an extension into the PHP module. I would like to ask how can i fixed it?
#httpd.conf
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/Program Files/PHP/"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#LoadFile "C:/Program Files/PHP/ext/php_mysql.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadModule php5_module ...
must precede
PHPIniDir
Hendrik
It still have the same problem. I tried whole day with different edition.
When i use installer to install php without any extension, it can work.
However, if there is a
[php_mysql]
extension=php_mysql.dll
the apache cannot start the server. It can work if i didn't type in
"PHPIniDir ...."
by the way, I also cannot start the 'php.exe -v" when i typed it into
cmd.exe
the mysql support libraries can not be found.
you can use dependency walker to see what they are.

Hendrik
Keith Roberts
2009-12-09 15:28:09 UTC
Permalink
Subject: [PHP-INSTALL] PHP install with Apache
I have a problem on installing PHP 5.3.1 with Apache Server 2.2.14. When I
adding the command "PHPIniDir" into httpd.conf, I cannot start the Apache
Server anymore. By my observation, It should have some problems when i add
an extension into the PHP module. I would like to ask how can i fixed it?
#httpd.conf
I have noticed this too. It appears that when you try to
load the php module into apache, the php 5.3.x module
crashes apache :(

Try running apache without the php module. It should start
OK then.

Kind Regards,

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net

All email addresses are challenge-response protected with
TMDA [http://tmda.net]

Where will you spend Eternity?
http://www.fellowshiptractleague.org/tract_pdf/english/130.pdf
-----------------------------------------------------------------
Loading...