First, we need to prepare an email address and register for a free hosting service at https://www.serv00.com. I won’t go into detail about how to register for serv00 virtual hosting.

Next, I will explain how to set up your own image hosting using serv00’s free hosting.

First, enter the provided remote panel URL: https://panel4.serv00.com/login.

After logging in, navigate to WWW websites.

Step 1

Then, click on Add new website.

Step 2

In the new page, click on Advanced settings, select PHP, and input the domain name you want to use. In this example, I used img.shuo.serv00.net, then click Add.

Step 3

After adding it, click Manage SSL certificates.

Step 4

Click Manage next to the Exit IP.

Step 5

Then click Add certificate.

Step 6

On the new page, select Generate Let’s Encrypt certificate as the type.

Step 7

After completing these steps, connect to the server via SSH.

Log in and navigate to the domain you just created.

$ cd domains/img.shuo.serv00.net/  # Replace with your domain

Then execute the following commands:

release_info=$(curl -s https://api.github.com/repos/lsky-org/lsky-pro/releases/latest)
asset_url=$(echo "$release_info" | jq -r '.assets[] | select(.name != "source code") | .browser_download_url')
curl -L -o temp.zip "$asset_url" && unzip -q temp.zip && rm -f temp.zip
rm -rf public_html && ln -s "$PWD/public" "$PWD/public_html"

After executing these commands, we can check the directory contents by running ls:

app                bootstrap          composer.lock      database           lang               logs               package.json       public             README.md          routes             tailwind.config.js vendor
artisan            composer.json      config             installed.lock     LICENSE            package-lock.json  phpunit.xml        public_html        resources          storage            tests              webpack.mix.js

Then we return to the panel, navigate to the WWW websites page, select the domain we just created, and click Manage.

Manage Domain

In the popup window, find Open Basedir directories, and append :/usr/home/[username]/domains/xxx.USERNAME.serv00.net (remember to replace [username] and the domain with your own details).

Then enable GZIP compression, Allow PHP eval() function, and Allow PHP exec() function (whether to force SSL is optional, but I enabled it), and click Save Changes.

Save Changes

Next, we create a new MySQL database by clicking on MySQL in the sidebar and choosing Add database.

Add Database

After creating the database, open a new browser tab and visit the domain we just created to start the Lsky Pro image hosting installation.

Remember to use the server address from the panel’s MySQL section instead of 127.0.0.1.

Installation

If images cannot be accessed after uploading and you receive a 403 error,

403 Error

it is likely due to insufficient permissions. Set the directory permissions to 755.

chmod -R 755 /path/to/directory

Here is an example of a hosted image: