PHP is a general-purpose open source scripting language. It is widely applicable to WEB development and can be used to build a free WEB application with Apache and MySQL in Linux system. Let’s take a look at how to install PHP software in ubuntu system.
First install apache2 and MySQL (recommended learning: PHP video tutorial)
Open the Ubuntu terminal window (ctrl alt t) and enter the following instructions to start installing PHP7
#sudo apt-get install php7
Enter Y to continue the installation, and download and install after a period of time.
After the installation is complete, enter: sudo php -v to check whether PHP is installed successfully.
The following interface appears, indicating that the PHP installation is complete
The above is the detailed content of How to install php in ubuntu. For more information, please follow other related articles on the PHP Chinese website!