使用php easydamin

1~4步必须都要做

1. git 拉下easyadmin代码

2. 将代码直接FTP传到域名文件目录下

3. 修改vhost下的xxx.conf根本目录为public     不然会出现403 forbiden

4. install composer        不做访问域名,会出现错误  This page isn't workingeamcan.cn is currently unable to handle this request. HTTP ERROR 500

#install composer
[root@izbpot8z bin]# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...

#move file
Composer (version 2.5.7) successfully installed to: /usr/bin/composer.phar
Use it: php composer.phar

[root@izbpot8z bin]# mv composer.phar /usr/bin/composer

#switch in project directory
tq0ocsm6oot8z xxxxxx]# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? y
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 40 installs, 0 updates, 0 removals
- Downloading mtdowling/jmespath.php (2.4.0)


- Installing topthink/framework (v6.0.8): Extracting archive
- Installing topthink/think-captcha (v3.0.2): Extracting archive
- Installing topthink/think-multi-app (v1.0.11): Extracting archive
- Installing topthink/think-template (v2.0.7): Extracting archive
- Installing topthink/think-view (v1.0.13): Extracting archive
- Installing doctrine/annotations (1.13.2): Extracting archive
- Installing zhongshaofa/easy-admin (v1.0.2): Extracting archive
- Installing zhongshaofa/thinkphp-log-trace (v1.0.1): Extracting archive
Generating autoload files
> @php think service:discover
Succeed!

posted @ 2023-06-02 16:25  奥雷连诺  阅读(49)  评论(0编辑  收藏  举报