Docs cipi.yml Web panel API MCP Guides Compare GitHub Telegram channel
  1. Docs
  2. Apps
  3. Custom PHP & static sites

Custom PHP & static sites

WordPress, plain PHP and SFTP-only sites.

Apps

Custom apps host anything that isn't Laravel or a Node build: WordPress and other CMSs, plain PHP, static files. Code lives in ~/htdocs, deployed from Git or uploaded over SFTP.

Custom or Laravel?#

Laravel appCustom app
DeployZero-downtime releasesPull into htdocs
Database, .envCreatedAdd one with cipi db create if needed
Workers, schedulerYesNo
GitRequiredOptional (SFTP-only works)

Create one#

bash
# From Git, serving the dist/ folder
cipi app create --custom --user=mysite --domain=mysite.com \
    --repository=git@github.com:you/mysite.git --docroot=dist
# SFTP only: no repository
cipi app create --custom --user=blog --domain=blog.example.com
cipi db create --name=blog              # e.g. for WordPress

Settings#

SettingValue
Document roothtdocs/ or a subfolder (--docroot=public, dist, www)
Nginxindex index.html index.php, try_files $uri $uri/ /index.php?$args, 404.html
SFTP-onlyPlaceholder index.html; upload to ~/htdocs as the app user (SFTP, SCP, rsync)
With Gitcipi deploy mysite pulls the branch into htdocs

Every vhost refuses /cipi.yml and /cipi-*.yml, so a config file committed to the web root is never served.

Questions#

QuestionAnswer
Are custom deploys zero-downtime?No: cipi deploy pulls into htdocs in place. Keep changes backward compatible, or use a Laravel app if you need atomic releases.
How do I run build steps after a pull?List them in deploy.post of cipi.yml.
Can a custom app have cron jobs?Yes, in the app user's crontab (su - mysite, crontab -e).
Step-by-step examples?WordPress, Symfony, WooCommerce.