Source Code Installation
Once your website has been created in FlashPanel
, you can install source code and applications to it. This page shows all available source code installation options.
! Important Note
Note that each website can only be installed with one source code. If you install the source code on top of the source code uploaded manually, it will be overwritten. Please make sure you have backed up your files before installing the source code.
Accessing Source Code Installation
- Navigate to your site management console
- Click on the
Source Code
menu in the sidebar
You will see various installation options available for your website.
Installation Options
Self Upload
The Self Upload
option is used when you have already manually uploaded your source code to the server via SFTP, SSH, or any file transfer method, and want to declare this to FlashPanel
.
Purpose: This feature allows you to inform FlashPanel
that you have manually uploaded your source code and specify what type of application it is (WordPress, Laravel, or Any).
How it works:
- First, upload your source code to the website directory via SFTP/SSH
- Navigate to the
Source Code
section in your site management console - Select the
Self Upload
option - Choose your project type from the dropdown:
- Any - For generic/custom applications or static HTML sites
- Laravel - If you uploaded a Laravel application
- WordPress - If you uploaded a WordPress site
- Other types as available
- Click
Update
What happens:
FlashPanel
will mark your site as having source code installed- The
Source Code Settings
section will be hidden from the interface (since the code is already there) FlashPanel
will configure Nginx/Apache settings appropriately based on your selected project type- No automatic deployment or Git integration will be configured
Example use case: You have a WordPress site that you downloaded and customized on your local machine. You upload all the files via SFTP to your server, then use Self Upload
with project type WordPress
to let FlashPanel
know what type of site it is, so the system can optimize server configurations accordingly.
Git Repository
You can install source code from a plain Git repository without using GitHub, GitLab, or Bitbucket integration.
! SSH Key Required
Before installing from a Git repository, you need to add the FlashPanel
SSH key to your Git provider manually.
Steps to install from Git:
- Select the
Git
option - Enter the repository SSH URL (e.g.,
[email protected]:user/project.git
) - Enter the branch name (e.g.,
main
ormaster
) - Choose whether to
Automatically add deployment key (Recommended)
if you haven't registered a server global key - Optionally enable
Automatically install Composer dependencies
to runcomposer install
after pulling code - Click
Install Git Repository
GitHub
Install source code directly from your GitHub repositories with full integration support.
! GitHub Connection Required
Before installing from GitHub, you must first connect your GitHub account with FlashPanel
.
Steps to install from GitHub:
- Select the
GitHub
option - Select an organization (or personal account)
- Load and select your repository from the dropdown
- Load and select the branch you want to deploy
- Choose whether to
Automatically add deployment key (Recommended)
- Optionally enable
Automatically install Composer dependencies
- Click
Install GitHub Repository
The system will automatically load your organizations, repositories, and branches for easy selection.
GitLab
Install source code from your GitLab repositories with the same features as GitHub integration.
! GitLab Connection Required
Before installing from GitLab, you must first connect your GitLab account with FlashPanel
.
Follow the same steps as GitHub installation, selecting the GitLab
option instead.
Bitbucket
Install source code from your Bitbucket repositories.
! Bitbucket Connection Required
Before installing from Bitbucket, you must first connect your Bitbucket account with FlashPanel
.
! Token Expiration
If your Bitbucket access token has expired, you will see a warning message. Simply reconnect your Bitbucket account to refresh the token.
Follow the same steps as GitHub installation, selecting the Bitbucket
option instead.
WordPress
Quickly install the latest version of WordPress on your website.
Steps to install WordPress:
- Select the
WordPress
option - Choose the WordPress version from the dropdown
- Enter the site title
- Enter an admin username
- Enter an admin password (or click the key icon to generate a random password)
- Enter your email address
- Optionally check
Discourage search engines from indexing this site
- Optionally select a database user and database (leave blank to auto-create)
- Optionally add custom installation scripts (use
$WPCLI
before WordPress CLI commands) - Click
Install WordPress
After installation completes, visit your website domain to complete the WordPress setup from your browser.
! WordPress Security
You should proceed with WordPress installation immediately after FlashPanel
has installed it, so that it is secured with your username and password. You can also create a new Security Rule before installing WordPress so that your installation is password protected.
phpMyAdmin
Install phpMyAdmin to manage your databases through a web interface.
Steps to install phpMyAdmin:
- Select the
phpMyAdmin
option - Click
Install phpMyAdmin
Once installed, you can access phpMyAdmin through your website domain and log in using any of your database usernames and passwords.
Uptime Kuma
Install Uptime Kuma, a self-hosted monitoring tool for your websites and services.
Steps to install Uptime Kuma:
- Select the
Uptime Kuma
option - Configure the installation settings
- Click
Install Uptime Kuma
For detailed instructions, see the Uptime Kuma tutorial.
ImunifyAV
Install ImunifyAV, a powerful antivirus and security scanner for your website.
Steps to install ImunifyAV:
- Select the
ImunifyAV
option - Configure the installation settings
- Click
Install ImunifyAV
For detailed instructions, see the ImunifyAV tutorial.
Chatwoot
Install Chatwoot, an open-source customer engagement platform.
Steps to install Chatwoot:
- Select the
Chatwoot
option - Configure the installation settings
- Click
Install Chatwoot
For detailed instructions, see the Chatwoot tutorial.
n8n
Install n8n, a workflow automation tool that connects your apps and services.
Steps to install n8n:
- Select the
n8n
option - Configure the installation settings
- Click
Install n8n
For detailed information, see the n8n documentation.
Roundcube Webmail
Install Roundcube, a browser-based IMAP client with an application-like user interface.
Steps to install Roundcube:
- Select the
Roundcube Webmail
option - Configure the installation settings
- Click
Install Roundcube
For detailed information, see the Roundcube documentation.
After Installation
Once you have installed your source code, you can:
- Configure deployments to automatically pull updates from your repository
- Set up SSL certificates for secure HTTPS access
- Configure Nginx settings for your website
- Set up environment variables for your application
Changing Site Type
After installing certain applications (like WordPress or Laravel), FlashPanel
will automatically detect and set your site type. You can also manually update your site type by selecting Self Upload
and choosing the appropriate project type from the dropdown.
Available site types:
- Any - Generic/custom application
- Laravel - Laravel PHP framework
- WordPress - WordPress CMS
- phpMyAdmin - Database management (cannot be changed manually)
- Chatwoot - Customer engagement platform (cannot be changed manually)
- Uptime Kuma - Monitoring tool (cannot be changed manually)
- ImunifyAV - Antivirus scanner (cannot be changed manually)