Browse Source

Added INSTALL.md and conf files

master
Samuel ORTION 6 months ago
parent
commit
de427ac21c
  1. 21
      INSTALL.md
  2. 12
      apache2.conf
  3. 22
      costs.txt
  4. 22
      nginx.conf

21
INSTALL.md

@ -0,0 +1,21 @@
# Install Website
## Create database
```bash
su -
sudo -u postgres psql
```
```sql
create user cot with password cot;
create database cot with owner cot;
\q
```
## Required php packages
* php-pdo
* php-pgsql
* composer
* PHPMailer

12
apache2.conf

@ -0,0 +1,12 @@
<VirtualHost *:80>
ServerName cocottes
ServerAlias www.cocottes
DocumentRoot "/home/ortion/Documents/projects/LesCocottesMinutes/www/public"
<Directory "/home/ortion/Documents/projects/LesCocottesMinutes/www/public">
Options +FollowSymLinks
AllowOverride all
Require all granted
</Directory>
ErrorLog /var/log/apache2/error.cocottes.log
CustomLog /var/log/apache2/access.cocottes.log combined
</VirtualHost>

22
costs.txt

@ -0,0 +1,22 @@
Website yearly costs
====================
- Domain Name @ Gandi.net
- cocottes-minutes.eu
5.64 € 1y then 14.40 € / y
- cocottes-minutes.fr
14.40 € / y
- cocottes-minutes.org
10.79 € 1y then 18.79€ / y
- cocottes-minutes.com
15.60 € / y
- Subdomain under univ-evry.fr such as cocottes.minutes.asso.univ-evry.fr
- free
- WebHost
- Dedicatd VM on Oracle Cloud
- free (needed a registered credit card, but no fee)
- Usage of any of my VPS (Samuel ORTION)
- almost free

22
nginx.conf

@ -0,0 +1,22 @@
server {
listen 80;
server_name cocottes;
return 302 https://cocottes;
}
server {
listen 443 ssl;
server_name cocottes;
root /var/www/cocottes;
location / {
}
index index.php;
# managed by Certbot
ssl_certificate /etc/letsencrypt/live/cocottes/cert.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/cocottes/privkey.pem; # managed by Certbot
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/www.sock;
}
}
Loading…
Cancel
Save