Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ca6aceffbc | ||
|
|
c4ea83cca9 |
+1
-1
@@ -1 +1 @@
|
|||||||
1.11.0
|
1.11.1
|
||||||
|
|||||||
@@ -1,67 +1,84 @@
|
|||||||
CAGETTE PEI
|
CAGETTE PEI
|
||||||
===========
|
===========
|
||||||
|
|
||||||
Fourche du logiciel [Cagette.net](https://github.com/CagetteNet) à partir de la version 0.9.2 Novembre 2018
|
> <french>
|
||||||
|
> Fourche du logiciel [Cagette.net](https://github.com/CagetteNet) à partir de la version 0.9.2 Novembre 2018
|
||||||
|
>
|
||||||
|
> Certaines portions du code source de Cagette.net n'étant plus disponibles en téléchargement à partir de cette date,
|
||||||
|
> j'ai repris sur la base d'un existant pour adapter au marché local réunionnais et leurs AMAPéi.
|
||||||
|
> </french>
|
||||||
|
|
||||||
Certaines portions du code source de Cagette.net n'étant plus disponibles en téléchargement,
|
## PREREQUISITE MARIADB
|
||||||
j'ai repris sur la base d'un existant pour adapter au marché local réunionnais et leurs AMAPéi.
|
|
||||||
|
|
||||||
## INSTALL FROM SCRATCH (debian-buster)
|
```bash
|
||||||
|
apt install -y mariadb-server
|
||||||
* apt install -y curl
|
mysql -u root <<EOF
|
||||||
* curl -L https://deb.nodesource.com/setup_8.x | bash -
|
|
||||||
* apt install -y nodejs=8.17.0-1nodesource1
|
|
||||||
* apt install -y sudo haxe apache2 make git imagemagick gettext libapache2-mod-neko mariadb-server
|
|
||||||
* mysql -u root <<EOF
|
|
||||||
CREATE DATABASE cagettepei;
|
CREATE DATABASE cagettepei;
|
||||||
GRANT ALL ON cagettepei.* TO 'cagettepei'@'%' IDENTIFIED BY 'cagettepei';
|
GRANT ALL ON cagettepei.* TO 'cagettepei'@'%' IDENTIFIED BY 'cagettepei';
|
||||||
EOF
|
EOF
|
||||||
* cd /var/www
|
```
|
||||||
* git clone https://git.artcode.re/cagetters/cagettepei.git
|
|
||||||
* cd cagettepei
|
## INSTALL FROM SCRATCH
|
||||||
* make install ENV=dev # first time
|
|
||||||
* make compile # classes
|
Rk: Works on any Debian (>=Buster) compatible server!
|
||||||
* make templates # templates + i18n
|
|
||||||
* vim /etc/apache2/sites-available/cagettepei.conf
|
```
|
||||||
|
apt install -y curl
|
||||||
|
curl -L https://deb.nodesource.com/setup_8.x | bash -
|
||||||
|
apt install -y nodejs=8.17.0-1nodesource1
|
||||||
|
apt install -y sudo haxe apache2 make git imagemagick gettext libapache2-mod-neko mariadb-server sendemail libio-socket-ssl-perl libnet-ssleay-perl
|
||||||
|
|
||||||
|
mysql -u root <<EOF
|
||||||
|
CREATE DATABASE cagettepei;
|
||||||
|
GRANT ALL ON cagettepei.* TO 'cagettepei'@'%' IDENTIFIED BY 'cagettepei';
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cd /var/www
|
||||||
|
git clone https://git.artcode.re/cagetters/cagettepei.git
|
||||||
|
cd cagettepei
|
||||||
|
make install ENV=dev
|
||||||
|
vim /etc/apache2/sites-available/cagettepei.conf
|
||||||
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName cagettepei
|
ServerName cagettepei
|
||||||
DirectoryIndex index.n
|
DirectoryIndex index.n
|
||||||
DocumentRoot /var/www/cagettepei/www/
|
DocumentRoot /var/www/cagettepei/www/
|
||||||
|
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/cagettepei/access.log combined
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/cagettepei/debug.log
|
||||||
|
ErrorLogFormat "[%{uc}t] %M"
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
```
|
```
|
||||||
* sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
|
|
||||||
* a2dissite 000-default.conf
|
```bash
|
||||||
* a2ensite cagettepei.conf
|
sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
|
||||||
* a2enmod neko rewrite
|
a2dissite 000-default.conf
|
||||||
* systemctl restart apache2
|
a2ensite cagettepei.conf
|
||||||
|
a2enmod rewrite
|
||||||
|
mkdir -p /var/log/apache2/cagettepei
|
||||||
|
systemctl restart apache2
|
||||||
|
```
|
||||||
|
|
||||||
## CONFIGURATION
|
## CONFIGURATION
|
||||||
|
|
||||||
* cd /var/www/cagettepei
|
```bash
|
||||||
* vim config.xml
|
cd /var/www/cagettepei
|
||||||
|
vim config.xml
|
||||||
|
```
|
||||||
```
|
```
|
||||||
<config
|
<config
|
||||||
host="<DOMAIN.TLD>"
|
host="<DOMAIN.TLD>"
|
||||||
|
database="mysql://cagettepei:cagettepei@localhost/cagettepei"
|
||||||
key="<SECRET_PHRASE>"
|
key="<SECRET_PHRASE>"
|
||||||
name = "CagettePéi"
|
|
||||||
default_email = "<EMAIL>"
|
default_email = "<EMAIL>"
|
||||||
webmaster_email = "<EMAIL>"
|
webmaster_email = "<EMAIL>"
|
||||||
database="mysql://cagettepei:cagettepei@localhost/cagettepei"
|
|
||||||
|
|
||||||
smtp_host="localhost"
|
|
||||||
smtp_port="25"
|
|
||||||
smtp_user=""
|
|
||||||
smtp_pass=""
|
|
||||||
|
|
||||||
lang="fr"
|
|
||||||
langs="fr"
|
|
||||||
langnames="Français"
|
|
||||||
maintain="0"
|
|
||||||
debug="0"
|
debug="0"
|
||||||
sqllog="0"
|
sqllog="0"
|
||||||
|
maintain="0"
|
||||||
|
|
||||||
cache="1"
|
cache="1"
|
||||||
cachetpl="0"
|
cachetpl="0"
|
||||||
/>
|
/>
|
||||||
@@ -72,16 +89,19 @@ ADMIN RESET PASSWORD
|
|||||||
|
|
||||||
go to http://localhost for ERROR + table regeneration, then
|
go to http://localhost for ERROR + table regeneration, then
|
||||||
|
|
||||||
* cd /var/www/cagettepei
|
```
|
||||||
* SECRET=$(grep key= config.xml | cut -d= -f2 | cut -d'"' -f2)
|
cd /var/www/cagettepei
|
||||||
* echo "insert into User values (1,'fr',MD5('${SECRET}cagettepei'),1,'Administrateur','Cagette Péi', 'admin', null, null, null, null, null, null, null, null, null, now(), now(),6,null, null)" | mysql -h localhost -u cagettepei -pcagettepei cagettepei
|
SECRET=$(grep key= config.xml | cut -d= -f2 | cut -d'"' -f2)
|
||||||
|
echo "insert into User values (1,'fr',MD5('${SECRET}cagettepei'),1,'Administrateur','Cagette Péi', 'admin', null, null, null, null, null, null, null, null, null, now(), now(),6,null, null)" | mysql -h localhost -u cagettepei -pcagettepei cagettepei
|
||||||
|
```
|
||||||
|
|
||||||
then, connect with admin / cagettepei
|
then, connect with admin / cagettepei
|
||||||
|
|
||||||
### change admin password
|
### change admin password
|
||||||
|
|
||||||
* echo "update User set pass=MD5('${SECRET}cagettepei') where id=1" | mysql -h localhost -u cagettepei -pcagettepei cagettepei
|
```
|
||||||
|
echo "update User set pass=MD5('${SECRET}cagettepei') where id=1" | mysql -h localhost -u cagettepei -pcagettepei cagettepei
|
||||||
|
```
|
||||||
|
|
||||||
SYSTEMD-TIMERS
|
SYSTEMD-TIMERS
|
||||||
--------------
|
--------------
|
||||||
@@ -98,7 +118,7 @@ SYSTEMD-TIMERS
|
|||||||
|
|
||||||
SELECTOR=$1
|
SELECTOR=$1
|
||||||
|
|
||||||
for i in /var/www/cagettepei-* ; do
|
for i in /var/www/cagettepei* ; do
|
||||||
if [[ -d $i ]]; then
|
if [[ -d $i ]]; then
|
||||||
cd $i/www
|
cd $i/www
|
||||||
echo "cron-$SELECTOR in: $i"
|
echo "cron-$SELECTOR in: $i"
|
||||||
|
|||||||
+1
-1
@@ -47,5 +47,5 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/bablukid/cagette/issues"
|
"url": "https://github.com/bablukid/cagette/issues"
|
||||||
},
|
},
|
||||||
"version": "1.11.0"
|
"version": "1.11.1"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user