Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
evnvironmen
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Mirzat
evnvironmen
Commits
878eced1
Commit
878eced1
authored
Nov 15, 2018
by
FrankAblat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update environment
parent
b775fc92
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
7 deletions
+34
-7
.gitignore
.gitignore
+1
-0
Makefile
Makefile
+24
-0
nginx.conf
conf/nginx.conf
+1
-1
main.sh
main.sh
+1
-1
nginx.sh
scripts/nginx.sh
+4
-2
php.sh
scripts/php.sh
+3
-3
nginx-1.14.1.tar.gz
source/nginx-1.14.1.tar.gz
+0
-0
php-7.3.0.tar.gz
source/php-7.3.0.tar.gz
+0
-0
No files found.
.gitignore
View file @
878eced1
extract
extract
.DS_Store
\ No newline at end of file
Makefile
0 → 100644
View file @
878eced1
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
conf/nginx.conf
View file @
878eced1
...
@@ -113,5 +113,5 @@ http {
...
@@ -113,5 +113,5 @@ http {
# index index.html index.htm;
# index index.html index.htm;
# }
# }
#}
#}
include
./conf/sites-enabled/*.conf
;
}
}
main.sh
View file @
878eced1
chmod
+x scripts/
*
chmod
+x scripts/
*
mkdir
extract
mkdir
extract
#./scripts/nginx.sh
./scripts/php.sh
./scripts/php.sh
./scripts/nginx.sh
\ No newline at end of file
scripts/nginx.sh
View file @
878eced1
tar
-zxvf
source
/nginx-1.1
0.3
.tar.gz
-C
extract/
tar
-zxvf
source
/nginx-1.1
4.1
.tar.gz
-C
extract/
cd
extract/nginx-1.1
0.3
/
cd
extract/nginx-1.1
4.1
/
./configure
--group
=
admin
--prefix
=
/home/admin/env/nginx
./configure
--group
=
admin
--prefix
=
/home/admin/env/nginx
make
&&
make
install
make
&&
make
install
cd
../..
cd
../..
\c
p
-f
conf/nginx /etc/init.d/nginx
\c
p
-f
conf/nginx /etc/init.d/nginx
\c
p
-f
conf/nginx.conf /home/admin/env/nginx/conf/nginx.conf
\c
p
-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
chmod
+x /etc/init.d/nginx
chkconfig
--add
nginx
chkconfig
--add
nginx
chkconfig nginx on
chkconfig nginx on
scripts/php.sh
View file @
878eced1
tar
-zxvf
source
/php-7.
1.3
.tar.gz
-C
extract/
tar
-zxvf
source
/php-7.
3.1
.tar.gz
-C
extract/
cd
extract/php-7.
1.3
/
cd
extract/php-7.
3.1
/
./configure
--prefix
=
/home/admin/env/php
\
./configure
--prefix
=
/home/admin/env/php
\
--enable-fpm
\
--enable-fpm
\
--with-config-file-path
=
/
root
/env/php/etc
\
--with-config-file-path
=
/
home/admin
/env/php/etc
\
--with-mysql
=
mysqlnd
\
--with-mysql
=
mysqlnd
\
--with-mysqli
=
mysqlnd
\
--with-mysqli
=
mysqlnd
\
--with-pdo-mysql
=
mysqlnd
\
--with-pdo-mysql
=
mysqlnd
\
...
...
source/nginx-1.14.1.tar.gz
0 → 100755
View file @
878eced1
File added
source/php-7.
1.3
.tar.gz
→
source/php-7.
3.0
.tar.gz
100644 → 100755
View file @
878eced1
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment