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
31611fd7
Commit
31611fd7
authored
Jun 23, 2017
by
不素盒尚01
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stable
parent
3b1633a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
133 deletions
+2
-133
nginx.conf
conf/nginx.conf
+1
-86
main.sh
main.sh
+1
-1
php.sh.bak
scripts/php.sh.bak
+0
-46
No files found.
conf/nginx.conf
View file @
31611fd7
...
@@ -6,9 +6,6 @@ error_log logs/error.log;
...
@@ -6,9 +6,6 @@ error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#error_log logs/error.log info;
pid
logs/nginx
.pid
;
events
{
events
{
worker_connections
1024
;
worker_connections
1024
;
}
}
...
@@ -27,91 +24,9 @@ http {
...
@@ -27,91 +24,9 @@ http {
sendfile
on
;
sendfile
on
;
#tcp_nopush on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout
65
;
keepalive_timeout
65
;
gzip
on
;
gzip
on
;
server
{
include
/home/admin/env/nginx/conf.d/*.conf
;
listen
80
;
server_name
localhost
;
root
/home/admin/production
;
#charset koi8-r;
access_log
logs/host
.access.log
main
;
#location / {
# root html;
# index index.html index.htm;
#}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root html;
#}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location
~
\.php$
{
fastcgi_pass
unix:/var/run/php-fpm/php-fpm.sock
;
fastcgi_index
index.php
;
fastcgi_param
SCRIPT_FILENAME
$document_root$fastcgi_script_name
;
include
fastcgi_params
;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}
}
main.sh
View file @
31611fd7
chmod
+x scripts/
*
chmod
+x scripts/
*
mkdir
extract
mkdir
extract
#
./scripts/nginx.sh
./scripts/nginx.sh
./scripts/php.sh
./scripts/php.sh
scripts/php.sh.bak
deleted
100755 → 0
View file @
3b1633a1
tar -zxvf source/php-7.1.3.tar.gz -C extract/
cd extract/php-7.1.3/
./configure --prefix=/home/admin/env/php\
--enable-fpm\
--with-config-file-path=/root/enc/php/etc\
--with-openssl\
--with-mbstring\
--with-mysql=mysqlnd\
--with-mysqli=mysqlnd\
--with-mcrypt=/usr/include\
--with-pdo-mysql=/usr/bim/mysql\
--with-gd\
--with-iconv\
--with-zlib\
--enable-xml\
--enable-bcmath\
--enable-shmop\
--enable-sysvsem\
--enable-inline-optimization\
--enable-mbregex\
--enable-gd-native-ttf\
--enable-pcntl\
--enable-socketes\
--with-xmlrpc\
--enable-zip\
--enable-soap\
--without-pear\
--with-gettext\
--enable-session\
--with-curl\
--with-jpeg-dir\
--with-freetype-dir\
--enable-opcache
make && make install
cd ../..
\cp -f conf/php.ini /home/admin/env/php/etc/php.ini
\cp -f conf/php-fpm.conf /home/admin/env/php/etc/php-fpm.conf
\cp -f conf/www.conf /home/admin/env/php/etc/php-fpm.d/www.conf
\cp -f conf/php-fpm /etc/init.d/
mkdir /home/admin/env/php/log
mkdir /var/run/php-fpm
chmod +x /etc/init.d/php-fpm
chkconfig --add php-fpm
chkconfig php-fpm on
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