drupal 8.5.0安装问题

h2plus0 2018-03-24 09:00:22
大家好!
最新版本的drupal8.5.0安装有问题,很多功能连接都是404, 请问有成功安装的大侠吗?
俺检查过俺的php环境应该没问题, 因为可以运行wordpress, 但drupal administration menu 里的连接都是404,
安装过程中也没有提示出错,另外试过安装drupal-7.57, 但貌似它的theme设置有问题,控制面板看起来很难使用,
不知有大侠遇到过此种问题没?谢谢!

...全文
729 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
h2plus0 2018-03-28
  • 打赏
  • 举报
回复
在看joomla的文档时,最后把nginx.conf整好了,现在drupal7.57也没问题了, 主要还是 PATH_INFO设置错误, 但drupal8.5.0 404错误估计要等drupal新版本了。 谢谢各位,结贴 nginx.conf ================ http { # sendfile on; # tcp_nopush on; # tcp_nodelay on; # keepalive_timeout 100; # types_hash_max_size 2048; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /tmp/nginx-access.log; gzip on; # gzip_disable "msie6"; server { listen 8080; # default_server; root /windows/e/cms/drupal/; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { try_files $uri $uri/ =404; } location ~ \.php($|/) { fastcgi_split_path_info ^(.+?\.php)(.*)$; if (!-f $document_root$fastcgi_script_name) { return 404; } fastcgi_pass unix:/run/php/php7.0-fpm.sock; fastcgi_param HTTP_PROXY ""; include /etc/nginx/fastcgi.conf; include /etc/nginx/fastcgi_params; fastcgi_read_timeout 1200; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; #fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param QUERY_STRING $query_string; fastcgi_intercept_errors on; fastcgi_index index.php; } } }
李睿_Lee 2018-03-27
  • 打赏
  • 举报
回复
伪静态配置问题吧
一起混吧 2018-03-27
  • 打赏
  • 举报
回复
/user/login 也不行? 开启服务器重写功能没有
h2plus0 2018-03-27
  • 打赏
  • 举报
回复
引用 4 楼 jordan102 的回复:
如果nginx不会配置的话还是用apache吧,apache只要开启重写就行了。
谢谢!在drupal的网站上看到3月初也有人问此类问题,但一直没解决。。。 照说nginx 也算是主流服务器了, 准备还是看看 joomla了
一起混吧 2018-03-27
  • 打赏
  • 举报
回复
如果nginx不会配置的话还是用apache吧,apache只要开启重写就行了。
h2plus0 2018-03-27
  • 打赏
  • 举报
回复
引用 1 楼 jordan102 的回复:
/user/login 也不行? 开启服务器重写功能没有
嗯, 不行,出现: No input file specified. 的提示, 在网上找了一下,貌似rewrite也不起作用。。。
引用 2 楼 Novolee 的回复:
伪静态配置问题吧
估计的确如二位所说,可能和服务器配置有关。但wordpress为什么运行正常? 另外装了drupal两个版本: 8.5.0出现404, 但7.57出现的问题是theme根本不起作用,也不能改,页面看上去很难用 因为nginx比较小, 俺用的是nginx服务器。 下面为nginx.conf, 谢谢! http { server { access_log /tmp/nginx-access.log; # ssl off; listen 8080 default_server; # listen [::]:8080 default_server ipv6only=on; #root /usr/share/nginx/html; root /windows/e/cms/drupal/; index index.php index.html index.htm; # Make site accessible from http://localhost/ server_name localhost; location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ @rewrite; # =404; # Uncomment to enable naxsi on this location # include /etc/nginx/naxsi.rules #root /home/chenzero/gitrepos; } # 从其它地方考来的,不知道是不是这样配置 location @rewrite { # Some modules enforce no slash (/) at the end of the URL # Else this rewrite block wouldn't be needed (GlobalRedirect) rewrite ^/(.*)$ /index.php?q=$1; } location ~ \.php$ { fastcgi_pass unix:/run/php/php7.0-fpm.sock; include /etc/nginx/fastcgi_params; fastcgi_read_timeout 1200; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; fastcgi_index index.php; } }

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧