Created
April 7, 2017 02:43
-
-
Save rizalio/9179745f803afb05572aae4175d3c9a1 to your computer and use it in GitHub Desktop.
Centos Server phpsysinfo installation
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
!#/bin/sh | |
################################################# | |
# Server Configuration for Centos 6.8 Final # | |
# Don't use port 7071 # | |
################################################# | |
## updating packages | |
sudo yum update -y | |
## installing dependencies | |
sudo yum install unzip -y | |
sudo yum install nano -y | |
sudo yum install sed -y | |
sudo yum install screen -y | |
## installing HTTP Server (Powered By Apache) | |
sudo yum install httpd mod_ssl -y | |
## starting HTTP Services | |
sudo /usr/sbin/apachectl start | |
## fix for hostname resolving | |
echo "ServerName localhost" >> /etc/httpd/conf/httpd.conf | |
## make automatic start after reboot | |
sudo /sbin/chkconfig httpd on | |
## make sure automatic start is running | |
sudo /sbin/chkconfig --list httpd | grep httpd | |
## install PHP | |
sudo yum install php php-mysql php-devel php-gd php-pecl-memcache php-pspell php-snmp php-xmlrpc php-xml -y | |
## change to port 7071 | |
sed -i -e 's/Listen 80/Listen 7071/g' /etc/httpd/conf/httpd.conf | |
##restarting HTTP Services | |
sudo /usr/sbin/apachectl restart | |
## downloading phpsysinfo | |
cd /var/www/html | |
rm -R * | |
wget https://github.com/phpsysinfo/phpsysinfo/archive/master.zip | |
unzip master.zip | |
cp -r phpsysinfo-master/* /var/www/html | |
mv phpsysinfo.ini.new phpsysinfo.ini | |
## finishing installation | |
sudo /usr/sbin/apachectl restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to setup this on sentora web panel