Where is localsettings.php located mediawiki




















Active 5 years, 11 months ago. Viewed 10k times. Improve this question. DmitryBoyko Add a comment. Active Oldest Votes. From the MediaWiki website installation instructions : This is an index of all supported configuration options based on the DefaultSettings.

It looks very similar to DefaultSettings. Type the following command to open the file for editing:. This file is written in the PHP programming language, but the syntax is relatively easy to understand. For the most part, you will see the following syntax:. This file has many different configuration settings, but not all of the available settings are defined here. Generally, only those settings with values that contradict the defaults found in DefaultSettings.

If you wish to change the settings of anything found in DefaultSettings. If it does not exist, add it to the bottom. Before making any changes, go ahead and backup the configuration file in case something does not work as expected:.

You selected a name for your site during initial configuration. The second variable sets namespace for the pages that refer to the wiki itself. It cannot contain spaces, so we use underscores instead. If you need to change the language encoding of your site, you can modify the value of the wgLanguageCode variable:. Uncomment the next two variables to configure MediaWiki to use imagemagick for image resizing, converting, and manipulating.

If you would like to allow additional formats, add the wgFileExtensions variable to the bottom of the file like so:. I wouldn't think it should matter what directory I put it in but now I don't know.

Thanks, Douglas. Problem solved I did a fresh install and fixed it. Thanks folks. That doesn't really sound like a solution. I'm having this problem too, any other ideas? You installed your wiki in a folder. In this folder you have several subfolders. Put the LocalSettings. This name gets included many times throughout the system, such as via MediaWiki:Pagetitle. For instance, the Wikipedia tagline "From Wikipedia, the free encyclopedia" makes use of this setting.

Some translations of interface are ready for inflection of site name. While users can switch the language they see in their preferences , this variable sets the default language that all anonymous users and most registered users see.

This setting should correspond to the Apache settings , especially if you are using Apache's rewrite rules. When the wiki is accessed from either the localhost where it runs, from an intranet or from the internet, email notifications and a few other computed messages would be usually delivered with the different URLs. From MediaWiki 1. If www.

You can also use a protocol relative URL as shown below. Changing the script name is probably not a good idea.

However, if you feel the urge to do so, this is the place to make your changes. Make sure you know what you are doing.

If you make a mistake here, internal links will show up incorrectly while you still may be able to access the main page by specifying the correct URL manually. The upload directory is the place where files uploaded by the users are stored. Then, modify that line to point to your logo.

The logo must be web accessible. The value of this variable is passed to the web browser, which uses it to fetch the logo. This is not recommended, as the customized logo would be overwritten on upgrade. MediaWiki 1. An example of using multiple logos is shown below.

This email address is used to send internal bug reports to. As an administrator, you want to include your email address here. Choose an address people can reply to in case of trouble or confusion.

In most cases this will be just "localhost" as the database is run on the same system, but for distributed installations, you need to fill in the fully qualified domain name of the computer running the database. Make sure you have stated the correct database name here and use different database names for different wiki installations on the same database server.



0コメント

  • 1000 / 1000