Home > Article > Operation and Maintenance > How to build php on linux virtual machine
How to build PHP on a Linux virtual machine: 1. Install the GD library and related programs; 2. Unzip the GD library compressed package; 3. Specify the installation path of the GD library and install it; 4 , Convert the installation execution file into a binary file and install it; 5. Unzip the PHP compressed package; 6. Configure the PHP installation module and install it; 7. Edit the Apache configuration file to support PHP; 8. Change the homepage type ; 9. Edit the content of the homepage file, write it into the PHP test page, and start the service.
Build PHP service in Linux virtual machine
1. Install GD library and related programs;
2 , decompress the GD library compressed package;
3, specify the installation path of the GD library, and install it;
4, install Convert the executable file into a binary file and install it;
5. Unzip the php compressed package;
6. Configure the PHP installation module and install it;
7. Edit the Apache configuration file to support PHP;
8. Change the homepage type,
9. Edit the content of the homepage file and write php test page and enable the service;;
10. Turn off the security function and firewall;
11. Enter the virtual machine IP address in the browser , log in to the php test page.
The above is the detailed content of How to build php on linux virtual machine. For more information, please follow other related articles on the PHP Chinese website!