The method of Building PHP Environment in linux Server
This article mainly introduces in detail the method of building the PHP environment in the linux server. The sample code in this article is very detailed and has a certain reference value. Interested friends can refer to it.
How to build the PHP environment of linux server
1. Install php using yum
2. Restart the Apache server.
Note: you can use yum-y install httpd to install the apache server.
Systemctl restart httpd
3. Install the extension of php, and restart the Apache server after the installation is completed
Yum-y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-snmp php-soap curl curl-devel
4. Create a l.php file in the / var/www/html directory and add the following code to save it.
5. The browser can see the effect by visiting the l.php file under the site directory.
This is the end of the method of building a PHP environment in the linux server. I hope the above content can be of some reference value and can be put into practice. If you like this article, you might as well share it for more people to see.