How To Install Php On Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Install php
-
Debian
apt-get install phpClick to copy -
Ubuntu
apt-get install phpClick to copy -
Alpine OS
apk add phpClick to copy -
Arch Linux
pacman -S phpClick to copy -
Kali Linux
apt-get install phpClick to copy -
CentOS
yum install php-cliClick to copy -
Fedora
dnf install php-cliClick to copy -
Raspbian
apt-get install phpClick to copy -
macOS
brew install phpClick to copy
To install the latest version of php in your favorite operating system just copy the php installation command from above and paste it into terminal. It will download and install the latest version of php 2026 package in your OS.




