VPS侦探论坛

 找回密码
 注册
查看: 8483|回复: 1

edusoho安装进不去

[复制链接]
发表于 2017-6-5 20:27:14 | 显示全部楼层 |阅读模式

debian8.0 64,lnmp1.4环境。安装edusoho进不去安装界面,conf如下:
  1. server
  2.     {
  3.         listen 80;
  4.                
  5.         server_name edu.neu.pw ;
  6.                
  7.         root  /home/wwwroot/edu.neu.pw/edusoho/web;
  8.                
  9.         include other.conf;
  10.         include enable-php-pathinfo.conf;
  11.                
  12.                 location / {
  13.                         index app.php;
  14.                         try_files $uri @rewriteapp;
  15.                 }

  16.                 location @rewriteapp {
  17.                         rewrite ^(.*)$ /app.php/$1 last;
  18.                 }

  19.                 location ~ ^/udisk {
  20.                         internal;
  21.                         root /home/wwwroot/edu.neu.pw/edusoho/app/data;
  22.                 }

  23.                 location ~ ^/(app|app_dev)\.php(/|$) {
  24.                         fastcgi_pass   unix:/tmp/php-cgi.sock;
  25.                         fastcgi_split_path_info ^(.+\.php)(/.*)$;
  26.                         include fastcgi_params;
  27.                         fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
  28.                         fastcgi_param  HTTPS              off;
  29.                         fastcgi_param HTTP_X-Sendfile-Type X-Accel-Redirect;
  30.                         fastcgi_param HTTP_X-Accel-Mapping /udisk=/home/wwwroot/edu.neu.pw/edusoho/app/data/udisk;
  31.                         fastcgi_buffer_size 128k;
  32.                         fastcgi_buffers 8 128k;
  33.                 }

  34.                 location ~* \.(jpg|jpeg|gif|png|ico|swf)$ {
  35.                         expires 3y;
  36.                         access_log off;
  37.                         gzip off;
  38.                 }

  39.                 location ~* \.(css|js)$ {
  40.                         access_log off;
  41.                         expires 3y;
  42.                 }

  43.                 location ~ ^/files/.*\.(php|php5)$ {
  44.                         deny all;
  45.                 }

  46.                 location ~ \.php$ {
  47.                         fastcgi_pass   unix:/tmp/php-cgi.sock;
  48.                         fastcgi_split_path_info ^(.+\.php)(/.*)$;
  49.                         include fastcgi_params;
  50.                         fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
  51.                         fastcgi_param  HTTPS              off;
  52.                 }

  53.                 access_log  /home/wwwlogs/edu.neu.pw.log;
  54. }
复制代码





错误信息:
  1. 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

  2. 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

  3. 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吧,军哥求助。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-6-6 08:52:24 | 显示全部楼层


使用lnmp1.4/tools/ 目录下的 ./remove_open_basedir_restriction.sh 按提示输入网站目录移除该设置试试。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-26 01:26 , Processed in 0.025274 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表