Thứ Bảy, 1 tháng 6, 2013

Fix bug "Internal Server Error" in local machine

"Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log."



when you get a bug like this, check your apache server in 2 steps:

- Step 1 : enable apache mod_rewrite on ubuntu
run command : sudo a2enmod rewrite



- Step 2 : Turn on error reporting in php

gedit /etc/php5/apache2/php.ini

in php.ini (probably different for php and cli)

error_reporting = E_ALL
display_errors = 1

Không có nhận xét nào:

Đăng nhận xét

Học lập trình web căn bản với PHP

Bài 1: Các kiến thức căn bản Part 1:  https://jimmyvan88.blogspot.com/2012/05/can-ban-lap-trinh-web-voi-php-bai-1-cac.html Part 2:  https://...