Home >Backend Development >PHP Problem >How to change the PHP version of the virtual host
We use a virtual host to build a website. When installing certain programs, you will be prompted to "upgrade PHP version". This is because the default PHP version of the virtual host is the commonly used PHP5.3 version. This PHP version does not support some programs, so it prompts "Upgrade PHP version".
So how to change the PHP version of the virtual host? Let's take Western Digital's virtual host as an example to introduce how to change the PHP version.
Log in to the web space management backend you purchased; (Recommended learning: PHP programming from entry to proficiency)
##Click [Virtual Host Management]-[Enter Advanced Management] on the left menu;
Click [Manage] of your virtual host, and then click [Enter Advanced Management];
## Click [PHP Version] under [Common Management Function Navigation];
## Select a PHP version and click [OK] 】. In this way, the PHP version of the virtual host will be changed.
The above is the detailed content of How to change the PHP version of the virtual host. For more information, please follow other related articles on the PHP Chinese website!