Welcome Guest, Not a member yet? Register   Sign In
HTTP ERROR 500 - CodeIgniter cPanel
#1

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/pa...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
Reply
#2

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.
Reply
#3

Can you share the contents of your <projectdir>/writeble/logs/<todays.log> from the hosting ?

CodeIgniter Wizard (CRUD code generator for Mac) instantly scaffolds Bootstrap-based web applications with an administrative interface (admin templates include Bootstrap5)

Reply
#4

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?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB