yaf Eloquent
1.0.0
Yaf can be installed from source code by:
cd /path/to/yaf-src/
phpize
./configure
make
sudo make install
phpize
./configure [--enable-redis-igbinary]
make && make install
# 添加以下代码
[yaf]
extension=yaf.so
[redis]
extension=redis.so
# 重启php-fpm(以下两种方式任选其一)
/etc/init.d/php-fpm restart
kill -USR2 `cat /usr/local/php/var/run/php-fpm.pid`
# 需要使用函数proc_open,proc_get_status,如禁用,请修改php.ini中disable_functions的值,去除proc_open,proc_get_status,重启php-fpm,重启方法见上。
# 执行以下代码安装 Eloquent ORM
composer install
# 如果未安装composer,请先安装composer再执行`composer install`
Please refer to Composer
source test.sql
Modify nginx configuration file according to the rewrite rules below and execute /usr/local/nginx/sbin/nginx -s reload
#for apache (.htaccess)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
#for nginx
server {
listen ****;
server_name domain.com;
root document_root;
index index.php index.html index.htm;
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?$1 last;
}
}
#for lighttpd
$HTTP["host"] =~ "(www.)?domain.com$" {
url.rewrite = (
"^/(.+)/?$" => "/index.php/$1",
)
}