简介
h5ai
是一款功能强大的php
文件目录列表程序,它提供多种文件目录列表呈现方式,支持Apache httpd
, lighttpd
, nginx
等多种web
服务器,支持多国语言(如英语,简体中文等),你可以在线预览txt
,图片,音频,视频等文件格式。
h5ai官网:https://larsjung.de/h5ai/
截图
安装
要求:PHP 5.5+
1、搭建php网站环境
可使用军哥的lnmp
、lamp
一键包或者amh
、vestacp
、宝塔等面板程序搭建。
2、上传h5ai文件到网站根目录h5ai
本地下载地址:h5ai-0.29.0.zip,将文件解压后放在网站根目录。
3、修改配置文件
只需要在配置文件某个地方加上/_h5ai/public/index.php
即可,比如:
Apache httpd 2.2 / 2.4:httpd.conf
DirectoryIndex index.html index.php /_h5ai/public/index.php
lighttpd 1.4:lighttpd.conf
index-file.names += ("index.html", "index.php", "/_h5ai/public/index.php")
nginx 1.2:nginx.conf
index index.html index.php /_h5ai/public/index.php;
最后重启服务器即可!并将要共享的文件均放到根目录(与_h5ai
同一目录下)。
注意
如果存在文件,但读不出来,可能原因就是php
已禁用scandir
函数了,请修改php.ini
解决。
disable_functions=passthru,exec,system,chroot,scandir,...
删掉scandir,
字样,再重启php
即可:/etc/init.d/php-fpm restart
。
把h5ai
程序_h5ai
中private
和public
两个文件夹中的cache
目录权限设置为777
。
未经允许不得转载:嘟嘟 » 一款不错的PHP目录列表程序:h5ai安装教程
最新评论
请问下,python3 tg_username_update.py都会提示下面这个是因为什么啊 Traceback (most recent call last): File "tg_username_update.py", line 21, in <module> cake = emojize(":cake:", use_aliases=True) TypeError: emojize() got an unexpected keyword argument 'use_aliases'
不可以了
# Install [Debian] [bullseye] [amd64] Downloading... grep: (standard input): binary file matches Error! grub.cfg. root@RRR2:~#
博主你好,请问cloudfront 上传收费这个是事实吧,已经找了几个贴子确认了。 那有什么好办法能够避开这个收费呢?如果不能避开感觉还是cloudflare 比较稳。
来看看
第5步添加自定义主机名进去后等txt验证提示custom hostname does not name to this zone
那没事了,我静态博客。谢谢
为什么缓存键和源请求那里不设置缓存?