With this extension, you at least have the choice now. While these methods may or may not make your server safer, there really is no reason to expose certain information to the world. On the left sidebar click on Stack then mediawiki. Follow the instructions in the image below. STEP 26 Upload the LocalSettings.php file inside your mediawiki folder that you have previously created at STEP 10. To disable this header, edit your php.ini file and make sure expose_php is set to Off. A LocalSettings.php file will be automatically downloaded on your PC. The other header is known as X-Powered-By and is added by PHP to any pages it serves (e.g. Common add-ons to MediaWiki Extensions MediaWiki offers many different types of extensions that you can use to add further functionality and customization to your site. To turn this off, edit you nf file and change the ServerTokens directive to ProductOnly. Apparently I must manually download LocalSettings.php and uncomment the LocalSettings.php volume after initial setup. The LocalSettings.phpfile contains the configuration settings for your new MediaWiki installation, such as database credentials and user permissions. If you are running Apache, it may show the version as part of the Server heading. It should be noted that there are typically two other places in which your PHP version may be exposed, both in the HTTP headers. All the configuration parameters can be found on the extension’s page on. You should update the permissions on that file to 640 or 600. After you move the LocalSettings.php file to your root directory, you can review its permissions. Open a Command Prompt window with administrator privileges and run the following command: Console Copy cacls SystemDriveinetpubwwwrootMediaWikiLocalSettings. You can also do things such as hide the revision information from the extension list, remove the versions entirely, or even remove an extension from showing up at all. The LocalSettings.php file stores your database login information in it, including the database username and password. LocalSetting.php contains sensitive information, so secure it by revoking access to unnecessary identities. Note that we are also eliding the git revision information (sha and date). I am using MediaWiki 1.17.0 after installing on a Linux server and completing the entire install process and placing the LocalSettings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |