-
Notifications
You must be signed in to change notification settings - Fork 84
/
install_centos6.sh
18 lines (18 loc) · 1017 Bytes
/
install_centos6.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
yum install -y php php-cli php-devel php-common httpd httpd-devel php-mbstring php-mysql php-pdo php-process mysql mysql-devel mysql-server mysql-libs wget lrzsz dos2unix pexpect libxml2 libxml2-devel
service mysqld start
mysql -e "create database if not exists easyhadoop;"
mysql -hlocalhost -uroot easyhadoop < phpHiveAdmin.sql
mysql -hlocalhost -uroot easyhadoop < patch-001.sql
mysql -hlocalhost -uroot easyhadoop < patch-002.sql
mkdir -p /var/www/html/phpHiveAdmin
cp -R * /var/www/html/phpHiveAdmin/
mkdir -p /var/www/html/phpHiveAdmin/logs
mkdir -p /var/www/html/phpHiveAdmin/etl
mkdir -p /var/www/html/phpHiveAdmin/results
chmod 777 /var/www/html/phpHiveAdmin/logs /var/www/html/phpHiveAdmin/etl /var/www/html/phpHiveAdmin/results
cd /var/www/html/phpHiveAdmin
service httpd start
echo "/*************************************************************/"
echo "Install basic environment complete, setup config.inc.php for access."
echo "/*************************************************************/"