Here are some useful command to start / stop or restart apache. So we can easily install it with apt install command. We can easily install them one by one or in a single command like: sudo apt-get install -y php7.4-cli php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd php7.4-mbstring php7.4-curl php7.4-xml php7.4-bcmath Step 2: Installing apacheĪpache is available in default apt repositories. While working with php we need additional packages. Now use apt to install desired php version sudo apt -y install php7.4 Now refresh the apt so that it can recognise newly added repository. Now add ppa:ondrej/php PPA which has PHP binaries that we are going to install sudo add-apt-repository ppa:ondrej/php Install software-properties-common using apt command so that additional PPA can be added and installed easily sudo apt -y install software-properties-common step 1: installing php 7.4įor run update command : sudo apt-get update Follow the steps below to install PHP 7.4 along with MySql, apache and PHPMyAdmin. As different versions of PHP are released over time so there are different apt PPA (personal package archives) that maintains the php binaries. Being a PHP developer we frequently come across requirements where we need to install xampp or Apache, PHP, Mysql on ubuntu system (whether server or on local machine).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |