pierobot / mangapie

This is a self-hosted server for archived manga.
BSD 3-Clause "New" or "Revised" License
63 stars 9 forks source link

some suggestions for "Installation (LEMP Ubuntu and Debian)" #210

Closed donotos closed 4 years ago

donotos commented 4 years ago

Hi.

I just reinstalled mangapie on a fresh debian 10 LEMP.

I have some suggestions to improve the wiki page.

In: Install required packages to build php modules:

I had a "not found" for "build-essentials" because it's "build-essential"

In: Configure, build, and install php-rar

add "cd ./php-rar/"

In: php-gd or php-imagick and: redis-server and: inotify > end_of_page

use <code> for the command syntax

In: DBMS MySQL Install MySQL or MariaDB server.

change to:

You can choose to install either one. I recommend "your_recommendation" sudo apt-get install mysql-server or sudo apt-get install mariadb-server Then use the helper to improve security for both mysql and mariadb mysql_secure_installation

In: Create a user and database

add the recommendation: "don't forget to change 'password' for something more secure"

Separate in 2 parts since it can't be done all at once

mysql -u root -p create database mangapie; create user 'mangapie'@'localhost' identified by 'password'; grant all privileges on mangapie.* to 'mangapie'@'localhost'; flush privileges; quit

actually, you can do it in one line: sudo mysql -u root -p -e "create database mangapie; create user 'mangapie'@'localhost' identified by 'password'; grant all privileges on mangapie.* to 'mangapie'@'localhost'; flush privileges;"

in: web server nginx add: sudo mkdir -p /etc/nginx/certs

pierobot commented 4 years ago

I've updated the guide with what you suggested except the last part.

sudo mkdir -p /etc/nginx/certs

Do you mean to just add the -p? Did you have problems without it?

donotos commented 4 years ago

no, i just use it all the time and it's not useful here because there is only 1 folder to be created.

If you go for the 1 line route with the mysql command you need to add ; after quit

Edit: my bad i was the one to forget it in my initial post 👎

pierobot commented 4 years ago

:+1: done