Installation - Quick Guide
Quick guidance on how to self-host an instance.
Preparation
If you already have a server - be it running on Apache or Nginx - and you know some basics of adding one more website to the existing server, you can read this quick guide to set up an instance in 3 mins.
What you need to run an instance properly include:
PHP 7.X (extensions required:
php-curl
,fileinfo
,imagemagick
,exif
)MySQL
SSL (you can easily get it from Cloudflare for free)
A domain (recommend you use a subdomain such as
app.yourcompany.vc
)
You only need to do 3 steps to finish the installation process.
Step 1: Configure the website
Redirect: The website will try to hide the ".php" extension for all the links. Therefore, you need to link https://yoursite.name/abc
to https://yoursite.name/abc.php
.
On a Nginx server, you can add the following lines to your new website configuration block.
Most importantly, we use .env
to save all your configurations. Please make sure .env
file is not accessible by the public.
On a Nginx server, you can add the following line to your new website configuration block.
Using Apache, you can add the following to your .htaccess
file:
PHP: The scripts use short tag <? instead of <?php to start. Therefore, you will need to turnshort_open_tag = On
for your PHP. You also want to increase the upload size limit to allow large attachments uploading. In your php.ini
file, change the settings as shown below.
To allow large attachments uploading (>2M), you also want to update the settings for you Nginx server.
Step 2: Clone the project to your server
To get a copy of this, please contact hello@avocado.vc
to get your API Key/Secret first. Clone the project to your server. Go to your web server root folder (e.g. /var/www
) and run the following command to clone a copy. Replace DOMAIN
, API_KEY
, API_SECRET
with your own ones.
Step 3: Finish installation
Go to your website, and you will be redirected to the installation page automatically if everything works properly. For example, in this case, we can open https://demo.avocado.vc
You will need to set up your super admin account and provide the MySQL database connection information.
Once you have successfully installed, you will be redirected to the login page. You can now login with the super admin account that you just set up. You can also change any setting or customize the site under "Settings" once you log into the platform.
Last updated
Was this helpful?