Bicrypto Installation Guide

Setting up Bicrypto on a Virtualmin-managed server using Apache

This guide will walk you through setting up Bicrypto on a Virtualmin-managed server using Apache. The steps include uploading the Bicrypto zip file to your public_html folder, configuring Apache directives, and running the automated installer script.


Preliminary Step: Download Bicrypto Zip from Envato

Download the Bicrypto zip file from your Envato account before proceeding.


Step 1: Upload the Zip File

Navigate to public_html in your Virtualmin File Manager (or via SFTP/SSH) and upload the Bicrypto zip file.

Upload zip file to public_html

Step 2: Extract the Zip File

Once uploaded, right-click on the Bicrypto zip file and choose Extract (or use SSH command unzip <filename.zip>).

Extract zip file

Step 3: Overwrite Existing Files (If Prompted)

If you see a prompt asking to overwrite existing files, click Yes. This ensures all relevant files are updated.

Overwrite existing files

Step 4: Configure SSL Website (Apache Directives)

In Virtualmin, navigate to Web Configuration > Configure SSL Website > Edit Directives.

Configure SSL Website

Note: if you are using NGINX then follow these steps instead NGINX Configuration and then continue from Step 7


Step 5: Add the Apache Configurations

After the line DirectoryIndex, add the following configurations. Then, click Save and Close.

Protocols h2 http/1.1
ProxyPreserveHost On
KeepAlive On
KeepAliveTimeout 3
MaxKeepAliveRequests 500
ProxyTimeout 150
AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript
ProxyPass /api/docs http://localhost:4000/api/docs
ProxyPassReverse /api/docs http://localhost:4000/api/docs

ProxyPass /api http://localhost:4000/api
ProxyPassReverse /api http://localhost:4000/api

RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule ^/api/(.*) ws://localhost:4000/api/$1 [P,L]

ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/

<Proxy "http://localhost:4000/">
ProxySet max=70000
</Proxy>
Apache configurations

Step 6: Configure Website (Same Apache Directives)

Return to Web Configuration > Configure Website > Edit Directives and repeat the same configuration from Step 5. Save and close.


Step 7: File Manager – Copy Path to Clipboard

Open File Manager, right-click on any file or folder, then choose Copy, followed by Copy Path to Clipboard. You'll need this path shortly.

Copy path to clipboard

Step 8: Open Root Terminal

Scroll down in the left sidebar of Virtualmin (or the top menu) to find the Root Terminal option. Click to open it.

Open root terminal

Step 9: Navigate to public_html

Paste the path you copied in step 7 to enter the Bicrypto folder. For example:

cd /path/to/public_html

Replace /path/to/public_html with your actual path from the clipboard.

Navigate to public_html

Step 10: Run the Automated Installer

Install dos2unix, convert the script if necessary, and run installer.sh:

sudo apt install dos2unix
dos2unix installer.sh
chmod +x installer.sh
sudo bash installer.sh
Run automated installer

Step 11: Provide Site URL and Database Info

The installer will ask for your site URL. Enter it in the format https://domain.com without a trailing slash. It will also prompt for:

Provide site URL and database info

Step 12: Finish and Get Default Credentials

After the installer completes, it will display default credentials for the super admin user. Important: Update the super admin email via phpMyAdmin or another database tool (e.g., TablePlus).

Default credentials

Step 13: Close Root Terminal and Edit Virtual Server

Click the X to close the Root Terminal. Then return to your Virtualmin interface to edit the virtual server if needed.

Close root terminal

Step 14: Adjust Quotas (If Available)

In Edit Virtual Server, if you see Quotas and Limits, set both Total and Server quota to Unlimited. If you do not see this, you may skip this step.

Adjust quotas

Step 15: Return to File Manager

Back in Virtualmin, open the File Manager again.

Return to file manager

Step 16: Adjust File Ownership

Right-click on any folder/file that isn't owned by root:root and choose Select All from the top notification to ensure all necessary files are selected.

Adjust file ownership

Step 17: Confirm Selection of All Pages

Click Yes on the top notification to select all files across all pages in the File Manager (if applicable).

Confirm selection

Step 18: Change Properties

Right-click on any file that doesn't have root:root as the owner, then choose Properties to change file ownership.

Change properties

Step 19: Assign Correct Ownership

In the Username and Group Name fields, specify the correct Virtualmin user and group. This will trigger a Recursive checkbox – check it, then click Change to apply it to all subdirectories and files.

Assign correct ownership

Step 20: Open the User Terminal

Below the File Manager, you'll see a User Terminal. Click to open it, then navigate again to public_html:

cd public_html
Open user terminal

Step 21: Install Dependencies (Frontend)

Run pnpm install to install frontend dependencies for Bicrypto. If prompted for confirmation, press Enter.

pnpm install
Install dependencies

Step 22: Start the Application

Finally, start the Bicrypto application:

pnpm start

Wait about 20 seconds for the build and server to initialize. Your site should then be accessible at the domain you configured.

Start application

Additional Notes & Suggestions