A-A+
关于Nginx下运行Litecommerce(drupal7)一些问题的解决方法
1.php需要开启fsocketopen,exec,openlog,syslog这几个函数
找到服务器上的php.ini文件,查找disable_function将上面的这几个函数从disable_function中去除。
保存php.ini,重新启动lnmp服务或者php-fpm。
2.clean urls不能使用的问题
如果程序安装在根目录,那么在nginx规则中添加如下代码:
if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?q=$1 last; break; }
如果程序安装在子目录,那么在nginx规则中添加下述代码:
if (!-e $request_filename) { rewrite ^/(/w*)/(.*)$ /$1/index.php?q=$2 last; break; }
好久没来博主博客了,就来看看
好久没来博主博客了,就来看看!~大家 相互访问
希望和博主换个链接,谢谢
希望和博主换个链接,谢谢
请说明你的网站地址。
不知道博主交换链接否,谢谢