Topic on Project:Support desk

Trying to install MediaWiki for 2 hours

2
FurkanIpek (talkcontribs)

I downloaded xampp v1.8.3 and downloaded mediawiki via git bash using "git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git" I extracted "core" to htdocs in xampp file directory, opened xampp control and started apache and mysql. I copied the index of DefaultSettings.php and created a LocalSettings.php with the same index as DefaultSettings.php. Then changed DBuser to root and password to two single quotes in a row (i do not have password for root user and wiki doesn't show two blank single quotes). In the installation guide, it says that "If you already have a database server and know the root password for it, the MediaWiki installation script can create a new database for you." yet when I type localhost/core/index.php, I get an error like this:

Sorry! This site is experiencing technical difficulties.

Try waiting a few minutes and reloading.

(Cannot contact the database server)

Additionally, I tried to create db by myself with the following code:

create database wikidb; (I also changed the DBname in LocalSettings.php) grant index, create, select, insert, update, delete, alter, lock tables on wikidb.* to 'root'@'localhost' identified by ; (again there are two single quotes in a row after identified by)

mysql creates db yet returns an empty result set.(I think this means that granting was unsuccessful)

After creating db, localhost/core/index.php gives the following error:

"A database query error has occurred. This may indicate a bug in the software."

What should I do? Thank you guys in advance:)

88.130.122.242 (talkcontribs)

Hi!

If you are not a developer, then you should probably not use the Git checkout, but the regular tarballs. Get the file from here: http://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.2.tar.gz and extract that one into your htdocs directory.

After that make sure your servers (Apache and MySQL) are running and visit the wiki with your webbrowser. You will then be guided through the rest of the installation process. See Manual:Installation_guide for more information on how to install MediaWiki!

Reply to "Trying to install MediaWiki for 2 hours"