500 Error or Blank on Shared/Cloud Hosting

     
      ▶️ How to Generate Error logs?    

   ✅ Enable error logs ➡ Go to cPanel ➡ MultiPHP INI Editor ➡ Display error_logs.

    ✅ Check error logs ➡ File manager ➡ Website files ➡ View error-logs file.

    ⭐ Run the website and check error_log file. 


     
           ▶️ How to Fix It (Step-by-Step)  

    1️⃣ Index File Check

        ✅ Check what root directory is set for the site (e.g. /home/username/public_html/).

        ✅ Go to your website’s folder in File Manager.

        ✅ Check if index.php or index.html is missing or blank.

        ✅ Check the file's read/execute permissions (e.g. 644 or -rw-r--r--).

        ⭐ Upload a working version or change file permissions if needed.

 

    2️⃣ .htaccess Reset – Could the file be misconfigured?

        ✅ Go to your site’s folder ➡ Rename .htaccess to .htaccess_old ➡ Test the website.

        ⭐ Contact your developer to review the file.

 

    3️⃣ PHP Version Check.

       ✅ Go to cPanel ➡ MultiPHP Manager ➡ Select your domain ➡ Change PHP version.

       ⭐ Try a higher or lower version and test your site.

 

    4️⃣ PHP Memory Limit

        ✅ Go to cPanel ➡ MultiPHP INI Editor ➡ Basic Mode.

        ✅ Select your domain ➡ Set memory_limit to 512M.

        ⭐ Save changes and test your site.

 

    5️⃣ Malware issue: Clean the Malware

        ✅ Log-in to cPanel ➡ Select Monarx security.

        ✅ Go to cPanel ➡ File Manager ➡ Home Directory ➡ .quarantine folder.

        ⭐  It is recommended to check the malicious files with your developer.


     
          ❗ Important Notes     

▪️If your website works in incognito mode but not in a regular tab, the issue might be due to a cached error. Clear your browser cache and try again.

▪️The maximum memory limit on shared hosting is 512M. If your site needs more, you may need to upgrade to a VPS.