Advertisement
Sathvikks8

Untitled

Jul 1st, 2022 (edited)
786
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. sudo apt-get update -y
  2. sudo apt-get install apache2 -y
  3. sudo apt-get install php libapache2-mod-php
  4. sudo systemctl enable apache2
  5. sudo service apache2 start
  6. echo "<?php phpinfo(); ?>" | sudo tee /var/www/html/phpinfo.php
  7.  
  8. Enter this url in new tab to check if php installation is successful
  9. http://localhost/phpinfo.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement