Commit 878eced1 authored by FrankAblat's avatar FrankAblat

update environment

parent b775fc92
extract
.DS_Store
\ No newline at end of file
all: prepare-libs create_user install_php_nginx
prepare-libs:
yum -y install libjpeg-devel
yum -y install libpng-devel
yum -y install bzip2-devel
yum -y install db4-devel
yum -y install libXpm-devel
yum -y install gmp-devel
yum -y install libc-client-devel
yum -y install pcre-devel
yum -y install mysql-devel
yum -y install libxml2 libxml2-devel -y
yum -y install openssl-devel -y
yum -y install curl-devel -y
yum -y install freetype-devel
yum -y install libmcrypt libmcrypt-devel mcrypt mhash
install_php_nginx:
bash main.sh
create_user:
useradd admin
\ No newline at end of file
......@@ -113,5 +113,5 @@ http {
# index index.html index.htm;
# }
#}
include ./conf/sites-enabled/*.conf;
}
chmod +x scripts/*
mkdir extract
#./scripts/nginx.sh
./scripts/php.sh
./scripts/nginx.sh
\ No newline at end of file
tar -zxvf source/nginx-1.10.3.tar.gz -C extract/
cd extract/nginx-1.10.3/
tar -zxvf source/nginx-1.14.1.tar.gz -C extract/
cd extract/nginx-1.14.1/
./configure --group=admin --prefix=/home/admin/env/nginx
make && make install
cd ../..
\cp -f conf/nginx /etc/init.d/nginx
\cp -f conf/nginx.conf /home/admin/env/nginx/conf/nginx.conf
mkdir -p /home/admin/env/nginx/conf/sites-available
mkdir -p /home/admin/env/nginx/conf/sites-enabled
chmod +x /etc/init.d/nginx
chkconfig --add nginx
chkconfig nginx on
tar -zxvf source/php-7.1.3.tar.gz -C extract/
cd extract/php-7.1.3/
tar -zxvf source/php-7.3.1.tar.gz -C extract/
cd extract/php-7.3.1/
./configure --prefix=/home/admin/env/php\
--enable-fpm\
--with-config-file-path=/root/env/php/etc\
--with-config-file-path=/home/admin/env/php/etc\
--with-mysql=mysqlnd\
--with-mysqli=mysqlnd\
--with-pdo-mysql=mysqlnd\
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment