Installation simple (en utilisant XAMPP)
Ceci inclus une nouvelle version d'Apache , de MySQL, et de PHP, le tout intégré all in one integrated package. Just download et lancer l'installer de XAMPP , la base de donnée et le serveur devraient fonctionner.
Télécharger mediawiki et l'extraire :
Trouvé la racine (
htdocs/) et ajoutez y le répertoire MediaWiki issue de l'extraction. Then open a browser to the directory of localhost/mediawiki-X.X.X/index.php (X's represent the file version you downloaded) and install.
After the installation, once wiki is started for the first time, a configuration screen will come up. Before doing the configuration you will have to set the password for root user of your mysql. see MySQL_config.
Having found the above advice did not make much sense, all you need to do is drop to command line e.g c:\program files\xampp\mysql\bin and run the following c:\program files\xampp\mysql\bin\mysqladmin -u root password <secret>. <secret is your password> when you get to the next step below you keep database name the same and userid = root and password <secret>.
Once the configuration is completed, when you will go to the home page now, you will get the message "To complete the installation, move config/LocalSettings.php to the parent directory." Move the file ....\xampp\htdocs\mediawiki-1.7.1\config\LocalSettings.php to ....\xampp\htdocs\mediawiki-1.7.1 directory.
- Required OS: Windows, Linux, Sun Solarisor Mac OS X
- Disk space: enough for a server; XAMMP installs to 300+
- MediaWiki specific help: http://www.nat32.com/xampp/index.htm
Step by Step setup of a MediaWiki on a Windows XP Computer
Apache Version 2.2.2
MySQL Community Edition Version 5.0.21
php Version 5.1.3
phpmyadmin Version 18.104.22.168
Mediawiki Version 1.6.7
Here we assume you don't want to compile the sources yourself, so just go to this mirror directory, select the appropriate platform and then the file you want (see version number etc) version 2.2.2 without SSL was used here. It is 4.2 MB in size.
- Download the file and execute it. Use the following settings in the installation wizard:
- installed as a Service,
- any domain as domain, any servername as servername and an appropriate email-address,
- typical Installation , for all users, as a service,
- install to e.g.
d:\programme\apache\apache2.2\(from here on called
- A few users have had installation issues with filepaths that contain spaces, but others have not, so it is a good idea to not use spaces anyways in the file directories.
- I found it necessary to place the files: php_mysql.dll and libmysql.dll in the directory C:\Apache\Apache2.2\bin inorder to make the Wiki work. Until I did this I received the error "Could not find a suitable database driver! * For MySQL, compile PHP using --with-mysql, or install the mysql.so module"
Use the MySQL 5.0 Community Edition — the installer file for Windows is 16.4 MB, and it was the version used in this installer.
- Make sure to turn off any firewalls or anti-virus software. These will make your life impossible and not let you install things correctly.
- Run the installer, and make sure you use the typical installation to e.g.
- Immediately after the installation finishes, the wizard offers you the opportunity to configure. Use it, and use the following settings:
- Standard configuration (no other MySQL on this computer)
- Run as a service
- don't check bin paths,
- Enter a root password
- no anonymous account
- At the end, let MySQL's do its processing of the configuration.
- Test your installation by opening the MS-DOS command prompt (not MySQL's!), starting and stopping the MySQL server service by typing
NET START MYSQL, followed by
NET STOP MYSQL.
Make a manual installation using the zipped snapshot version (9 MB, 20 MB unzipped). While the CGI script can work, the zipped version contains all the necessary files, and does not require any additional downloads, so it is recommended.
- Just unzip to a local folder—e.g.
D:/programme/php(from here on called
- Rename the file
- Open the
- Near the middle of the file, change the
extension_dirdirective line, so it reads
extension_dir = "./ext/"(or a different value if you installed your extensions in a different folder)
- Uncomment the
php_mysqli.dllextensions by removing the semicolons that begin their respective lines (quite far at the back, under the heading "Windows extensions")
- Near the middle of the file, change the
- In order to connect PHP to the Apache server as a module, you have to change the
<apache>/conf) by adding the following text to the end of the file:
- User:Serpicozaure/php text
- Use <php-folder> instead of "c:/php/"
- --cqtlc (firstname.lastname@example.org)
- the entry
DirectoryIndex index.htmlneeds to be expanded to:
DirectoryIndex index.html index.php index.php3 index.php4 index.php5
- Expand the system variable
PATHby the adding a semicolon, followed by the PHP directory
<php-folder>To do this, you can right-click on "My Computer", which will bring up the System Control Panel dialog box. If you do this, you can skip to substep three:
- Open the Start Menu, and point to Settings/Control Panel.
- Select "System" from the Classic view.
- Select the "Advanced" tab.
- Click on "Environmental variables"
- On the "System" section, look for the
- Click on "edit"
- Add the PHP entry to the variable, by entering
;<php-folder>, as described above.
- Restart the computer, as it is necessary at this point.
Download a release of MediaWiki. If you're looking to provide patches and help in development, use the version from SVN; if you are going to be an end user, and are not very concerned with having the latest features, download a stable release.
- Unzip your copy into
<apache-folder>/htdocsThe file unzips from 2,7 MB to 10,5 MB.
- Rename the new directory to whatever you would like to have in the URL. If your apache server is running as
http://localhostfor example, installing MediaWiki on
/testwiki/would mean you would access your wiki at
- In order to setup the wiki itself, open a browser of your choice and type in the URL from above. A page will appear that tells you that the wiki is not set up, and that you need to do that first.
- Click the appropriate link and then fill in form. The rest is done automatically.
- After the setup, you are told to move a configuration file from one directory to its parent.
Heureka, the Wiki can be visited!
Timespan: if everything goes well, less than an hour, including download (on a good connection ;-))
What to check if it does not work:
- Are the necessary ports open? (80 for Apache, 3306 for MySQL)
- Apache is installed to a path that is free of blanks?
- Patch for php5apache2.dll and manifest copied to appropriate places?
- .NET installed on the computer or the runtime that is necessary otherwise?
- Browsercache is empty?
- Download the installation file.
- Unzip to
<apache-folder>/htdocs(or whatever folder you configured as the Apache server's document root)(henceforth <apache data diretory>).
- You can rename the new directory to something easier to remember, such as e.g.
/phpmyadmin. the zip has 3.7MB, 12.5 MB unzipped