Updated markdown
parent
2b09b736cb
commit
60eac6dcc6
26
README.md
26
README.md
|
@ -198,39 +198,39 @@ The same for securing your server and making sure it doesn't blab.
|
||||||
|
|
||||||
Update your system and install needed components:
|
Update your system and install needed components:
|
||||||
|
|
||||||
# apt update && apt upgrade -y
|
``` apt update && apt upgrade -y```
|
||||||
# apt install -y php php-json php-mbstring php-sqlite3 php-fpm nginx
|
``` apt install -y php php-json php-mbstring php-sqlite3 php-fpm nginx```
|
||||||
|
|
||||||
Make directories:
|
Make directories:
|
||||||
|
|
||||||
# mkdir -p /srv/endboard /etc/opt/endboard /var/opt/endboard
|
``` mkdir -p /srv/endboard /etc/opt/endboard /var/opt/endboard```
|
||||||
|
|
||||||
Distribute files to webroot (from directory of the endboard archive):
|
Distribute files to webroot (from directory of the endboard archive):
|
||||||
|
|
||||||
# cp -rv ./srv/* /srv/endboard/
|
``` cp -rv ./srv/* /srv/endboard/```
|
||||||
|
|
||||||
Distribute config file to etc (from directory of the endboard archive):
|
Distribute config file to etc (from directory of the endboard archive):
|
||||||
|
|
||||||
# cp -v ./etc/config.php /etc/opt/endboard/
|
``` cp -v ./etc/config.php /etc/opt/endboard/```
|
||||||
|
|
||||||
Give ownership of working directory to webserver:
|
Give ownership of working directory to webserver:
|
||||||
|
|
||||||
# chown -R www-data:www-data /var/opt/endboard
|
``` chown -R www-data:www-data /var/opt/endboard```
|
||||||
|
|
||||||
Copy config file for nginx (from directory of the endboard archive):
|
Copy config file for nginx (from directory of the endboard archive):
|
||||||
|
|
||||||
# cp ./etc/endboard /etc/nginx/sites-available/
|
``` cp ./etc/endboard /etc/nginx/sites-available/```
|
||||||
|
|
||||||
Edit the two config files according to your needs (at the very least,
|
Edit the two config files according to your needs (at the very least,
|
||||||
define the landing page and the name of the admin account).
|
define the landing page and the name of the admin account).
|
||||||
|
|
||||||
Enable the site:
|
Enable the site:
|
||||||
|
|
||||||
# ln -s /etc/nginx/sites-available/endboard /etc/nginx/sites-enabled/
|
``` ln -s /etc/nginx/sites-available/endboard /etc/nginx/sites-enabled/```
|
||||||
|
|
||||||
Then, test and restart web server:
|
Then, test and restart web server:
|
||||||
|
|
||||||
# nginx -t && systemctl reload nginx
|
``` nginx -t && systemctl reload nginx```
|
||||||
|
|
||||||
|
|
||||||
First use
|
First use
|
||||||
|
@ -244,7 +244,7 @@ your admin password. Be sure to do that first.
|
||||||
You will need the admin token generated by the server, you can get it
|
You will need the admin token generated by the server, you can get it
|
||||||
like this:
|
like this:
|
||||||
|
|
||||||
# tail -n 1 /var/opt/endboard/admin_$name_token.txt
|
``` tail -n 1 /var/opt/endboard/admin_$name_token.txt```
|
||||||
|
|
||||||
(where $name is the name you have defined for the admin account).
|
(where $name is the name you have defined for the admin account).
|
||||||
|
|
||||||
|
@ -424,8 +424,4 @@ Licence stuff
|
||||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
||||||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The source of terminus.i2p
|
|
Loading…
Reference in New Issue