首页 > 编程语言 >thinkphp: 安装fastadmin

thinkphp: 安装fastadmin

时间:2024-07-29 13:55:57浏览次数:9  
标签:index data fast fastadmin thinkphp php 安装 fastcgi

一,官方地址:

1,官方站:

https://www.fastadmin.net/

2,文档地址:

https://doc.fastadmin.net/docs/install.html

 

二,安装:

1,下载:

下载地址:

https://www.fastadmin.net/download.html

如图

2, 解压fastadmin安装包到服务器,并解压:

liuhongdi@lhdpc:/data/site/admin/fast$ unzip 1.5.0.20240328.zip

3, 配置nginx站点,供访问:

root@lhdpc:/etc/nginx/sites-enabled# more fast.conf 
server {
        listen       8008;
        root   /data/site/admin/fast/public;
        server_name fast;
        index  index.php;
        location / {
            if (!-e $request_filename){
                 rewrite  ^(.*)$  /index.php?s=$1  last;   break;
           }
        }
        location ~ \.php(.*)$ { # 正则匹配.php后的pathinfo部分
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $DOCUMENT_ROOT$fastcgi_script_name;
            fastcgi_param PATH_INFO $1; # 把pathinfo部分赋给PATH_INFO变量
            include        fastcgi_params;
        }
    }

4,安装:

访问站点地址加/install.php,填写相应的字段名后,点最下面的 点击安装 按钮

5,安装完成:如图:

 

6,登录进入:

 

三,测试效果:

 

四,遇到的问题:

1, 第一次访问install.php时报错,如图:

原因: session所在目录没有写权限

解决:

root@lhdpc:/data/site/admin/fast# chmod 777 -R runtime/

2,访问install.php时,提示没有权限写配置文件:

如图:

解决:

把文件的owner/group切换为nginx和php-fpm的运行用户即可:
为防后面出现类似问题,对整个文件夹做操作即可

root@lhdpc:/data/site/admin# chown www-data.www-data -R fast/

 

标签:index,data,fast,fastadmin,thinkphp,php,安装,fastcgi
From: https://www.cnblogs.com/architectforest/p/18329919

相关文章

  • Rust配置国内源,解决安装依赖慢问题
    国内源使用字节的RsProxyhttps://rsproxy.cn/解决rust-analyzer加载时间过长(请参考本文)配置环境变量MacexportRUSTUP_DIST_SERVER="https://rsproxy.cn"exportRUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup"Windows创建下面的系统环境变量变量RUSTUP_DIS......
  • pip 安装错误:缺少 SOCKS 支持的依赖项
    当我尝试使用pipinstall时,它不断抛出此错误。$pipinstalldjangoERROR:CouldnotinstallpackagesduetoanOSError:MissingdependenciesforSOCKSsupport.我尝试安装request[socks],但随后出现错误,指出它无法识别袜子版本。以下是代理设......
  • Ubuntu Docker 安装 卸载
    1、使用脚本安装Dockerwget获取脚本并安装dockerwget-qO-https://get.docker.com/|sh2、启动docker后台服务sudoservicedockerstart3、卸载dockers要卸载Docker,你需要根据你的操作系统来选择合适的命令。以下是在不同操作系统中卸载Docker的方法。在Ubunt......
  • JDK的安装和配置
    JDK的安装和配置目录JDK的安装和配置JDK下载JDK安装配置环境变量JDK下载官网:https://www.oracle.com/cn/java/technologies/downloads![屏幕截图2024-07-25154834](D:\生产实习笔记\images\屏幕截图2024-07-25154834.png)点击JDKDownload进入详细下载页如下:把Accepet......
  • CentOS安装MySQL
    参考文章【CentOS安装mysql简单教程】https://blog.csdn.net/qq_50523945/article/details/131069683【运维系列:centos7yum安装使用时提示cannotfindavalidbaseurlforrepo:base/7/x86_64的解决方法(亲测有效☆)】https://blog.csdn.net/weixin_54626591/article/detai......
  • Django项目快速上手:从安装到创建应用
    Django项目快速上手:从安装到创建应用安装Django首先,确保你已经安装了Python和pip。然后,使用以下命令来安装Django:pipinstalldjango安装成功后,你就可以开始创建Django项目了。创建Django项目打开你的终端或命令提示符,然后使用django-admin命令来创建一个新的Djan......
  • 如果一个包需要安装早期版本,我该如何修改我的deploy.yml?
    这是我的文件:`名称:部署Shinylive应用程序:推:分支:[主要]拉请求:分支机构:[主要]工作:建造:running-on:ubuntu-lateststeps:-uses:actions/checkout@v2-name:SetupPythonuses:actions/setup-python@v4with:python-version:"3.10......
  • centos7.9 安装Hyperf 环境
    安装php7.4cat/etc/redhat-releaseyuminstallepel-releaserpm-Uvhhttps://rpms.remirepo.net/enterprise/remi-release-7.rpmyuminstall-yyum-utilsyum-config-manager--enableremi-php74yuminstall-yphpphp-fpmphp-cliphp-fpmphp-mysqlndphp-zipphp-d......
  • 安装 win32api 时出现此错误
    Collectingpypiwin32Usingcachedpypiwin32-223-py3-none-any.whl(1.7kB)Usingcachedpypiwin32-219.zip(4.8MB)Preparingmetadata(setup.py)...errorerror:subprocess-exited-with-error×pythonsetup.pyegg_infodidnotrunsuccessfully.......
  • ubuntu系统安装docker
    运行以下命令,更新软件包索引并安装添加Docker仓库所需的前置软件包:sudoaptupdatesudoapt-get-yinstallapt-transport-httpsca-certificatescurlsoftware-properties-common第2步:导入DockerGPG密钥使用以下命令下载并导入Docker阿里云的GPG密钥:curl-f......