PHP5.6编译安装YAF扩展
Contents
安装YAF扩展
基于阿里云的轻应用服务器安装,(Apache+php-fpm,php5.6)
|
|
安装位置
|
|
php.ini中配置yaf
编辑文件
|
|
在文件末尾增加记录
|
|
修改apache的重写规则
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/$1 [QSA,PT,L]
报错:
这是因为用了高版本的yaf导致的。用yaf-2.3.3 就好了。
|
|
apache重写规则
在网站目录上传文件.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
</IfModule>
Author 软件开发大郭
LastMod 2021-10-29