Last active
February 25, 2021 06:40
-
-
Save lucasburlingham/8a8c37fbccb457f31977d4a1c21dedc4 to your computer and use it in GitHub Desktop.
Install phpsysinfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Removing previous files..." | |
sudo rm -r phpsysinfo-3.3.2 v3.3.2.zip | |
echo "Getting phpsysinfo..." | |
sudo wget https://github.com/phpsysinfo/phpsysinfo/archive/v3.3.2.zip | |
echo "Copying phpsysinfo to web server root..." | |
sudo cp v3.3.2.zip /var/www/html/ | |
echo "Unzipping phpsysinfo zip file..." | |
sudo unzip /var/www/html/v3.3.2.zip | |
echo "Removing default Apache2 page..." | |
sudo rm /var/www/html/index.html | |
echo "Installing Dependancies:" | |
echo " Installing PHP..." | |
sudo apt install php -y | |
echo " Making sure that Apache 2 is installed..." | |
sudo apt purge apache2 -y | |
sudo apt install apache2 -y | |
echo " Installing PHP-XML module..." | |
sudo apt install php-xml -y | |
echo "Done Installing Dependancies." | |
echo "Installing phpsysinfo to server root" | |
sudo cp -r /var/www/html/phpsysinfo-3.3.2/* /var/www/html/ | |
echo "Restarting Apache 2 webserver..." | |
sudo apachectl restart | |
echo "Done!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment