Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Installation instructions shared host: add netcup #1620

Closed
spadge4711 opened this issue Apr 7, 2020 · 3 comments
Closed

Installation instructions shared host: add netcup #1620

spadge4711 opened this issue Apr 7, 2020 · 3 comments

Comments

@spadge4711
Copy link

spadge4711 commented Apr 7, 2020

Maybe this will help others, these steps worked for me (webhosting @netcup):

  • use git in the root folder:
    git clone -b 1.8 --depth 1 https://github.com/kevinpapst/kimai2.git

  • change to new "kimai2" folder:
    cd kimai2/

  • install composer:
    curl -sS https://getcomposer.org/installer | /usr/bin/php

    php composer.phar install --no-dev --optimize-autoloader

  • configure your .env file (nano .env)

  • install kimai:
    php bin/console kimai:install -n

  • Reload config:
    php bin/console kimai:reload

  • optional add an user via console: php bin/console kimai:create-user username [email protected] ROLE_SUPER_ADMIN

  • configure netcup (using the customercontrolpanel) to use "/kimai2" as root folder for the domain or subdomain of your choice and add ssl (letsencrypt) for this domain/subdomain

  • place a .htaccess file in the "kimai2" folder to redirect to "kimai2/public":

DirectoryIndex index.php

Redirect /index.php https://<your_kimai2_domain>/public/
@kevinpapst
Copy link
Member

Thanks for sharing @spadge4711 !
But it is dangerous to point your domain to kimai2. Always point it to kimai2/public/.
What do you see when you open: https://<your_kimai2_domain>/.env ?

@kevinpapst
Copy link
Member

Added it to the installation docs, thanks 👍

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants