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

V4.2.x #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 3 additions & 24 deletions INSTALL-APP.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,25 @@
## ElabFTW Installation Instructions

### Some Command Line Work
The installation migth take a while so be patient. The last message in the log should be something like this:

`[services.d] done.`

Once installed we have to do some command line work to initilize elabftw and make it comaptible with HTTP instead of HTTPS.
Log into our bibbox server (e.g. via ssh) and execute the following commands:

* Import the database structure:
* `docker exec -it <instance_name>-web bin/install start`
* Disable secrue cookies (Incompatible with HTTP):
* `docker exec -it <instance_name>-web sed -i 's/session.cookie_secure = true/session.cookie_secure = false/' ../etc/php8/php.ini`
* Set the app url in database (including the http://):
* `docker exec -it <instance_name>-mysql mysql -u elabftw --database="elabftw" --password="<password>" --execute='UPDATE config SET conf_value = "http://<instance_url>:80" WHERE conf_name = "url";'`

### Restart ElabFTW

Restart the app via the restart button in the BIBBOX dashboard:

![Screenshot01](assets/install-screen-01.png)


### Start ElabFTW

You will get to the login sceen:

![Screenshot01](assets/install-screen-02.png)
![Screenshot01](assets/install-screen-01.png)

#### Register

The first user you register will automatically be the admin user:

![Screenshot01](assets/install-screen-03.png)
![Screenshot01](assets/install-screen-02.png)


#### Make all further configuration steps within the ELabFTW app.

Now you can login with your new admin account.
Further information can be found here https://www.elabftw.net/ and https://doc.elabftw.net/.

![Screenshot04](assets/install-screen-04.png)
![Screenshot04](assets/install-screen-03.png)

## After the installation
Have a nice ride with the Admins youngtimer.
Expand Down
Binary file modified assets/install-screen-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/install-screen-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/install-screen-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/install-screen-04.png
Binary file not shown.
30 changes: 30 additions & 0 deletions data/new_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

echo "INFO: Start /run.sh..." >&2
bash /run.sh &

sleep 1
#while ! ps | grep -q "nginx 0:00 {php-fpm8} php-fpm: pool elabpool$" -
while ! nc -z $DB_HOST $DB_PORT 2>/dev/null
do
echo "INFO: Waiting for DATABASE..." >&2
sleep 2
done

echo "INFO: Importing the database structure..." >&2
# Import the database structure:
bin/install start

#Disable secrue cookies (Incompatible with HTTP):
if grep -Fxq "session.cookie_secure = true" /etc/php8/php.ini
then
echo "INFO: Disable secrue cookies">&2

sed -i 's/session.cookie_secure = true/session.cookie_secure = false/' /etc/php8/php.ini

echo "INFO: Restart php-fpm8">&2
pkill php-fpm8

fi

tail -f /dev/null
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ services:
# Disable HTTPS check on login
- ./data/login.php:/elabftw/web/login.php
- ./data/init.inc.php:/elabftw/web/app/init.inc.php
- ./data/new_run.sh:/elabftw/new_run.sh
# drop some capabilities not needed by the app
cap_drop:
- SYS_ADMIN
Expand All @@ -43,7 +44,8 @@ services:

ports:
- '8080:443'

command: /elabftw/new_run.sh

bibbox-mysql:
container_name: bibbox-mysql
command: --default-authentication-plugin=mysql_native_password
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ services:
# Disable HTTPS check on login
- ./data/login.php:/elabftw/web/login.php
- ./data/init.inc.php:/elabftw/web/app/init.inc.php
- ./data/new_run.sh:/elabftw/new_run.sh

# drop some capabilities not needed by the app
cap_drop:
- SYS_ADMIN
Expand All @@ -43,6 +45,7 @@ services:

ports:
- '8443:443'
command: /elabftw/new_run.sh
proxy:
TYPE: PRIMARY
URLPREFIX: §§INSTANCE
Expand Down
2 changes: 1 addition & 1 deletion fileinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"environment_replace": {},
"script_replace": [],
"permissions": {

"data/new_run.sh": 755
}
}