Just a quick image host in PHP
Find a file
2024-06-05 21:31:15 +08:00
html Add docker compose file 2024-05-16 20:59:42 +08:00
docker-compose.yml Add docker compose file 2024-05-16 20:59:42 +08:00
LICENSE Create LICENSE 2024-06-05 21:31:15 +08:00
README.md Update README.md 2024-06-05 21:25:48 +08:00

mini-image-host

Just a quick image host in PHP

Installation

Method 1 (tradional method):

  1. Install PHP 8.x as well as Apache/Nginx/Lighttpd and set php to work with it.
  2. Copy the contents of the html folder to your webroot, default: /var/www/html/
  3. Access it over http/https

Method 2 (docker method):

  1. Clone the repo into your prefered folder
  2. Change to the html directory: cd mini-image-host/html
  3. Get the full path to the html directory: pwd
  4. Change back to the repo's home directory: cd ..
  5. Edit the docker-compose.yml file and replace /home/somik/mini-image-host/html with the full path to your html directory you got in step 3: nano docker-compose.yml
  6. You can also change the default port from 8080 to your prefered port.
  7. Save and exit: Ctrl + x
  8. Start the docker container: docker compose up -d
  9. Access the website by going to yourServerIp:port (default port 8080)