Shadowsocks多用户管理面板——SS-Panel教程-》PHP,Nginx 安装

VPS推荐:1.  vultr15个机房可选,月付  

2.ultravps.eu 4个机房可选,鲨鱼jifjifa机房,价格便宜,

其他VPS请参考“国外VPS推荐”系列文章,有更多优惠码、活动等

PHP 版本7.1.12

web 用户

wget  http://php.net/get/php-7.1.12.tar.bz2/from/a/mirror

mv  mirror php-7.1.12.tar.bz2

tar -jxvf php-7.1.12.tar.bz2

cd php-7.1.12

 

./configure –prefix=/home/web/local/php/  –with-config-file-path=/home/web/local/php/etc \
–with-curl –with-pear –with-gd –with-jpeg-dir –with-vpx-dir –with-png-dir \
–with-zlib –with-xpm-dir –with-freetype-dir –with-mcrypt –with-mhash –with-mysql \
–with-mysqli –enable-pdo –with-pdo-mysql –with-openssl –enable-fpm –enable-exif –enable-wddx –enable-zip \
–enable-bcmath -with-bz2 –enable-calendar –enable-ftp –enable-mbstring –enable-soap –enable-sockets –enable-shmop \
–enable-dba –enable-sysvmsg –enable-sysvsem –enable-sysvshm –enable-debug –enable-maintainer-zts –enable-embed –with-pdo-mysql=mysqlnd \
–with-mysqli=mysqlnd –with-mysql=mysqlnd –enable-mysqlnd

make

make install

 

安装完毕后 在php安装目录下新建2个文件 php-fpm.conf  ;php.ini

 

php-fpm.conf:-》

[global]
pid = /home/web/var/run/php-fpm.pid
error_log = /home/web/var/log/php-fpm.log

[www]
user = web
group = web
listen = /home/web/var/run/php.sock
listen.owner = web
listen.group = web
listen.mode = 0660

pm = static
pm.max_children = 10
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 512

pm.status_path = /7292880d0b583bb141f317c1d37aa926
security.limit_extensions=.php .php3 .php4 .php5 .html .js .css .jpg .jpeg .gif .png .htm .ico

 

php.ini-》

[PHP]
lianjia.environment = “prod”
error_log = /home/web/var/log/php_errors.log
extension_dir = “/home/web/local/php/lib/php/extensions/debug-zts-20131226”
zend_extension = “/home/web/local/php/lib/php/extensions/debug-zts-20131226/opcache.so”
include_path = “.:/home/web/local/php/lib/php”
;extension= “memcache.so”
;extension=mysql.so
;extension=gd.so
;extension=db.so

opcache.memory_consumption=1024
opcache.optimization_level=1
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4096
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable=1
opcache.enable_cli=1
date.timezone = Asia/Shanghai
engine = On
short_open_tag = Off
asp_tags = Off
precision = 14
output_buffering = 4096
zlib.output_compression = off
zlib.output_compression_level = 6
implicit_flush = Off
unserialize_callback_func =
serialize_precision = 17
disable_functions =
disable_classes =
zend.enable_gc = On
expose_php = On
max_execution_time = 300
max_input_time = 60
memory_limit = 256M
error_reporting = E_ALL
display_errors = Off
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = On
html_errors = Off
variables_order = “GPCS”
request_order = “GP”
register_argc_argv = Off
auto_globals_jit = On
post_max_size = 50M
auto_prepend_file =
auto_append_file =
default_mimetype = “text/html”
doc_root =
user_dir =
enable_dl = Off
file_uploads = On
upload_max_filesize = 30M
max_file_uploads = 20
allow_url_fopen = On
allow_url_include = Off
default_socket_timeout = 60
[CLI Server]
cli_server.color = On
[Date]
date.timezone = PRC
[Pdo_mysql]
pdo_mysql.cache_size = 2000
pdo_mysql.default_socket=
[Phar]
[mail function]
SMTP = localhost
smtp_port = 25
mail.add_x_header = On
[SQL]
sql.safe_mode = Off
[MySQL]
mysql.allow_local_infile = On
mysql.allow_persistent = On
mysql.cache_size = 2000
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =
mysql.connect_timeout = 60
mysql.trace_mode = Off
[MySQLi]
mysqli.max_persistent = -1
mysqli.allow_persistent = On
mysqli.max_links = -1
mysqli.cache_size = 2000
mysqli.default_port = 3306
mysqli.default_socket =
mysqli.default_host =
mysqli.default_user =
mysqli.default_pw =
mysqli.reconnect = Off
[mysqlnd]
mysqlnd.collect_statistics = On
mysqlnd.collect_memory_statistics = Off
[OCI8]
[PostgreSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1
pgsql.ignore_notice = 0
pgsql.log_notice = 0
[bcmath]
bcmath.scale = 0
[browscap]
[Tidy]
tidy.clean_output = Off
[soap]
soap.wsdl_cache_enabled=1
soap.wsdl_cache_dir=”/tmp”
soap.wsdl_cache_ttl=86400
soap.wsdl_cache_limit = 5
[sysvshm]
[ldap]
ldap.max_links = -1

 

php启动:

/home/web/local/php/sbinphp-fpm

错误日志:

/home/web/var/log/php_errors.log

Ngix 安装 参考下面

Nginx安装

未经允许不得转载:国外主机测评 » Shadowsocks多用户管理面板——SS-Panel教程-》PHP,Nginx 安装

赞 (0) 打赏

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏