How to Set Up Automatic IDX Data Sync Using Cron Jobs on Hostinger
Updated 2026-07-02 · Hosting Reviews
Keeping your real‑estate listings up‑to‑date is essential for lead generation, and the easiest way to do that is with an automatic IDX data sync cron job on Hostinger. This guide walks you through the exact tools you need, how to pick the right hosting plan, and the commands to schedule the sync so your property pages always show the latest inventory.
What You Need Before the First Cron Job
To get a real‑estate website running smoothly you’ll need three core components:
- Domain name – Your brand’s address (e.g., yourcityhomes.com). Hostinger sells domains at introductory rates and includes free WHOIS privacy.
- Hosting plan – Shared, Cloud, or VPS depending on traffic expectations. For most agents and small brokerages, a shared plan that costs roughly $3–$7 per month is plenty; larger teams may move to a cloud plan in the $10–$15 range for extra CPU and RAM.
- Website platform – WordPress with an IDX plugin (e.g., IDX Broker, iHomefinder) or a dedicated site‑builder that supports custom code. WordPress is the most flexible and works well with Hostinger’s one‑click installer.
Choosing the Right Hostinger Plan for an IDX‑Heavy Site
IDX feeds can be data‑intensive, especially if you pull dozens of listings every hour. Here’s a quick decision matrix:
- Shared hosting – Good for < 5,000 monthly visitors, modest listing volume, and a budget of $3–$7/month. Hostinger’s shared servers include SSD storage and free SSL, which keeps page load times low.
- Cloud hosting – Handles 5,000–20,000 visitors and higher sync frequency. Prices sit around $10–$15/month and give you isolated resources, which reduces the risk of one site slowing down the whole server.
- VPS – Best for agencies with multiple agents, heavy lead‑capture forms, and custom caching layers. Expect $20+ per month, but you gain root access for fine‑tuned cron scheduling.
For most beginners, start with shared hosting on Hostinger and upgrade once traffic or sync demands outgrow the plan.
Setting Up WordPress and an IDX Plugin
Once your domain and hosting are live, follow these steps:
- Log into the Hostinger hPanel and click the WordPress one‑click installer.
- Enter your site name, admin credentials, and select the domain you just registered.
- After WordPress finishes, log in to the dashboard and navigate to Plugins → Add New.
- Search for your preferred IDX plugin (e.g., “IDX Broker”). Install and activate it.
- Configure the plugin with your MLS credentials and set the default sync interval (most plugins allow hourly, daily, or custom intervals).
Even though the plugin can run a built‑in scheduler, using a server‑side cron job gives you tighter control and avoids missed runs caused by WordPress cron delays.
Creating the Automatic IDX Data Sync Cron Job
Hostinger gives you access to a simple cron manager in hPanel. Here’s how to set up the job:
- Open hPanel → Advanced → Cron Jobs.
- Click Add New Cron Job. Choose the timing you need. For most agents,
0 */2 * * *(every two hours) balances freshness with server load. - In the command field, enter the PHP call that triggers the IDX sync. A typical command looks like:
php /home/username/public_html/wp-content/plugins/idx-broker/sync.php --key=YOUR_API_KEY
Replaceusernamewith your hosting account name andYOUR_API_KEYwith the key supplied by your IDX provider. - Save the job. Hostinger will display the next run time, confirming the schedule is active.
If you’re on a cloud or VPS plan, you can also edit the crontab directly via SSH (Hostinger provides a web‑based SSH terminal). The same command works; just add it to crontab -e.
Speed, Security, and Lead Capture Essentials
Even with a solid cron job, your site needs fast loading times and protection against bots that can scrape listings. Implement these basics:
- Free SSL – Hostinger automatically provisions Let’s Encrypt certificates, ensuring all data (including lead forms) travels over HTTPS.
- Caching plugin – Install a lightweight cache like WP Super Cache or LiteSpeed Cache. Set the cache to purge after each IDX sync so new listings appear instantly.
- Image optimization – Use a plugin such as Smush or ShortPixel to compress property photos without losing quality. This reduces bandwidth and improves Core Web Vitals.
- Lead capture forms – Most IDX plugins include built‑in contact forms. Connect them to your CRM or email marketing service via webhook for instant follow‑up.
- Security hardening – Enable Hostinger’s built‑in firewall, limit login attempts, and keep WordPress core and plugins updated.
These steps keep page speed in the 2‑second range—crucial for local search rankings and user conversion.
Testing and Monitoring the Sync
After the cron job is live, do a quick sanity check:
- Manually run the command from the SSH terminal:
php /home/username/public_html/wp-content/plugins/idx-broker/sync.php --key=YOUR_API_KEY. - Visit a few listing pages and verify new properties appear within a minute.
- Check the plugin’s log (usually under IDX → Sync Log) for any error messages.
- Set up a simple email alert using a plugin like WP Crontrol to notify you if a sync fails.
With the job verified, you can relax knowing your listings stay fresh without manual effort.
FAQ
Do I need a dedicated server for IDX syncing?
No. Shared hosting on Hostinger handles typical IDX loads for single agents or small brokerages. Move to cloud or VPS only if you exceed a few thousand monthly visitors or run multiple simultaneous sync processes.
Can I change the sync frequency later?
Absolutely. Edit the cron schedule in hPanel at any time. Just remember that very frequent (e.g., every 5 minutes) jobs can increase CPU usage and may breach your hosting plan’s resource limits.
What happens if the cron job fails?
If the command returns an error, the plugin’s log will capture it. Setting up email alerts or using a monitoring service ensures you’re notified early, so you can re‑run the sync or adjust credentials.