Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
111 views
in Technique[技术] by (71.8m points)

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

question from:https://stackoverflow.com/questions/65897798/how-to-force-reload-of-configuration-after-modifying-localsettings-php-file-in-m

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...