logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Php fatal error in apache error logs
Author
Northtech



Joined: 20 Nov 2010
Posts: 9
Location: Russia

PostPosted: Wed 24 Nov '10 4:21    Post subject: Php fatal error in apache error logs Reply with quote

Win 7, Apache 2.2.17(http://www.apachelounge.com/download/binaries/httpd-2.2.17-win32-x86-ssl.zip), Php 5.3.4 vc9 ts, Mysql 5.1.53.

What is this error?

Quote:
Fatal error: Internal zval's can't be arrays, objects or resources in Unknown on line 0


php.ini
Code:

extension=php_bz2.dll
extension=php_curl.dll
;extension=php_enchant.dll
;extension=php_exif.dll
extension=php_fileinfo.dll
extension=php_gd2.dll
extension=php_gettext.dll
;extension=php_gmp.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_intl.dll
extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
extension=php_shmop.dll
;extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sqlite3.dll
;extension=php_sybase_ct.dll
extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll


httpd.conf
Code:

LoadFile "X:/usr/local/Php/php5ts.dll"
LoadFile "X:/usr/local/Mysql/bin/libmysql.dll"
LoadModule php5_module "X:/usr/local/Php/php5apache2_2.dll"

<IfModule php5_module>
  <FilesMatch "\.php$">
     SetHandler application/x-httpd-php
  </FilesMatch>
  <FilesMatch "\.phps$">
     SetHandler application/x-httpd-php-source
  </FilesMatch>
PHPINIDir "X:/usr/local/Php/"
</IfModule>

<IfModule env_module>
    SetEnv PHPRC "X:\\usr\\local\\Php"
    SetEnv MIBDIRS "X:/usr/local/Php/extras/mibs"
    SetEnv PHP_PEAR_SYSCONF_DIR "X:\\usr\\local\\Php"
    SetEnv PHP_PEAR_INSTALL_DIR "X:\\usr\\local\\Php\\PEAR"
    SetEnv MYSQL_HOME "X:\\usr\\local\\Mysql"
    SetEnv OPENSSL_CONF "X:/usr/local/Apache/conf/openssl.cnf"
    SetEnv SSLEAY_CONF "X:/usr/local/Apache/conf/openssl.cnf"
    SetEnv TMP "X:\\usr\\tmp"
</IfModule>


on test server only use phpmyadmin 3.3.8 - 4 & php info
this is apache/php errors or phpmyadmin, ect?
How fix it error?


Last edited by Northtech on Sun 12 Dec '10 18:57; edited 1 time in total
Back to top
boba



Joined: 07 Dec 2010
Posts: 1

PostPosted: Tue 07 Dec '10 21:33    Post subject: php_ldap faults apache httpd Reply with quote

Getting:
Faulting application httpd.exe, version 2.2.17.0, faulting module php5ts.dll, version 5.2.14.14, fault address 0x000f36fa.

Used httpd-2.2.17-win32-x86-no_ssl.msi and
php-5.2.14-Win32-VC6-x86.msi

php -m and php -i work correctly but Apache fails if module php_ldap is enabled within php.ini file, even though all depend dll's are in the system path.

Appears that Apache is not loading depend dll's in the right order all of the time.

To fix this, force Apache to load the dependend DLL's first, ie:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadFile "C:/PHP/libeay32.dll"
LoadFile "C:/PHP/ssleay32.dll"
PHPIniDir "C:/PHP/"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Now phpinfo() will appear correctly with Apache works again.

(This took a couple of days of various configuration changes to solve).
Back to top
Northtech



Joined: 20 Nov 2010
Posts: 9
Location: Russia

PostPosted: Sun 12 Dec '10 19:06    Post subject: Reply with quote

in exit server error still remains.
How fix it error?
Back to top


Reply to topic   Topic: Php fatal error in apache error logs View previous topic :: View next topic
Post new topic   Forum Index -> Other Software