Skip to content
Noaman edited this page May 18, 2022 · 6 revisions

Creating a PHP Site

Our Installer currently provides creation of two types of PHP sites.

  • WordPress
  • Laravel

Creating a WordPress site

The wordpress site will come preconfigured already and you will not need to do wordpress setup manually.

create-site-php -u your_first_name -d my_site.com --php 7.4 --wordpress

You can change the --php flag to set a specific PHP version for that specific site/user.

If everything went accordingly you should see your site running and a console message like this

Site Setup succssfull
URL : http://my_site.com
URL(SSL) : https://my_site.com
Complete Path : /home/your_first_name/www


WordPress user: your_first_name
WordPress password: random_password


MySQL Database Credentials
Database name: your_first_name
Database user: your_first_name
Database password: random_password

SFTP/SSH Details
Host: my_site.com
Port: 6000
Username: your_first_name
Password: random_password

This script was initially for managing alot of wordpress sites on a single VPS. There are alot of handy scripts for WordPress. Please refer to Utility Scripts sections for scripts built on top of WP CLI

Creating a Laravel site

The laravel site will have a public folder in its www directory and nginx vhost correctly mapped. You can pass a --horizon flag to auto setup horizon as well as a --scheduler flag to setup cron for laravel scheduler. In future we will allow users to pass a --git flag to auto download repository in www folder to setup laravel project,composer install, php artisan key:generate , php artisan migrate fresh, npm install, npm run build

create-site-php -u your_first_name -d my_site.com --php 7.4 --laravel
Site Setup succssfull
URL : http://my_site.com
URL(SSL) : https://my_site.com
Complete Path : /home/your_first_name/www

MySQL Database Credentials
Database name: your_first_name
Database user: your_first_name
Database password: random_password

SFTP/SSH Details
Host: my_site.com
Port: 6000
Username: your_first_name
Password: random_password
Clone this wiki locally