文章

h5ai 一款php目录列表程序

  编辑于:2017-12-18

h5ai 一款php目录列表程序。

添加虚拟主机,使用lnmp.org的程序:
lnmp vhost add
进入网站目录
cd /home/wwwroot/域名
下载h5ai,最新版程序在:https://larsjung.de/h5ai/
wget https://release.larsjung.de/h5ai/h5ai-0.29.0.zip
解压:
unzip h5ai-0.29.0.zip
修改nginx配置文件:
vi /usr/local/nginx/conf/vhost/域名.conf
在
index index.html index.htm index.php default.html default.htm default.php;   行中
添加
/_h5ai/public/index.php
即:
index index.html index.htm index.php default.html default.htm default.php /_h5ai/public/index.php; 
重启nginx
lnmp restart

修改php.ini
vi /usr/local/php/etc/php.ini
在disable_functions行中删除scandir,若不删除则在h5ai中无法看到文件。
保存。
重启php
lnmp php-fpm restart

访问域名即可进入H5ai。

查看环境信息:域名/_h5ai/public/index.php

评论加载中