This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dokuwiki:server [2024/06/02 21:04] – [Customization] Bernard Condrau | dokuwiki:server [2026/09/07 17:17] (current) – [Move to new web server] Bernard Condrau | ||
|---|---|---|---|
| Line 37: | Line 37: | ||
| * Add " | * Add " | ||
| ==== Customization ==== | ==== Customization ==== | ||
| - | There are a few core hacks required to make my template work properly, both for a regular wiki as well as for a help server. <span orange> | + | There are a few core hacks required to make my template work properly, both for a regular wiki as well as for a help server. |
| === Concept === | === Concept === | ||
| * The dispatcher calls files '' | * The dispatcher calls files '' | ||
| * Language detection and fallback added to '' | * Language detection and fallback added to '' | ||
| * Language detection and fallback added to '' | * Language detection and fallback added to '' | ||
| - | === Install | + | |
| - | - Install my {{ : | + | === Core hacks === |
| + | - Install my {{ : | ||
| - Add the following lines in '' | - Add the following lines in '' | ||
| $langcode = bethico_language(); | $langcode = bethico_language(); | ||
| Line 49: | Line 50: | ||
| - ...and replace at the end line '' | - ...and replace at the end line '' | ||
| bethico_dispatch(basename(__FILE__));</ | bethico_dispatch(basename(__FILE__));</ | ||
| - | - Copy '' | + | - Add a line to file '' |
| - | - Modify ''/ | + | var hidden; |
| - | - Copies of the modified files for "Igor" are in folder ''/ | + | --> if(!state && JSINFO.toc) state = JSINFO.toc.initial_state; |
| + | if(!state) state = 1;</ | ||
| + | |||
| + | === Fix toc handling in core === | ||
| + | - Modify ''/ | ||
| + | |||
| + | === Fix toc handling | ||
| + | - Make elements of items array unique at the end of function '' | ||
| + | |||
| + | === Install === | ||
| + | - Copies of the modified files for "Kaos" are in folder ''/ | ||
| - After a DokuWiki upgrade check and change if necessary | - After a DokuWiki upgrade check and change if necessary | ||
| - Check ''/ | - Check ''/ | ||
| Line 61: | Line 72: | ||
| + | ===== Move Wiki to new web server ===== | ||
| + | - Log in to your old server via SSH. | ||
| + | - Clear out everything inside your '' | ||
| + | - Pack the entire DokuWiki installation directory into a .tgz archive:< | ||
| + | - Transfer the archive to your new server, then extract the archive into your new web server document root directory:< | ||
| + | - Make sure your new server runs a compatible or identical version of PHP as your old server. Check and update your '' | ||
| + | - Set the correct owner and permissions so your web server user (like www-data or nginx) can write to the wiki.Ensure the data/ and conf/ directories (and their contents) are fully writable by the web server: | ||
| + | sudo chmod -R 775 / | ||
| + | Use code with caution. [1] (https:// | ||
| ===== Joomla Access ===== | ===== Joomla Access ===== | ||
| * Set the Help URL in the component configuration of com_bethico to< | * Set the Help URL in the component configuration of com_bethico to< | ||