How to Install ImgURL 2.x Image Hosting on Baota Panel

install imgurl 2.xbaota panel image hostingimagemagick extensionfileinfo extensionnginx rewrite rules
Published·Modified·

ImgURL is an open-source, free image hosting program. Since version 2.x, ImgURL has higher environmental requirements, particularly for ImageMagick component support. Many users are unclear about how to install this component. This article shares the process of installing ImgURL 2.x on a Baota panel, including all necessary components for ImgURL 2.x.

Preparation

  1. Ensure Baota panel is already installed.
  2. Create a site in the Baota backend.
  3. Download ImgURL 2.x, upload it to the site root directory, and unzip it.

Configure Pseudo-static Rules

If you are using Apache in your Baota panel, you do not need to set pseudo-static rules; skip this step. If you are using an Nginx environment, continue reading.

Find the corresponding site, click the Settings button, go to Pseudo-static, and add the following rules:

location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~* \.(db3|json)$ {
  deny all;
}
location ~* ^/(temp|upload|imgs|data|application|static|system)/.*.(php|php5)$ {
    return 403;
}

Install fileinfo & imagemagick

In the Baota backend, go to Software Management, find the PHP version corresponding to your site, click Settings, then Install Extensions. Check fileinfo and imagemagick, as shown in the screenshot below.

Install ImgURL 2.x

Other required extensions are supported by default in Baota. The key is to install fileinfo and imagemagick. After the extensions are installed, you can visit your domain to install ImgURL. If successful, you will see the ImgURL installation interface.

Additional Notes

  • If you encounter any issues during installation, please leave a comment or provide feedback on the 3T Official Community.
  • For more usage instructions on ImgURL, please refer to the help documentation: https://dwz.ovh/imgurldoc.
  • Open source is not easy. If you find ImgURL useful, please visit here to donate.