php-gallery/README.md

39 lines
1.3 KiB
Markdown
Raw Normal View History

2022-07-28 19:42:23 +00:00
# OnlyLegs!
2022-09-15 11:22:06 +00:00
The only gallery made by a maned wolf.
2022-07-26 22:49:15 +00:00
2022-09-15 11:22:06 +00:00
## How to use
### Downloading & installing
#### Path
Download this project and move it into your website(s) folder. Usually under ```/var/www/html/``` on Linux.
2022-07-27 18:55:15 +00:00
2022-09-15 11:22:06 +00:00
#### Imagik
You will need to install the image-magik PHP plugin for thumbnail creation, on Ubuntu its as easy as ```apt install php-imagik```.
2022-07-27 18:55:15 +00:00
2022-09-15 11:22:06 +00:00
#### PHP
This project also requires PHP 8 and was made with Ubuntu 22.04 LTS in mind, so I reccommend running this gallery on such.
### Database setup
If you made it this far, congrats! We're not even close to done. Next you will need to setup your database. If you're running a seperate server for databases, that'll also work.
You first need to head over to ```app/server/conn.php``` and set the correct information, if you're using localhost, this should be the following details:
- localhost
- (username)
- (password)
- Gallery
I recommend using a database name such as Gallery, but others should work just as well.
I also recommend not using root for this and setting up a user specifically for this, but I will not go through the process of making a such user here.
You will next need to setup the following 5 tables:
- images
- users
- tokens
- logs
- bans
## License
2022-07-26 22:49:15 +00:00
This project is under the GNU v3 License