在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
我有一个现有的Web应用程序(目前正在使用Windows 7)。 我设置了一个Ubuntu Server 12.04的盒子,我希望在其上托管/测试我的应用程序。 问题是,当我尝试访问应用程序时,我收到500内部服务器错误。 p>
确保应用程序本身出现问题(与Ubuntu和Apache配置相反) 在Ubuntu服务器上设置一个测试域,我可以从我的Windows计算机上访问它,没有任何问题。 然后我将应用程序ftp到此文件夹。 p>
此应用程序正在使用Code Igniter。 我更改了配置文件以反映可能影响名称/路径的任何更改。 我有一个正确设置的数据库。 从Windows转移到Ubuntu时,我是否忘记更改会导致此错误的任何其他内容? p>
编辑:正如Steve V所建议的,这是我在尝试的错误日志中收到的消息 访问该站点。 p>
[alert] [client xxx.xxx.xx] THEPATH / .htaccess:无效命令'RewriteEngine',可能拼写错误或由服务器配置中未包含的模块定义 p> div>
Your rewrite engine isn't enabled. Go to shell and do the following:
a2enmod rewrite
service apache2 restart