The system comes with php 5.5.27, And I have installed php 5.3.29 myself. In the terminal, the php-v version is 5.3.29, but when the browser opens localhost, it uses 5.5.27. It is strange, why? How can I use 5.3 For localhost? The built-in php is
5.5.27
I installed
5.3.29
. Use in a terminal
Php-v
The version is
5.3.29
But when the browser opens localhost
5.5.27
That's strange. Why? How can I use localhost?
5.3
?
Reply content:
The built-in php is5.5.27
I installed5.3.29
. Use in a terminalPhp-v
The version is5.3.29
But when the browser opens localhost5.5.27
That's strange. Why? How can I use localhost?5.3
?
1. Start 5.3 of php-fpm. If nginx is used as the web server
2. Modify the php parsing configuration in the web server configuration file. If nginx is used, modify fastcgi_pass. If apache is used, modify LoadModule and AddType.
Php-v displays the php version configured in environment variables.
The version displayed for localhost access is the php version loaded by the Apache or nginx configuration file.