500 Internal Server Error는 서버 측에서 발생하는 일반적인 오류로, PHP 애플리케이션에서 자주 발생하는 문제입니다.
chmod 755 /var/www/html
chown www-data:www-data /var/www/html
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
memory_limit = 256M
max_execution_time = 300
tail -f /var/log/apache2/error.log
tail -f /var/log/php_errors.log
ini_set('display_errors', 1);
error_reporting(E_ALL);
<?php
phpinfo();
?>
systemctl restart apache2
systemctl restart php-fpm