duan0714 2015-08-21 03:19
浏览 33
已采纳

发布请求不工作Drupal和Ubuntu 14.04

In my ubuntu 14.04 OS machine for drupal 7 login not working, may be it is not only login but all post request not working here. For the same filesystem and codebase it works fine in windows 7 machine.

Here is my apache server configuration:

<VirtualHost *:80>

ServerName somedomain.local

DocumentRoot "/home/mycompany/Development/Projects/Drupal/cbb"

<Directory "/home/mycompany/Development/Projects/Drupal/cbb/">

   Options Indexes FollowSymLinks

   AllowOverride All

   Require all granted    

</Directory>

</VirtualHost>

for above configuration when i try to submit data for login it showing.. "NetworkError: 404 Not Found - http://somedomain.local/user".

#UPDATE:

I just find out that login not working only from www.domainname.local/user path but if this login form in homepage sidebar it works fine, for all of drupal sire in ubuntu machine. With this no error message also not display.

I am in trouble for two of my drupal site in Ubuntu machine. Any help will be appreciated.

  • 写回答

2条回答 默认 最新

  • duanba5777 2015-08-22 12:35
    关注
    1. Check if .htaccess file present in drupal root directory.
    2. Check if you've added your domain to /etc/hosts file

      127.0.0.1 domain.name
      
    3. Domains with 'www' and without it are totally different. Add both to /etc/hosts and to apache's config file to avoid problems.
    4. Clear cache to avoid previous domain name which could be stored in cache.

      drush cc all
      
    5. If you've just added new site to apache's configuration be sure to run:

      sudo service apache2 graceful
      
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 腾讯云如何建立同一个项目中物模型之间的联系
  • ¥30 VMware 云桌面水印如何添加
  • ¥15 用ns3仿真出5G核心网网元
  • ¥15 matlab答疑 关于海上风电的爬坡事件检测
  • ¥88 python部署量化回测异常问题
  • ¥30 酬劳2w元求合作写文章
  • ¥15 在现有系统基础上增加功能
  • ¥15 远程桌面文档内容复制粘贴,格式会变化
  • ¥15 这种微信登录授权 谁可以做啊
  • ¥15 请问我该如何添加自己的数据去运行蚁群算法代码