惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
P
Proofpoint News Feed
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
美团技术团队
D
Docker
博客园 - Franky
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
PHP returning 500 HTTP Error on a parked domain
Timothy Adel · 2026-05-08 · via DEV Community

Timothy Adeleke

The setup

I have a Laravel application running on my primary domain, mainapp.com. The Laravel public/ folder is symlinked to a subfolder in the document root, and a custom .htaccess routes everything through it. I was in the process of consolidating several separately-deployed instances of the same app into one, using Hostinger's parked domain feature so all domains point to a single codebase.


What went wrong

I parked four domains on top of mainapp.com. Three of them — alpha.com, beta.com, and gamma.com — worked immediately. The fourth, delta.com, was broken in a very specific way: static files like .svg and .html loaded just fine, but any .php file returned a blank HTTP 500 error. Not a Laravel error page — a raw server-level 500, before PHP even started.

I tested with the simplest possible file:

<?php echo "Hello World"; ?>

Enter fullscreen mode Exit fullscreen mode

  • mainapp.com/test.php — works fine.
  • delta.com/test.php — 500. No output. No logs.

I ruled out .htaccess because the other three domains share the exact same document root and work perfectly. I deleted and re-added delta.com as a parked domain — no change. I waited over 24 hours — still broken. The error logs for delta.com were completely empty, which itself confirmed the failure was happening before PHP was even invoked.


The actual cause

The root issue is that when Hostinger sets up a parked domain, it has to map that domain alias to a PHP handler. Sometimes — and this seems especially likely when the domain was previously configured as a full standalone website on the same hosting account — that handler mapping gets stale, stuck, or simply never gets properly initialized for the new alias.

It has nothing to do with DNS, nothing to do with your .htaccess, and nothing to do with your app code. The server just isn't handing PHP requests for that specific domain to the PHP processor. Static files bypass the PHP handler entirely, which is why they serve correctly — that's the tell.


The fix

  1. In hPanel, go to Hosting → Manage → PHP Configuration for your primary domain.
  2. You don't need to change the version. Just click Save on the current setting, or change the version and revert.
  3. This forces Hostinger to re-provision the PHP handler, which refreshes the mapping for all parked domains — including the broken one.
  4. Test your test.php on the affected domain. It should work immediately.

Why does this work? Saving the PHP version triggers Hostinger's backend to regenerate the server configuration for your hosting account. This rebinds the PHP handler to all current domains, including parked aliases that were previously missed.


TL;DR

If a parked domain on Hostinger serves static files correctly but returns a server-level 500 on all PHP files, your PHP handler isn't mapped to that domain alias. Fix: Go to the PHP settings for your primary domain in hPanel and change the PHP version and save. Takes about 10 seconds.