composer create-project codeigniter4/appstarter
php spark serve
- Generate new rsa key pair inside the cpanel terminal
ssh-keygen -t ecdsa -C "dinukasaminda@gmail.com"
cat /home/laviecla/.ssh/id_ecdsa.pub
copy public key
- Add that public key into your github repository as a deploy key
- User cpanel git version control to close repository by ssh link
- Copy code to public folder
cp -r /home/laviecla/repositories/digit-buz-web-php/digit-buz-web/* /home/laviecla/public_html/
- Create .htaccess file in public_html directory
DirectoryIndex /public/index.php
RewriteEngine On
RewriteCond $1 !^(index\.php|assets|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
RewriteRule ^(.*)$ public/$1 [L]
- Install Composer dependencies
cd /home/laviecla/public_html/
composer install