设为首页收藏本站

简体中文 繁體中文 English 日本語 Deutsch 한국 사람 بالعربية TÜRKÇE português คนไทย Français

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 21|回复: 2

纯手动安装nginx+php7.2+OneManager

[复制链接]

88

主题

754

回帖

1874

积分

金牌会员

积分
1874
发表于 2020-9-17 16:23:26 | 显示全部楼层 |阅读模式
本帖最后由 woniu 于 2020-9-17 16:25 编辑

写在前面的话:

作者能写出这样的程序给大家用,人品属实已经很好了!
OneManager-php 真的是很好用的一个列表程序,用过的里面的最简单友好的!
程序开源,使用不收一分钱,当然没有任何义务惯着任何人!




准备工作
准备一个纯净的vps,系统为ubuntu

手动安装nginx

[ol]
  • apt install epel-release
  • apt install nginx[/ol]复制代码
    手动安装php7.2
    更新php7.2的软件源

    #添加GPG
    [ol]
  • wget -O /etc/apt/trusted.gpg.d/php.gpg https://mirror.xtom.com.hk/sury/php/apt.gpg[/ol]复制代码

    #安装apt-transport-https
    [ol]
  • apt-get install apt-transport-https
  • [/ol]复制代码
    #添加sury软件源
    [ol]
  • sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'[/ol]复制代码

    #更新软件源缓存
    [ol]
  • apt-get update[/ol]复制代码
    安装php 7.2

    [ol]
  • apt install php7.2-fpm php7.2-mysql php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-opcache -y[/ol]复制代码
    设置php

    [ol]
  • sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/' /etc/php/7.2/fpm/php.ini [/ol]复制代码
    到这里就安装好了,更多的命令
    [ol]
    1. systemctl restart php7.2-fpm  #重启
    2. [*]systemctl start php7.2-fpm  #启动
    3. [*]systemctl stop php7.2-fpm  #关闭
    4. [*]systemctl status php7.2-fpm  #检查状态[/ol]复制代码
    复制代码

    安装OneManager
    新建网站安装目录

    [ol]
  • mkdir -p /www/aaaa[/ol]复制代码
    下载源代码,并放到网站目录

    [ol]
  • cd /www/aaaa
  • git clone https://github.com/qkqpttgf/OneManager-php.git
  • cd OneManager-php
  • mv * ../
  • chmod 666 config.php[/ol]复制代码
    nginx配置php的文件

    [ol]
  • vi /etc/nginx/conf.d/aaaa.conf
  • server {
  •         listen 80;
  •         server_name aaaa.com;
  •         index index.php;
  •         root /www/aaaa/;
  •         rewrite ^/(?!.well-known)(.*)$ /index.php?/$1 last;
  •         location ~ \.php$ {
  •             fastcgi_pass   unix:/run/php/php7.2-fpm.sock;
  •             fastcgi_index  index.php;
  •             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  •             include        fastcgi_params;
  •         }
  • }
  • [/ol]复制代码
  • 回复

    使用道具 举报

    149

    主题

    6786

    回帖

    1万

    积分

    论坛元老

    积分
    14097
    发表于 2020-9-17 16:23:52 | 显示全部楼层
    多谢分享,了,所以这是做什么的?
    回复

    使用道具 举报

    168

    主题

    2452

    回帖

    5456

    积分

    论坛元老

    积分
    5456
    发表于 2020-9-17 16:23:57 | 显示全部楼层

    tir 发表于 2020-9-17 16:23

    多谢分享,了,所以这是做什么的?

    列表程序,,,网盘的
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|Discuz! X

    GMT+8, 2026-3-24 16:57 , Processed in 0.015196 second(s), 4 queries , Gzip On, Redis On.

    Powered by Discuz! X3.5

    © 2001-2025 Discuz! Team.

    快速回复 返回顶部 返回列表