Troubleshooting
Also available in Deutsch, Русский
Any problems with the install, paste below or in comments to this page or the discussion section in the forum.
-> see also FAQ
Installing is very straightforward overall, however there are two things to look out for:
- general: the unzipped directory and all contained files and subdirectories have (secure but not web-readable) permissions set so that the web-based installer is not found. The fastest way to get things running, but which also makes the install less secure is to go into the folder that contains the 'wacko' directory and run
chmod -R 755 wacko
. Alternatively, go through all the directories and adjust permissions as necessary. - perhaps a problem on some webhosts: the .htaccess file gave my web host's configuration trouble, i.e. it couldn't find anything within the wacko folders. deleting .htaccess solved the problem.
You’ll need an empty database. If you’re not sure how to create a new database or find this information, ask your web host.
1. Setup
1.1. After installing WackoWiki I got an empty screen
Usually this means you've got a Fatal error, this can be caused by a missing PHP extension (intl
, gd
) or another issue.
Please turn PHP error reporting in your config/constants.php on, reload the page and report back the error message you got. See Enabling debug output more below.
1.2. SessionFileStore: inaccessible directory "/tmp"
Usually caused by a missing /tmp
folder on Windows. Try to create the /tmp
folder in root of disk or choose another option.
1.3. Error 403
Please check if you've set the correct file permissions.
1.4. Necessary adjustments for XAMPP Windows
For XAMPP Windows you first need to enable the GD and Intl extension in php.ini, both of which are required by WackoWiki.
- Open the
php.ini
file (e.g.C:\xampp\php\php.ini
). - Search for
;extension=gd
and;extension=intl
. - Remove
;
from both entries and then restart Apache server.
Furthermore, in the config/constants.php
file, the value for the session directory should be changed.
const CACHE_SESSION_DIR = '/xampp/tmp';
Adjust the paths according to your environment, in the example above XMAPP Windows was installed under C:\xampp
.
1.5. Install under subdirectory and mode_rewrite
Went to install R5.0 on my cloud server under the subdirectory /wiki/ and was given a 404 when accessing the /devwiki/ directory. Furthermore, accessing the index.php directly was loading but not loading any CSS/JS files for the installation.
Solution:
The fix for this was to add the following line to the root directory's .htaccess, right after the line that reads RewriteEngine on
:
RewriteBase /wiki/
see also
1.6. NGINX Rewrite Rules
WackoWiki is server-agnostic, but if you turn rewrite_mode on, your wiki may become inaccessible.
Please turn rewrite_mode
in the installer or the secondary config off, if you haven't configure the NGINX rewrite rules yet.
off | on |
---|---|
rewrite_mode | |
wiki/?page=HomePage | wiki/HomePage |
location / { rewrite ^(.*)$ /index.php break; }
- /Forum/Discussion/NginxRewrite
- Converting Apache Rewrite Rules to NGINX Rewrite Rules
- Pitfalls and Common Mistakes
- Creating NGINX Rewrite Rules
1.7. I have No WikiEdit toolbar
- check if your client/browser settings accepts JS (e.g. white list your wiki in NoScript / uMatrix)
2. Enabling debug output
Turning PHP error reporting in config/constants.php on.
const DB_ERROR_MODE = 1; const PHP_ERROR_REPORTING = 6;
The PHP error log will tell you what went wrong. Report back what you've got.
\php\logs\php_error_log
For more details read the Debugging section.
Error loading WackoWiki DBAL
Error loading WackoWiki DBAL: could not establish database connection.
STEPS: