Comments (9)
Works great now, thanks!
from docker-dokuwiki.
I managed to fix this in a custom docker image by adding /var/www/fixes.php
with this content:
<?php
if(!defined('DOKU_INC')) define('DOKU_INC', '/var/www/');
and adding a 02-fixes.sh
for cont-init.d doing the following:
#!/usr/bin/with-contenv sh
# PHP
echo "Setting PHP INI configuration..."
sed -i "s|auto_prepend_file.*|auto_prepend_file = /var/www/fixes.php|g" /etc/php7/php.ini
This way the fixes.php
is loaded for every request and DOKU_INC
will always be defined. This way plugins do not have to guess where it is.
from docker-dokuwiki.
@crazy-max Any chance you can validate if this is something you could include? I'm seeing error messages about DOKU_INC
as well
from docker-dokuwiki.
@apollo13 @wgordon17 Very sorry for the delay, can you test with crazymax/dokuwiki:edge
? Thanks!
from docker-dokuwiki.
@crazy-max That unfortunately hasn't fixed the issue for me. My issue seems specific to the Dokuwiki Bootstrap3 template.
I am currently using this as a workaround: https://github.com/giterlizzi/dokuwiki-template-bootstrap3/blob/master/css.php#L18-L22
But I'm thinking I might actually just be better served by submitting a PR to the Bootstrap3 template for this specific path, similar to how they've done it for other Docker images: https://github.com/giterlizzi/dokuwiki-template-bootstrap3/blob/master/css.php#L27-L30
from docker-dokuwiki.
@wgordon17 Thanks for your feedback. Yeah it looks like the fix of @apollo13 is the best in this kind of situation. I will make the necessary changes.
from docker-dokuwiki.
Ok should be fixed now.
from docker-dokuwiki.
@crazy-max While testing for #25 I think you broken the edge repo with the latest commit in here:
2021/02/20 10:34:48 [error] 529#529: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0PHP message: PHP Fatal error: Unknown: Failed opening required '/var/www/preload.php' (include_path='.:/usr/share/php7') in Unknown on line 0" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "localhost:8000"
preload.php
is in /var/www/inc
in my container at least.
from docker-dokuwiki.
@apollo13 Sorry my bad.. I've triggered a new release to fix that: https://github.com/crazy-max/docker-dokuwiki/runs/1941489326?check_suite_focus=true
from docker-dokuwiki.
Related Issues (12)
- Issues running the container HOT 2
- Missing SQLite & PDO SQLite support (unable to use some plugins) HOT 1
- Support for an option to disable reindex behavior HOT 2
- Containers do not shut down properly HOT 2
- HTTPS HOT 1
- Latest version on Raspberry Pi 4 (latest upgrade) HOT 2
- Can write pages but not conf/local.php (change settings) HOT 5
- Correct way to mount data HOT 3
- Can you add the package php81-iconv
- Confusion between `/data` & `/var/www` HOT 6
- Sending notification emails? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-dokuwiki.