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.
Note
Each website can only have one source code installed. If you have already uploaded files to the website directory yourself, installing source code will overwrite them. Back up your files before installing.
Accessing Source Code Installation
- Open your site's management page
- Click Install Source Code in the left-hand menu
You will see the installation options available for your website. This menu only appears while the site has no source code installed.
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 (Custom, Laravel or WordPress).
How it works:
- First, upload your source code to the website directory via SFTP/SSH
- Open the site's Install Source Code menu
- Select the
Self Uploadoption - In the Update Site Type dialog, choose your project type from the dropdown:
- Custom - For generic/custom applications or static HTML sites
- Laravel - If you uploaded a Laravel application
- WordPress - If you uploaded a WordPress site
- Click
Update
What happens:
FlashPanelwill mark your site as having source code installed- The Install Source Code menu will be hidden (since the code is already there)
- Features specific to the selected type are enabled (e.g., choosing
WordPressshows the WordPress management page) - 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 it is a WordPress site and show the WordPress management tools for it.
Git Repository
You can install source code from a plain Git repository without using GitHub, GitLab, or Bitbucket integration.
! SSH Key Required
The server needs read access to the Git repository. You can add the server's SSH key to your Git provider, or use a site-specific deploy key (see step 4).
Steps to install from Git:
- Select the
Gitoption - Enter the repository SSH URL in the Repository field (e.g.,
[email protected]:user/project.git) - Enter the branch name in the Branch field (e.g.,
mainormaster) - If you haven't added the server's SSH key to your Git provider, check
Automatically add deployment key (Recommended). The deploy key is shown below; add it to the repository on your Git provider before continuing - 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
GitHuboption - If you have connected several GitHub accounts, choose one in the Git account field
- Select an Organization (or Personal for your personal account). If an organization is missing, click Grant permission to give the app access to it
- Select the repository in the Repository field (click Load to reload the list)
- Select the branch in the Branch field (click Load to reload the list)
- Check
Automatically add deployment key (Recommended) - 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 the GitHub installation (without the organization step), selecting the GitLab option and clicking Install GitLab Repository.
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 the warning Bitbucket access token expired!. Reconnect your Bitbucket account to refresh the token.
Follow the same steps as the GitHub installation (without the organization step), selecting the Bitbucket option and clicking Install Bitbucket Repository.
WordPress
Quickly install the latest version of WordPress on your website.
Steps to install WordPress:
- Select the
WordPressoption - Choose the version in the WordPress Version field
- Enter the site title in the Site Title field
- Enter an admin username in the Username field
- Enter an admin password in the Password field (or click the key icon to generate a random password)
- Enter your email address in the Your Email field
- (Optional) Set a custom Table Prefix (defaults to
wp_). This is useful for running multiple WordPress installations on a single database or for improving security - (Optional) Check
Discourage search engines from indexing this site - (Optional) Select a database user and database (leave blank to auto-create)
- (Optional) Enter commands in the Install Custom Script editor to run after installation (prefix WordPress CLI commands with
$WPCLI) - Click
Install WordPress
Once installation completes, WordPress is ready to use. Visit https://your-domain/wp-admin and log in with the admin account you entered, or use the one-click login button on the WordPress page.
phpMyAdmin
Install phpMyAdmin to manage your databases through a web interface.
Steps to install phpMyAdmin:
- Select the
phpMyAdminoption - Check the
Yes, Do it!confirmation box - 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 Kumaoption - Enter a Port for the app (or keep the default) and check the
Yes, Do it!confirmation box - 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
ImunifyAVoption - Check the
Yes, Do it!confirmation box - 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
Chatwootoption - Enter a Port for the app (or keep the default) and check the
Yes, Do it!confirmation box - 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
n8noption - Enter a Port for the app (or keep the default) and check the
Yes, Do it!confirmation box - 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
Roundcubeoption - Enter the IMAP Host and SMTP Host, and choose a database type
- Click
Install Roundcube Webmail
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 you install source code, the site type is set based on how it was installed (e.g., Git, WordPress, phpMyAdmin...). For Custom, Laravel or WordPress sites, you can switch between these three types from Settings > Update Site Type. See Site settings.
Site types:
- Custom - Generic/custom application
- Laravel - Laravel PHP framework
- WordPress - WordPress CMS
- Git - Installed from a Git repository (cannot be changed manually)
- 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)
- n8n - Workflow automation tool (cannot be changed manually)
- Roundcube - Webmail (cannot be changed manually)