In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Linux installation of PHP environment specific steps, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
PHP, or "hypertext preprocessor", is a scripting language executed on the server side, especially suitable for Web development and can be embedded in HTML. The PHP syntax leverages C, Java, and Perl, and the main goal of the language is to allow web developers to quickly write dynamic web pages.
Specific steps for Linux to install PHP environment
1. Install apache [root@VM_0_5_centos /] # yum-y install httpd the following figure indicates that the installation is successful!
two。 Install php [root@VM_0_5_centos /] # yum-y install php the following figure indicates that the installation is successful
3. Install php-fpm [root@VM_0_5_centos /] # yum-y install php-fpm the following figure indicates that the installation is successful
4. Install php-mysql [root@VM_0_5_centos /] # yum-y install php-mysql the following figure indicates that the installation is successful
5. Install apache extension [root@VM_0_5_centos /] # yum-y install httpd-manual mod_ssl mod_perl mod_auth_mysql the following figure indicates that the installation is successful
6. The extension to install php [root@VM_0_5_centos /] # yum-y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc appears in the following figure to indicate that the installation is successful
All the things needed so far have been installed. Start the apache [root@VM_0_5_centos /] # service httpd start browser address bar and enter "http://localhost/" test" to see if it is available. The effect is as follows
The following figure indicates that the apache server is available. Note that if nginx or other servers occupy port 80, it will not start successfully.
two。 Test php to enter the web root directory of apache: / var/www/html remember this path address, upload the project to this address when uploading FTP or SSH, or you can reconfigure or host file yourself.
Write a test here to see if the php check is available.
[root@VM_0_5_centos html] # vi test.php insert the following:
Save: wq enter
Enter "http://localhost/test.php" test" in the browser address bar to see if it is available. The effect is as follows
The following figure indicates that the php service is available. If it cannot be displayed, please note whether the php extension and apache are installed successfully.
We're done! Next, you can drop the required projects into the "/ var/www/html" directory!
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.