Deploying a custom PHP application
Developer Guides
This guide covers deploying any custom PHP application (not WordPress or Laravel) to TransPark.
1. Create your site
- Dashboard → Add Site → Select PHP
- Enter your domain → Create
You get: PHP 8.2, MySQL database, SFTP access, and an SSL certificate.
2. Upload your files
Via SFTP:
| Field | Value |
|---|---|
| Host | yoursite-com.transpark.tech |
| Port | 22 |
| Username | [siteuser from creation] |
| Password | [password from creation] |
Upload to: /home/[siteuser]/htdocs/[domain]/
Via Git:
ssh [siteuser]@yoursite-com.transpark.tech cd /home/[siteuser]/htdocs/[domain] git clone https://github.com/your/repo.git .
3. Database access
Your MySQL credentials were shown at creation. Connect with:
mysql -h 127.0.0.1 -u [db_user] -p [db_name]
Or use phpMyAdmin/Adminer through CloudPanel (SSO from your dashboard).
4. PHP configuration
PHP 8.2 is pre-configured with sensible defaults. To customize settings, create a .user.ini in your document root:
upload_max_filesize = 64M post_max_size = 64M max_execution_time = 300 memory_limit = 256M
5. Composer dependencies
If your project uses Composer:
cd /home/[siteuser]/htdocs/[domain] composer install --no-dev
File permissions
Files should be owned by your site user. If you need to write to a directory (uploads, cache):
chmod 775 /path/to/writable/directory