tssz 大佬有话说 : 2020-3-16 16:56:21
discuzQ的伪静态怎么弄?
官方文档:
Apache要在配置中,将DocumentRoot指向discuz/public目录,同时通过重组规则,将/install和/api请求转发给index.php,其他请求由index.html处理
DocumentRoot /app/public
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/install.*/index.php?%{QUERY_STRING}
RewriteRule ^/api.*/index.php?%{QUERY_STRING}
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.html
</IfModule>
我在宝塔的设置:
一弄伪静态就出错。
其它的composer都已经装好。
大象无形 大佬有话说 : 2020-3-16 16:58:50
为了试水找个,我安了个apache。:lol
tssz 大佬有话说 : 2020-3-16 17:01:52
大象无形 大佬有话说 : 2020-3-16 16:58
为了试水找个,我安了个apache。
哈哈。。等 大佬方法
我不想换ngnix
我日人 大佬有话说 : 2020-3-16 17:09:20
为什么我这个目录在/root/discuz
tssz 大佬有话说 : 2020-3-16 17:13:40
我日人 大佬有话说 : 2020-3-16 17:09
为什么我这个目录在/root/discuz
你登陆SSH就默认在/root下吧
我是进入网站目录在安装的
我日人 大佬有话说 : 2020-3-16 17:20:52
Installing qcloud/discuz (v0.3.200315)
– Installing qcloud/discuz (v0.3.200315): Loading from cache
The Process class relies on proc_open, which is not available on your PHP installation.
The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
Created project in /root/discuz
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
还是不行啊
tssz 大佬有话说 : 2020-3-16 17:32:54
我日人 大佬有话说 : 2020-3-16 17:20
还是不行啊
你先装个PHP7.3 或7.4 在试试
我日人 大佬有话说 : 2020-3-16 17:37:15
Installing qcloud/discuz (v0.3.200315)
– Installing qcloud/discuz (v0.3.200315): Loading from cache
Created project in /www/wwwroot/discuz
Loading composer repositories with package information
Updating dependencies (including require-dev)
Killed
tssz 大佬有话说 : 2020-3-16 17:39:10
我日人 大佬有话说 : 2020-3-16 17:37
这个我也不懂了。
你看目录下是不是有文件了
明天在换台服务器在折腾下
我日人 大佬有话说 : 2020-3-16 17:41:24
tssz 大佬有话说 : 2020-3-16 17:32
你先装个PHP7.3 或7.4 在试试
7.2就够了,刚才是禁用函数没删除