In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to install php on the command line under linux, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's learn about it!
Linux under the command line to install php: 1, download the php source code and decompress; 2, enter the decompression directory, configure the installation environment; 3, execute the [make] command to compile; 4, execute the [make install] command to install.
[download php source code]
Download the php installation source package from php's official website.
[unpack the installation package]
The downloaded installation package is in a compressed gz format. You can extract it in linux using the built-in tool tar, and execute the command in the directory where the installation package is located:
Tar-zxvf php-5.5.11.tar.gz
[configure installation variables]
Open the extracted directory-execute the command:
Cd php-5.5.11
Configure the installation environment-execute the command:
. / configure-- prefix=/usr/local/servers/php
"/ usr/local/servers/php" is the installation path, which can be changed to your favorite installation path.
[compile source code]
Execute the compile command in the extracted directory:
Make
[install php]
Switch to root user-execute the command:
Sudo su root
Install-execute the command:
Make install
Create a soft chain: execute the command:
Ln-s / usr/local/servers/php/bin/php / usr/local/bin/php above are all the contents of the method of installing php on the command line under linux. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.