PHP's Error_log use

Source: Internet
Author: User
Tags php error
Apache+php encountered Php5ts.dll error

The apache+php encountered a php5ts.dll error during the two days of installation. After a few days toss, finally find the reason.
First, the platform
Operating system: Windows 2003;
apache:2.2.17.0, use the Httpd-2.2.17-win32-x86-openssl-0.9.8o.msi installation package;
php:5.3.5.0, using the Apache module, use the Php-5.3.5-win32-vc6-x86.msi installation package.
Second, the installation process
Install Apache on the D drive, after installation Httpd.exe successfully started. Install PHP, select the Apache module mode, install on the D drive. After PHP is installed, open the Apache httpd.conf file at the end of the file to fix the configuration as:
Phpinidir "D:/program files/php/"
LoadModule php5_module "D:/program files/php/php5apache2_2.dll"
Third, error
An error occurred while starting the httpd. View the log. The Apache Error.log is recorded as:
[Warn] PID file D:/program files/apache software foundation/apache2.2/logs/httpd.pid overwritten--Unclean shutdown of PR Evious Apache run?
The Windows Event Viewer/application appears as:
Application Error in Event details: Wrong application Httpd.exe, version 2.2.17.0, error module Php5ts.dll, version t5.3.5.0, error address 0x000e890c.
Surfing the Internet, involving the processing of Php5ts.dll errors, a class is because PHP can only use its own version of the DLL, if the cause of the system path variable, causing other versions of the DLL to refer to, an error occurs. For such errors, or to delete other versions of the DLL, or to modify the system path variable, put PHP in front of, or put PHP dll into the system's System32 directory. However, my path is not a problem, the path variable in the PHP installation directory before System32, there is no other version of Php5ts.dll. Having tried multiple versions of the installation in the same way does not solve the problem.
Iv. Final Settlement
Finally, look again at the php.ini file and find a configuration:
Error_log= "C:\Windows\Temp\php-errors.log".
Then open the C:\Windows\Temp\php-errors.log:
[14-mar-2011 10:22:15] PHP warning:php startup:unable to load Dynamic Library ' D:\Program Files\php\ext\php_oci8.dll '-The specified module could not be found.
In Unknown on line 0
[14-mar-2011 10:22:15] PHP warning:php startup:unable to load Dynamic Library ' D:\Program Files\php\ext\php_oci8_11g.dll '-The specified module could not be found.
In Unknown on line 0
[14-mar-2011 10:22:15] PHP warning:php startup:unable to load Dynamic Library ' D:\Program Files\php\ext\php_pdo_oci.dll '-The specified module could not be found.
In Unknown on line 0
[14-mar-2011 10:22:15] PHP warning:php startup:unable to load Dynamic Library ' D:\Program Files\php\ext\php_sybase_ct.dll '-The specified module could not be found.
In Unknown on line 0
Next, go back to php.ini and comment out the above 4 modules:
[Php_oci8]
; Extension=php_oci8.dll
[php_oci8_11g]
; Extension=php_oci8_11g.dll
[Php_pdo_oci]
; Extension=php_pdo_oci.dll
[PHP_SYBASE_CT]
; Extension=php_sybase_ct.dll
Restart Apache, success.
V. Summary
When I installed PHP, I chose a full installation. It is estimated that there is a full installation and no associated DLL module installed, and the php.ini reference to these modules, which causes the PHP error to be referenced when Httpd.exe starts, and the error message is displayed as Php5ts.dll. Therefore, it is recommended to check the PHP error_log when encountering php5ts.dll errors.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.