nilsteampassnet / teampass_doc

8 stars 31 forks source link

Teampass Docs - Install on Linux #18

Open luxzg opened 3 years ago

luxzg commented 3 years ago

Error 1:

Sseems curl extension for PHP is also required so instructions should be (curl added to the end):

sudo apt-get install php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-fpm php7.1-common php7.1-xml php7.1-gd openssl php7.1-mysql php7.1-bcmath php7.1-curl

Likewise, I don't see why short info for installing LAMP stack wouldn't be included, it's just a few lines:

sudo apt-get install apache2
sudo apt-get install mysql-server
sudo apt-get install libapache2-mod-php7.1 libphp7.1-embed php7.1 php7.1-common php7.1-mysql

Error 2:

There is an unchanged leftover from previous guide.

# nano /etc/php5/apache2/php.ini

should be

# nano /etc/php/7.1/apache2/php.ini

I mean, since couple lines above we are instructed to install PHP7.1

Error 3:

MySQL permission line: grant all privileges on teampass.* to teampass_admin@localhost identified by 'PASSWORD';

Seems to be deprecated / unsupported by current MYSQL. I had to use this:

CREATE USER 'teampass_admin'@'localhost' IDENTIFIED BY 'PASSWORD';
GRANT ALL ON teampass.* TO 'teampass_admin'@'localhost';
FLUSH PRIVILEGES;

Error 4:

In the Set folders permissions section, the two codes are NOT the same:

For my install I assume that we should have this (note I've added "backups":

sudo chmod 0777 install/ includes/ includes/config/ includes/avatars/ includes/libraries/csrfp/libs/ includes/libraries/csrfp/js/ includes/libraries/csrfp/log/ files/ upload/ backups/

And as another person pointed out, do we really need 777 on all these files/folders? Maybe it's ok for Docker, and in my case this is dedicated server noone else will have account on, but still doesn't seem justified.

Error 5:

To have LDAP integration, while optional, it would be good to mention either in Linux install or in LDAP config manual to install the LDAP extension for PHP, in Ubuntu/Debian it should be:

sudo apt-get install php7.1-ldap