Search code examples
mediawiki

How to force reload of configuration after modifying LocalSettings.php file in MediaWiki


I need to reload configuration after modifying LocalSettings.php without restarting Apache.

How is it possible?

Kind regards


Solution

  • If your LocalSettings.php is cached with opcache, you need to flush it. How it is done, is told here. In a nutshell:

    • mod_php: apachectl graceful,
    • php-fpm: service php-fpm reload,
    • CGI or FastCGI: no need.

    If you have APC: this answer.