Php+apache Extensions loading error Unable to log error message

Source: Internet
Author: User
Tags apache error log
I'm using apache2.2+php5.4, I'm writing a wrong extensions=xxx.dll in php.ini, and I don't see any messages about this wrong DLL in php.ini error_log. And Error.log under Apache's logs is also not looking at any of the DLL's information about this error.

Excuse me, what do I want to get information about the wrong DLL?
The reason I'm asking is because I'm loading an extra DLL, by looking at Phpinfo is not loaded successfully, but just don't know where the error message is.

Hope expert answers, thank you!


Reply to discussion (solution)

PHP-L syntax error checking for configuration files

or restart the Apache server, the Apache error log will have the PHP load module failed record.

PHP-L syntax error checking for configuration files

or restart the Apache server, the Apache error log will have the PHP load module failed record.
Hello, I said that, in the Apache error log cannot be viewed:
Can you tell me something else you can look at the wrong place?


PHP-L syntax error checking for configuration files

or restart the Apache server, the Apache error log will have the PHP load module failed record.
Hello, I said that, in the Apache error log cannot be viewed:
Can you tell me something else you can look at the wrong place?

Are you sure you can't see them?
Yes, the error message is similar to the following: PHP warning:php startup:unable to load Dynamic Library './ext\\ php_curl22.dll '-\xd5\xd2\xb2\xbb\xb5\xbd\ xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0

The red part is a non-existent extension I added
If not, it is likely that the php.ini file you modified is not the INI file that PHP actually uses.

Reboot Apache to load new DLL



PHP-L syntax error checking for configuration files

or restart the Apache server, the Apache error log will have the PHP load module failed record.
Hello, I said that, in the Apache error log cannot be viewed:
Can you tell me something else you can look at the wrong place?

Are you sure you can't see them?
Yes, the error message is similar to the following: PHP warning:php startup:unable to load Dynamic Library './ext\\ php_curl22.dll '-\xd5\xd2\xb2\xbb\xb5\xbd\ xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0

The red part is a non-existent extension I added
If not, it is likely that the php.ini file you modified is not the INI file that PHP actually uses.

Determine is the corresponding php.ini of the modification ha, that mistake did not see the ha. It's just curiosity. PS: I am a 64-bit system, not the impact of it

PHP-L syntax error checking for configuration files

or restart the Apache server, the Apache error log will have the PHP load module failed record.
Let me cut you a picture:
This is my php.ini setup.


And see my Apache error.log.


Guaranteed to be the same as an Apache reference to the same php.ini ha, configuration is sure to be no problem. I restarted Apache.

My php5.4, is not PHP forgot what set?
I have added the main directory of PHP and ext to the environment variable of path!



PHP-L syntax error checking for configuration files

or restart the Apache server, the Apache error log will have the PHP load module failed record.
Hello, I said that, in the Apache error log cannot be viewed:
Can you tell me something else you can look at the wrong place?

Are you sure you can't see them?
Yes, the error message is similar to the following: PHP warning:php startup:unable to load Dynamic Library './ext\\ php_curl22.dll '-\xd5\xd2\xb2\xbb\xb5\xbd\ xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0

The red part is a non-existent extension I added
If not, it is likely that the php.ini file you modified is not the INI file that PHP actually uses.


The problem has been resolved, and it does not appear that the Error.log DLL is not present under Apache: No satisfactory answer knot

  • Related Article

    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.