简体   繁体   中英

Ubuntu 14.04 apache2 configuration problems

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

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.

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

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?

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.

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.

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

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM