Teampass : Différence entre versions
De SLM - MediaWiki
(→PHP) |
|||
Ligne 89 : | Ligne 89 : | ||
chmod -R 0777 install | chmod -R 0777 install | ||
chmod -R 0777 upload | chmod -R 0777 upload | ||
− | chmod -R 0777 | + | chmod -R 0777 includes/ |
Créer la base de donnée | Créer la base de donnée | ||
mysql -uroot -p | mysql -uroot -p | ||
+ | create database teampassdb character set utf8 collate utf8_bin; | ||
+ | grant all privileges on teampassdb.* to teampass_admin@localhost identified by 'PASSWORD' | ||
+ | flush privileges; | ||
+ | quit |
Version du 22 janvier 2022 à 14:52
Sommaire
Installation
Creation container Lamp sur proxmox
Connecter vous sur la page web proxmox
- Create CT
Se connecter en ssh
First boot
Saisissez le mot de passe mysql souhaité 900px
Suivez le wizzard
PHP
Par defaut notre version de Php est de 7.3, un minimum de 7.4 est necessaire, nous alons donc installer la version la plus recente à ce jour soit la 8.1
apt install apt-transport-https lsb-release apt-transport-https wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg # Download the signing key sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' # Add Ondrej's repo to sources list. apt update apt upgrade apt install libapache2-mod-php8.1 a2enmod php8.1 apt purge php7.3 libapache2-mod-php7.3 systemctl restart apache2
Installation des dependance necessaire
apt install php8.1-mbstring apt install openssl apt install php8.1-bcmath apt install php8.1-iconv apt install php8.1-gd apt install php8.1-mysql apt install php8.1-mysqli apt install php8.1-xml apt install php8.1-curl
On redemarre apache
systemctl restart apache2
Verifier la version
php -v
Installation Teampass
https://teampass.readthedocs.io/en/latest/install/install-linux/
Modifier la variable max_execution_time = 60 dans php.ini
nano /etc/php/8.1/apache2/php.ini
Telecharger la derniere version teampass
wget https://github.com/nilsteampassnet/TeamPass/archive/refs/tags/3.0.0.9.zip
Décompresser dans le repertoir html
unzip 3.0.0.9.zip -d /var/www/html/
Renommer le dossier extrait sans la version
cd /var/www/html/ mv TeamPass-3.0.0.9/ TeamPass
Mettre les droits sur les repertoires
cd TeamPass/ chmod -R 0777 includes/config chmod -R 0777 includes/avatars chmod -R 0777 includes/libraries/csrfp/libs chmod -R 0777 includes/libraries/csrfp/log chmod -R 0777 includes/libraries/csrfp/js chmod -R 0777 files/ chmod -R 0777 install chmod -R 0777 upload chmod -R 0777 includes/
Créer la base de donnée
mysql -uroot -p create database teampassdb character set utf8 collate utf8_bin; grant all privileges on teampassdb.* to teampass_admin@localhost identified by 'PASSWORD' flush privileges; quit