HTTP ERROR 500 - CodeIgniter cPanel - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: Issues (https://forum.codeigniter.com/forumdisplay.php?fid=19) +--- Thread: HTTP ERROR 500 - CodeIgniter cPanel (/showthread.php?tid=87717) |
HTTP ERROR 500 - CodeIgniter cPanel - juta - 05-23-2023 Hi everyone, I've deployed based on CodeIgniter "Hospital Care - Hospital Management System + Patient App - 7 August 2022", but while I try to open it shows me this error: This page isn’t working. mydomain.com is currently unable to handle this request. HTTP ERROR 500 Note: mydomain.com is my domain hosted on cPanel. I see there are 3 .htaccess files: 1. /.htaccess 2. /application/.htaccess 3. /system/.htaccess Iside those 3 files are these lines of codes: 1. /.htaccess: <IfModule mod_rewrite.c> Options +FollowSymLinks Options +SymLinksIfOwnerMatch Options -Indexes RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule> 2. /application/.htaccess: <IfModule authz_core_module> Require all denied </IfModule> <IfModule !authz_core_module> Deny from all </IfModule> 3. /system/.htaccess: <IfModule authz_core_module> Require all denied </IfModule> <IfModule !authz_core_module> Deny from all </IfModule> Right now I'm able only to access login page: https://mydomain.com/clinical/auth/login (by using 1. /.htaccess) I'm not able to access homepage: https://mydomain.com/clinical Also, I'm not able to access links like: https://mydami/clinical/patient/medicalHistory?id=16 or https://mydomain.com/clinical/finance/patientPaymentHistory?patient=16 or http://mydomain.com/clinical/appointment/todays . All of above links shows me same error that I've mentioned above. Note: I've deployed this web app locally on my pc using XAMPP, everything works perfectly. Could you please support me to resolve this issue on cPanel? Best Regards, Juta RE: HTTP ERROR 500 - CodeIgniter cPanel - gregbowers - 07-03-2023 Hello To resolve the "HTTP ERROR 500" issue on your cPanel hosting for your CodeIgniter-based Hospital Care application, you can try the following steps: -Check error logs. -Verify file permissions. -Check PHP version and configuration. -Confirm mod_rewrite module is enabled. -Double-check .htaccess files. -Clear cache. -Contact hosting support if the issue persists. These steps should help you identify and resolve the problem. RE: HTTP ERROR 500 - CodeIgniter cPanel - gosocial2 - 07-03-2023 Can you share the contents of your <projectdir>/writeble/logs/<todays.log> from the hosting ? RE: HTTP ERROR 500 - CodeIgniter cPanel - JustJohnQ - 07-03-2023 Did you make any changes to the .env or config files after you moved the folder from your Xampp environment to your server? If so, which changes? |