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