This guide provides step-by-step instructions for hosting the FormFarm application on Hostinger.
- Active Hostinger account with hosting plan
- SSH access enabled (available on most Hostinger plans)
- Git installed locally (optional but recommended)
- FileZilla or similar FTP client
- Log in to your Hostinger dashboard
- Navigate to Hosting → Select your hosting account
- Go to Advanced → SSH Access and ensure it's enabled
- Note your SSH credentials:
- Host: Your server address (usually shown in hPanel)
- Username: SSH username (from hPanel)
- Password: SSH password (from hPanel)
- In hPanel, go to File Manager
- Navigate to the
public_htmldirectory - Upload all FormFarm files to this directory
- Ensure the folder structure matches the project layout
- Open FileZilla
- Create a new site with Hostinger's FTP credentials:
- Host: Your FTP server address
- Username: FTP username
- Password: FTP password
- Port: 21 (standard FTP) or 22 (SFTP)
- Connect and upload all FormFarm files to
public_html/
-
In hPanel, go to Databases → MySQL
-
Create a new database:
- Database name:
formfarm_db - Username: Create new user or use automatic
- Password: Generate a strong password
- Database name:
-
Note the database credentials
-
Import the database schema:
- Go to Database Manager → phpMyAdmin
- Select your newly created database
- Go to Import tab
- Upload
database/migrations/schema.sql - Click Import
- Update
config/database.phpwith Hostinger database credentials:
define('DB_HOST', 'your-hostinger-mysql-host');
define('DB_USER', 'your_db_username');
define('DB_PASS', 'your_db_password');
define('DB_NAME', 'formfarm_db');- Update
public/index.phpif needed to match your environment
Create a .htaccess file in the public/ directory:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>SSH into your server:
ssh your_username@your_hostinger_hostSet proper permissions:
chmod 755 /home/your_username/public_html/
chmod -R 755 /home/your_username/public_html/storage/
chmod -R 755 /home/your_username/public_html/storage/logs/
chmod -R 755 /home/your_username/public_html/storage/cache/- Navigate to your domain in a browser:
https://yourdomain.com - If you see the home page, congratulations! Your site is live
- Test the login/register functionality
- Check the logs in
storage/logs/for any errors
- Check
storage/logs/for error messages - Verify
config/database.phpcredentials - Ensure
.htaccessis in the correct location - Verify extensions are enabled in PHP settings
- Verify database host, username, and password in
config/database.php - Ensure database user has proper privileges
- Check if MySQL is running in hPanel
- SSH into the server and verify permissions with
ls -la - Re-run the
chmodcommands from Step 6
- Configure SMTP in
app/helpers/MailHelper.php - Update with Hostinger's SMTP credentials (usually found in hPanel)
- Enable "Less secure app access" if using Gmail as provider
- Enable caching in Hostinger (hPanel → Performance)
- Enable Gzip compression
- Set up SSL/TLS certificate (Hostinger provides free Let's Encrypt)
- Use Hostinger's CDN if available on your plan
- In hPanel, go to Security → SSL Certificates
- Select your domain
- Click Manage → Install (for free Let's Encrypt)
- Wait for installation to complete
- Update your site URL in config files if necessary
- Backups: Set up automatic backups in hPanel
- Updates: Keep PHP version updated
- Monitor: Check logs regularly for issues
- Security: Regularly update permission settings
- Hostinger Support: Available 24/7 in hPanel
- FormFarm Issues: Check README.md for project documentation
- Database Questions: Visit Hostinger's knowledge base
Last Updated: March 2026