How to Deploy PicHost PHP Image Hosting Script on Hostinger / cPanel
Step-by-step guide to installing PicHost, configuring Supabase storage, setting up environment variables, and pointing your custom domain in under 10 minutes.

Step-by-step guide to installing PicHost, configuring Supabase storage, setting up environment variables, and pointing your custom domain in under 10 minutes.

Installing a high-performance image hosting script doesn't have to be complicated. In this tutorial, we will walk you through setting up **PicHost PHP Script** on Hostinger or any standard cPanel web hosting.
Before getting started, make sure you have the following ready:
1. Log in to your Hostinger hPanel or cPanel File Manager.
2. Navigate to your `public_html` folder (or sub-domain directory).
3. Upload the `pichost-source.zip` file and extract it directly into the directory.
4. Set folder permissions for `uploads/` and `storage/` to `755`.
chmod -R 755 uploads/chmod -R 755 storage/Open the `.env` file in the root directory and update your database credentials:
APP_NAME="PicHost"APP_ENV=productionAPP_URL=https://img.yourdomain.comDB_CONNECTION=mysqlDB_HOST=127.0.0.1DB_PORT=3306DB_DATABASE=pichost_dbDB_USERNAME=your_db_userDB_PASSWORD=your_secure_passwordNavigate to `https://img.yourdomain.com/install` or run database import via phpMyAdmin using the included `database.sql` file.
💡 **Pro Tip:** Enable Cloudflare CDN in front of your domain for automatic WebP conversion, instant image caching, and free SSL certificate!
Your image hosting service is now live! Users can drag and drop images, generate direct embed links, BBCode, and Markdown snippets instantly. If you run into any issues, hit us up via WhatsApp Support!

Discover the best AI assistants, code generators, and pair programmers that are boosting developer productivity by 3x this year.
An in-depth comparison of Canva Free vs Canva Pro. Learn how background remover, magic resize, and stock video library save hours of graphic design work.