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

phpmyfaq web container keeps restarting #1575

Open
mulgurul opened this issue Aug 14, 2019 · 5 comments

Comments

@mulgurul
Copy link

commented Aug 14, 2019

When using latest docker image, then the web server container just keeps restarting.

The log says:

2019-08-14T10:54:30.595891790Z Enabling module rewrite. 2019-08-14T10:54:30.602013050Z Enabling module headers. 2019-08-14T10:54:30.606115554Z To activate the new configuration, you need to run: 2019-08-14T10:54:30.606134784Z service apache2 restart 2019-08-14T10:54:30.608142401Z sed: can't read .htaccess: No such file or directory 2019-08-14T10:54:31.966645724Z Module rewrite already enabled 2019-08-14T10:54:31.966672414Z Module headers already enabled 2019-08-14T10:54:31.968888674Z sed: can't read .htaccess: No such file or directory 2019-08-14T10:54:33.160946527Z Module rewrite already enabled 2019-08-14T10:54:33.160980167Z Module headers already enabled 2019-08-14T10:54:33.163043963Z sed: can't read .htaccess: No such file or directory

Here's the compose stuff I have used:

`db_phpmyfaq:
image: mariadb:10.2.14
restart: always
environment:
- MYSQL_ROOT_PASSWORD=iop
- MYSQL_DATABASE=phpmyfaq
- MYSQL_USER=phpmyfaq
- MYSQL_PASSWORD=phpmyfaq
volumes:
- "/docker-data/phpmyfaq/mariadb:/var/lib/mysql"
phpmyfaq:
image: phpmyfaq/phpmyfaq:latest
#build: ./phpmyfaq
#context: .
#dockerfile: ./phpmyfaq/Dockerfile
restart: unless-stopped
#stdin_open: true
environment:
- PMF_DB_HOST=db
- PMF_DB_NAME=phpmyfaq
- PMF_DB_USER=phpmyfaq
- PMF_DB_PASS=phpmyfaq
- PMF_DISABLE_HTACCESS=""
- PMF_TIMEZONE="Europe/Berlin"
- PMF_ENABLE_UPLOADS="On"
- PMF_MEMORY_LIMIT="64M"
- PHP_LOG_ERRORS="On"
- PHP_ERROR_REPORTING="E_ALL" # Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
- PHP_POST_MAX_SIZE="64M"
- PHP_UPLOAD_MAX_FILESIZE="64M"
#- DISABLE_HTACCESS="x"
- VIRTUAL_HOST=phpmyfaq.ngt.dbb.dk
#VIRTUAL_PORT: 9000

links:
  - db_phpmyfaq:db
  - elasticsearch__phpmyfaq
ports:
  - "8080:80"
volumes:
  - "/docker-data/phpmyfaq/attachments:/var/www/html/attachments"
  - "/docker-data/phpmyfaq/data:/var/www/html/data"
  - "/docker-data/phpmyfaq/images:/var/www/html/images"
  - "/docker-data/phpmyfaq/config:/var/www/html/config"

phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
stdin_open: true
links:
- db_phpmyfaq:db
environment:
- VIRTUAL_HOST=phpmyfaq.ngt.dbb.dk
ports:
- "8000:80"
volumes:
- ./volumes/sessions:/sessions
elasticsearch__phpmyfaq:
image: elasticsearch:2.4.6
restart: always
environment:
- cluster.name=phpmyfaq-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "/docker-data/phpmyfaq/esdata:/usr/share/elasticsearch/data"
`

Seems like there's something wrong with the entrypoint script in relation to the folder structure or similar.
Kind of showstopper, so hope you can provide a fix or workaround...

Best regards, Peter

@thorsten

This comment has been minimized.

Copy link
Owner

commented Aug 14, 2019

For which version did you tried it?

@thorsten thorsten self-assigned this Aug 14, 2019
@mulgurul

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

Well I used :latest in image settings, so this would probably be latest stable? 2.9.13
I'm trying with 3.0 (beta) in this moment to see if it makes a difference.

Best regards

@mulgurul

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

I can confirm that if i use 3.0 then the container does not restart and I get the setup page stating version 3.0.0-alpha.2 from the web server:-)

@mulgurul

This comment has been minimized.

Copy link
Author

commented Aug 14, 2019

So the problem seems to be with image: phpmyfaq/phpmyfaq:latest version

@thorsten thorsten added this to To Do in 3.0.0-beta.3 via automation Aug 14, 2019
@thorsten

This comment has been minimized.

Copy link
Owner

commented Aug 14, 2019

The 2.9 Docker files and Docker Compose files are just for development. I'll fix the issue with 3.0-beta3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
3.0.0-beta.3
  
To Do
2 participants
You can’t perform that action at this time.