ASCWH

搜索到 2 篇与 CodeIgniter 的结果
06-06

Nginx下搭建CodeIgniter问题集锦

Nginx下搭建CodeIgniter问题集锦
nginx环境下CodeIgniter会出现一些问题!1、数据库驱动连接失败! 出现如下问题:A PHP Error was encountered Severity: Warning Message: mysqli::real_connect(): (HY000/2002): No such file or directory Filename: mysqli/mysqli_driver.php解决方法: 这个问题是php.ini配置的问题。 默认以下配置为空,将以下三个选项设置成你mysql.sock对应的目录就可以解决了。(以下配置为mac下)mysql.default_socket = /tmp/mysql.sock pdo_mysql.default_socket= /tmp/mysql.sock mysqli.default_socket =/tmp/mysql.sock 2、出现Only variable references should be returned by reference报错A PHP Error was encountered Sever...

PHP

1,495 阅读
06月06日
1,495 阅读
0 评论
06-06

CI 框架Linux 下 Nginx 配置

CI 框架Linux 下 Nginx 配置
Linux 下环境各有不同,根据实际情况来server { listen 80; server_name ****.com; index index.html index.htm index.php; root /home/; #nginx去掉index.php location / { rewrite ^/(?!index\.php|robots\.txt|upload|resource)(.*)$ /index.php/$1 last; } #nginx模拟pathinfo,否则CI框架的控制器无法访问 location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param ...

PHP

1,216 阅读
06月06日
1,216 阅读
0 评论