Ubuntu的14.04 Apache2的配置问题 [英] Ubuntu 14.04 apache2 configuration problems

查看:146
本文介绍了Ubuntu的14.04 Apache2的配置问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我已经设置好的了一个Ubuntu 14.04与PHP5,Apache2的,MySQL的/ MySQL的,PHP

yesterday i've setted up an Ubuntu 14.04 with php5, Apache2, mysql / mysql-php

现在我尝试访问我的网页 - 第一次我拥有我的无功/ WW-directiory的所有文件,我的网页的炫魅的工作。 Iǘe登录页面(自写CMS),没有什么工作now.Chrome告诉我内部服务器错误(500)。但他们都显示没有错误。

Now i try to access my pages - first i've owned all files in my var/ww-directiory, the mainpage of my page worked. Iǘe logged in in the page (self written cms), nothing working now.Chrome tells me an Internal Server-Error (500). but they are no errors displayed.

我试着改变php.ini中显示错误,但所做的更改将被忽略。

I've tried to change the php.ini to display errors, but the changes will be ignored.

使用服务的Apache2停止

With service apache2 stop

我已经停止了服务器,但是服务器是否正在运行... 我有什么做的,看看我的错误,并停在顶部的服务器?

i have stopped the server, but the server is running... What i have to do to see my errors and top stop the server?

在XAMPP(于Windows XP / Windows 7中,展位)的页面workes罚款。该网页是在使用一个真正的服务器上,有它工作正常了。

In xampp (windows xp / windows 7, booth) the page workes fine. The page is in use on a real server, there it works fine too.

我的.htaccess似乎被忽略(路由引擎)。 如果我填满我的index.php用的Hello World(并没有什么其他的)它不工作了。 但似乎PHP是正确加载我的应用程序,它开始的会话(见于饼干),这是开始在其他文件,它包含从index.php文件。

My .htaccess seems to be ignored (routing engine). If i fill my index.php with "Hello World" (and nothing other) it doesnt work too. But it seems that php is loading my application correctly, it started the session (seen at the cookies) which is started in other file, which is included from index.php.

推荐答案

这是内部服务器错误可能是由于您的配置文件中有一些错误。这可以是 apache2.conf (或得到加载任何其他Apache配置文件)或的php.ini (或任何PHP装载额外的配置文件)。

An Internal Server Error is probably due to some mistake in your configuration files. That could be either apache2.conf (or any other apache configuration files that get loaded) or php.ini (or any of the additional config files that php loads).

顺便说一句,的.htaccess 文件默认情况下禁用,你需要使用的Apache明确启用它们的AllowOverride

By the way, .htaccess files are disabled by default, and you need to explicitly enable them using apache directive AllowOverride.

另一个要注意的是,在Ubuntu 14.04,你可能会使用Apache 2.4。有一些细微的差别。第一个我注意到里面该网站定义文件站点可用现在需要在 .conf文件结束。

Another thing to notice is that, in ubuntu 14.04, you're probably using apache 2.4. There's some slight differences. The first one I've noticed is that site definition files inside sites-available need to end in .conf now.

您可以测试你的配置错误使用 apachectl中configtest (在Linux上)。

You can test you config for errors using apachectl configtest (on linux).

这篇关于Ubuntu的14.04 Apache2的配置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆