How to Install php on Ubuntu
- 04 Sep, 2021
- Technology
Install php7.4 on Ubuntu 20.04
1. Open server command prompt
2. Enter command sudo -s
to change user to root user (i have already performed this step)
3. sudo apt-get update -y
4. sudo apt-get upgrade -y
5. apt-cache pkgnames | grep php7.4
6. sudo apt-get install php -y
7. sudo apt-get install php-{bcmath,bz2,intl,gd,mbstring,mysql,zip,fpm} -y
8. systemctl restart apache2.service
9. php -v
10. Path of php.ini (sudo vi /etc/php/7.4/fpm/php.ini) on server