Php5.4 command line running error

Source: Internet
Author: User
5.3 was installed before, but now all the configuration paths for php have been changed to 5.4. If you run the php Command on the command line, an error will be reported and some pop-up boxes will be displayed, the PHP file is still normal after confirmation. Why? But it does...

5.3 was installed before, but now all the configuration paths for php have been changed to 5.4. If you run the php Command on the command line, an error will be reported.

There will be some pop-up boxes like this later, and the PHP file will still be properly interpreted and run along the way.
Why?

However, no error is reported during http access. Everything is normal.

Reply content:

5.3 was installed before, but now all the configuration paths for php have been changed to 5.4. If you run the php Command on the command line, an error will be reported.

There will be some pop-up boxes like this later, and the PHP file will still be properly interpreted and run along the way.
Why?

However, no error is reported during http access. Everything is normal.

The main reason is that php configuration price inquiry php. ini is faulty.
Http access is normal because the apache configuration file specifies the php Directory and the php configuration file directory.
The problem occurs in CLI mode because php5.3 and php5.4 are installed on my computer, although the current path only contains the php5.4 path.
This error occurs when php is executed on the command line.

Php-c "Current php5.4 configuration file path"

OK. The reason is the problem with the configuration file, and rename the configuration file in php5.3. It is normal to execute php.

I found the reason, but I cannot understand why php will search for the previous configuration file instead of the configuration file in the current folder.

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.