Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Teampass 3.1.1 Installation #4324

Open
JCSR64 opened this issue Sep 16, 2024 · 6 comments
Open

Teampass 3.1.1 Installation #4324

JCSR64 opened this issue Sep 16, 2024 · 6 comments

Comments

@JCSR64
Copy link

JCSR64 commented Sep 16, 2024

After finish TeamPass installation (following instructions from documentation), when I go to the URL, It shows me a web page with what I understand as some strange outputs, like after Initial Installation, it says: '; if (!isset($_GET['step']) && !isset($post_step)) { //ETAPE O echo '
366440086-1fd1aa0f-c347-45bc-ad41-cb8ad5959dd2

In fact, if I try to make the initial installation from Microsoft Edge, the return is:
366441079-5cb231fe-bf1f-4c75-bc8f-6783b25e35ba

@szpx
Copy link

szpx commented Oct 18, 2024

Hi,

Please provide your server configuration.

It's seems to be a problem with your webserver and php.
If you're using apache2 and php 8.2 do this:

sudo apt install libapache2-mod-php8.2

@JCSR64
Copy link
Author

JCSR64 commented Oct 21, 2024

You were right. I ran the indicated command and the problem was solved.

However, I don't know if this package should be included in this step:
image

Thank you very much for your help.

@JCSR64
Copy link
Author

JCSR64 commented Oct 23, 2024

Now, when I run the initial installation, in the second step, it tells me: "Error! Answer from server is empty.".

image

Am I doing something wrong?

@JCSR64
Copy link
Author

JCSR64 commented Oct 24, 2024

I thought the problem was that I was running the initial installation from my computer, so I tried it from the computer where TeamPass is installed, but I get the same error.

In the documentation, the final step says:
image

And the permissions for that folder are:
image

I'm not a Linux expert, as I think is evident, and I'm a bit lost.

@szpx
Copy link

szpx commented Oct 24, 2024

It could be a permission issue, but you need to provide more information (check the Apache log, probably in /var/log/apache2/your_logs).

However, you can try these commands:

# These commands give full permissions to anyone. It's totally insecure, especially if you expose your server to the web. REMEMBER TO CHANGE THIS PERMISSION ASAP (See below >> SET CORRECT PERMISSIONS).
chown -R root:root /var/www/teampass
chmod -R 777 /var/www/teampass
systemctl restart apache2

Open your browser and go to Teampass. Before starting the installation steps, proceed with:
CTRL + F5

That will clear your browser cache for this URL.

Now try your installation again.

SET CORRECT PERMISSIONS:

chown -R www-data:www-data /var/www/teampass
chmod -R 750 /var/www/teampass

OR (recommended if you have the acl package installed on your distro):

chown -R www-data:www-data /var/www/teampass
setfacl -R -m d:u:www-data:rwx -m d:g:www-data:rwx -m u:www-data:rwx -m g:www-data:rwx -m d:other::--- /var/www/teampass

The second option will set the correct permissions and ensure that the same permissions apply to any newly created files in the future.

@JCSR64
Copy link
Author

JCSR64 commented Oct 25, 2024

My logs:
image

image

That php error suggests to me that it's not going to be a permissions issue.

As usual, thank you very much for your help.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants