Home  >  Article  >  Backend Development  >  What to do if php5ts.dll error occurs

What to do if php5ts.dll error occurs

hzc
hzcOriginal
2020-06-10 14:47:222458browse

What to do if php5ts.dll error occurs

What to do if there is a php5ts.dll error:

I encountered a php5ts.dll error when installing apache php in the past two days. After a few days of tossing, I finally found the reason.
1. Platform
Operating system: windows 2003;
Apache: 2.2.17.0, use httpd-2.2.17-win32-x86-openssl-0.9.8o.msi installation package;
PHP: 5.3.5.0, using the apache module method, using the php-5.3.5-Win32-VC6-x86.msi installation package.
2. Installation process
Install apache on the D drive. After installation, httpd.exe starts successfully. Install php, select the apache module method, and install it on the D drive. After PHP is installed, open the httpd.conf file of apache and correct the configuration at the end of the file to:
PHPIniDir “d:/program files/php/”
LoadModule php5_module “d:/program files/php/php5apache2_2.dll ”
3. Error
An error occurred when starting httpd. View the log. The error.log of apache is recorded as:
[warn] pid file D:/Program Files/Apache Software Foundation/Apache2.2/logs/httpd.pid overwritten – Unclean shutdown of previous Apache run?
Windows The event viewer/application displays as: Event details in
Application Error: Error application httpd.exe, version 2.2.17.0, error module php5ts.dll, version t5.3.5.0, error address 0x000e890c.
I checked online and found out about the handling of php5ts.dll errors. One is because PHP can only use its own version of the dll. If other versions of the dll are referenced first due to system path variables, an error will occur. . In response to such errors, either delete other versions of dll; or modify the system PATH variable to put PHP's dll in front; or put PHP's dll in the System32 directory of the system. However, there is no problem with my path. The PHP installation directory in the PATH variable is still before System32, and there is no other version of php5ts.dll. I tried multiple installation versions back and forth, but couldn't solve the problem.
4. Final solution
Finally check the php.ini file again and find a configuration:
error_log="C:WindowsTempphp-errors.log".
So open C:WindowsTempphp-errors.log:
[14-Mar-2011 10:22:15] PHP Warning: PHP Startup: Unable to load dynamic library 'D:Program FilesPHPextphp_oci8.dll' - cannot be found to the specified module.
in Unknown on line 0
[14-Mar-2011 10:22:15] PHP Warning: PHP Startup: Unable to load dynamic library ‘D:Program FilesPHPextphp_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 FilesPHPextphp_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 FilesPHPextphp_sybase_ct.dll’ - The specified module could not be found.
in Unknown on line 0
Next, go back to php.ini again and comment out the above four 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, successful.
5. Summary
When I installed PHP, I chose a full installation. It is estimated that the relevant dll modules were not installed even though the installation was complete, and these modules were referenced in php.ini. As a result, when httpd.exe started, an error occurred when php was referenced, and the error message was displayed as php5ts.dll. Therefore, it is recommended that when encountering a php5ts.dll error, you may wish to check the error_log of php.

Recommended tutorial: "php tutorial"

The above is the detailed content of What to do if php5ts.dll error occurs. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn