全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1447|回复: 16
打印 上一主题 下一主题

[疑问] 做了几十年网站第一次遇到这个情况???

[复制链接]
1#
发表于 2024-4-3 22:08:40 | 显示全部楼层
你这几十年都 在干嘛 。。这不最基本的问题么? 没有配置对php的规则
2#
发表于 2024-4-3 22:23:36 | 显示全部楼层
hdwan.net 发表于 2024-4-3 22:17
https://blog.csdn.net/weixin_39777404/article/details/111703702

apt install nginx
apt install mariadb-server
apt install php php-fpm php-gd php-mbstring php-bcmath php-mysql php-opcache
手搓快得很。。 然后再写一个,或者 网上找一个php的伪静态/重写规则就好了。
    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock; #depends on PHP versions
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-6-15 20:20 , Processed in 0.078424 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表