Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt-get update -y
- sudo apt-get install apache2 -y
- sudo apt-get install php libapache2-mod-php
- sudo systemctl enable apache2
- sudo service apache2 start
- echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/phpinfo.php
- Enter this url in new tab to check if php installation is successful
- http://localhost/phpinfo.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement