edusoho安装进不去
debian8.0 64,lnmp1.4环境。安装edusoho进不去安装界面,conf如下:server
{
listen 80;
server_name edu.neu.pw ;
root/home/wwwroot/edu.neu.pw/edusoho/web;
include other.conf;
include enable-php-pathinfo.conf;
location / {
index app.php;
try_files $uri @rewriteapp;
}
location @rewriteapp {
rewrite ^(.*)$ /app.php/$1 last;
}
location ~ ^/udisk {
internal;
root /home/wwwroot/edu.neu.pw/edusoho/app/data;
}
location ~ ^/(app|app_dev)\.php(/|$) {
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_paramSCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_paramHTTPS off;
fastcgi_param HTTP_X-Sendfile-Type X-Accel-Redirect;
fastcgi_param HTTP_X-Accel-Mapping /udisk=/home/wwwroot/edu.neu.pw/edusoho/app/data/udisk;
fastcgi_buffer_size 128k;
fastcgi_buffers 8 128k;
}
location ~* \.(jpg|jpeg|gif|png|ico|swf)$ {
expires 3y;
access_log off;
gzip off;
}
location ~* \.(css|js)$ {
access_log off;
expires 3y;
}
location ~ ^/files/.*\.(php|php5)$ {
deny all;
}
location ~ \.php$ {
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_paramSCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_paramHTTPS off;
}
access_log/home/wwwlogs/edu.neu.pw.log;
}
错误信息:
Warning: require(): open_basedir restriction in effect. File(/home/wwwroot/edu.neu.pw/edusoho/bootstrap/bootstrap_install.php) is not within the allowed path(s): (/home/wwwroot/edu.neu.pw/edusoho/web:/tmp/:/proc/) in /home/wwwroot/edu.neu.pw/edusoho/web/install/start-install.php on line 16
Warning: require(/home/wwwroot/edu.neu.pw/edusoho/bootstrap/bootstrap_install.php): failed to open stream: Operation not permitted in /home/wwwroot/edu.neu.pw/edusoho/web/install/start-install.php on line 16
Fatal error: require(): Failed opening required '/home/wwwroot/edu.neu.pw/edusoho/web/install/../../bootstrap/bootstrap_install.php' (include_path='.:/usr/local/php/lib/php') in /home/wwwroot/edu.neu.pw/edusoho/web/install/start-install.php on line 16
修改user.ini无效,删除也无效,删除了fastcgi.conf里的限制也无效,依然提示这些,php.ini里貌似没有开启open—basedir吧,军哥求助。 使用lnmp1.4/tools/ 目录下的 ./remove_open_basedir_restriction.sh 按提示输入网站目录移除该设置试试。
页:
[1]