Hello guys!
Do you want to setup PHP website in Ubuntu machine. You have to follow the steps below:
sudo apt update //to update the system
sudo apt upgrade
sudo apt install php //it will install latest version of php in your machine.
now to interact with mysql server. you will need one more package and that is php-mysqli so type the below command in your terminal
sudo apt install php-mysqli
That's it now you can use php and php with mysql server.
:-)
Login to discuss.