php5.4 Command line Run error

Source: Internet
Author: User

Before the installation has 5.3 but now all the configuration path about PHP is changed to 5.4, command line run PHP This command will be error

There will be some such pop-up boxes, all the way to determine the final PHP file is still normal to be interpreted to run.
What's the reason for this?

But through HTTP access will not error, everything is OK

Reply content:

Before the installation has 5.3 but now all the configuration path about PHP is changed to 5.4, command line run PHP This command will be error

There will be some such pop-up boxes, all the way to determine the final PHP file is still normal to be interpreted to run.
What's the reason for this?

But through HTTP access will not error, everything is OK

The main reason is that PHP configuration ask price php.ini problems
HTTP access is normal because the Apache configuration file indicates the PHP directory and the PHP configuration file directory
The problem with CLI mode is that I have php5.3 and php5.4 installed in My computer, although there are only php5.4 paths in the path
This error occurs when PHP executes on the command line, but if this

php -c "当前php5.4的配置文件路径"

It's OK. The reason is the problem of the configuration file, and then to the php5.3 inside the configuration file renamed, in the execution of PHP is normal.

Find out why, but the puzzle is why PHP will go to look for the previous configuration file, not the current folder configuration file

  • 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.