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条)

报告相同问题?

悬赏问题

  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥15 绘制多分类任务的roc曲线时只画出了一类的roc,其它的auc显示为nan
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?