Added INSTALL.md and conf files
This commit is contained in:
parent
80c373d4ce
commit
de427ac21c
|
@ -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
|
|
@ -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>
|
|
@ -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
|
|
@ -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…
Reference in New Issue