douque9982 2013-08-01 17:11
浏览 38
已采纳

在Ubuntu Server 12.04上设置Web应用程序会导致内部服务器错误

I have an existing web application (currently working on Windows 7). I set up a box with Ubuntu Server 12.04 that I wish to host/test my application on. Problem is, when I try to access the app I get an 500 Internal Server Error.

To be sure there is something wrong with the app itself (as opposed to Ubuntu and Apache configurations) I set up a test domain on the Ubuntu Server which I can access from my windows computer without a problem. I then ftp'd the app to this folder.

This app is using Code Igniter. I have changed the config file to reflect any changes that may affect names/paths. I have a database that is set up correctly. Have I forgotten to change anything else that would cause this error when transferring from Windows to Ubuntu?

edit: As suggested by Steve V here is a message I get in my error log when trying to access the site.

[alert] [client xxx.xxx.x.x] THEPATH/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration

  • 写回答

1条回答 默认 最新

  • douxu3732 2013-08-01 17:32
    关注

    Your rewrite engine isn't enabled. Go to shell and do the following:

    a2enmod rewrite
    service apache2 restart
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 关于#java#的问题,请各位专家解答!
  • ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并
  • ¥20 pcf8563时钟芯片不启振
  • ¥20 pip2.40更新pip2.43时报错
  • ¥15 换yum源但仍然用不了httpd
  • ¥50 C# 使用DEVMOD设置打印机首选项
  • ¥15 麒麟V10 arm安装gdal
  • ¥20 OPENVPN连接问题
  • ¥15 flask实现搜索框访问数据库
  • ¥15 mrk3399刷完安卓11后投屏调试只能显示一个设备