Recently I downloaded the WPN-XM full installer and try to further develop my drupal website, because WPN-Xm performs faster than other development stacks in Microsoft Windows. But in drupal, only homepage is visible, all other pages show 404 error. My site using the clean url feature in drupal. How could I successfully host drupal website with WPN-XM's nginx web server?
1条回答 默认 最新
- douchuxun4162 2016-02-24 16:39关注
Installation Instructions for Drupal 7 with "Clean URLs" and local domain for WPN-XM
- https://ftp.drupal.org/files/projects/drupal-7.42.zip
- extract into
/www
folder- drupal brings its own folder:
drupal-7.42
, rename it todrupal7
- drupal brings its own folder:
- open in browser: http://localhost/drupal7/install.php
- select "standard"
- enable PHP Extension "gd"
-
php.ini
:extension=php_gd2.dll
-
- create database with Adminer
- http://localhost/tools/adminer/adminer.php
- in case you need to change root pw, use
reset-db-pw.bat
in the server root - create table "test"
- create new user and pw
- use the "database", "user" and "pw"
- configure site
- finally Drupal is installed: http://localhost/drupal7/
Enable local VHost - http://drupal7.dev/
- copy the drupal7.conf from
domains-disabled
todomains-enabled
folder- i've updated the config once more. you find the updated file over here: https://github.com/WPN-XM/software/blob/master/nginx/config/conf/domains-disabled/drupal7.conf
- edit the file and check that you have:
root www/drupal7;
server_name drupal7.dev;
- then add vhost with SCP
- right-click tray, "ManageHosts"
- click add enter
127.0.0.1
withdrupal7.dev
+ "ok" - click main "ok"
- restart nginx
- finally, open http://drupal7.dev/
Enabling Clean URLs
- open http://drupal7.dev/
- login
- after login the URL is: http://drupal7.dev/?q=node
- To enable clean urls go to "Configuration > Clean-Urls" or directly to
- enable checkbox "enable clean urls", then submit
- finally, open http://drupal7.dev/admin/content
In the end you get a vhost
drupal7.dev
with clean URLs - served fromC:\<server>\www\drupal7
.本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 phython读取excel表格报错 ^7个 SyntaxError: invalid syntax 语句报错
- ¥20 @microsoft/fetch-event-source 流式响应问题
- ¥15 ogg dd trandata 报错
- ¥15 高缺失率数据如何选择填充方式
- ¥50 potsgresql15备份问题
- ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
- ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
- ¥60 pb数据库修改与连接
- ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
- ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?