User:Himeshi/Installing SMW

This is a small guide for newbies trying to install Semantic MediaWiki using Composer on Windows.


 * Download the Composer installer and run it following the instructions found here..


 * 1) If the Composer installer complains at the end about not having openssl enabled, open C:\wamp\bin\php\php5._._\php.ini and enable the openssl extension by removing the semi-colon in front of the line ;extension=php_openssl.dll. Restart your server and run the installater again.
 * 2) Run the below command. If Composer installed successfully, it will show the list of available commands.
 * composer.phar


 * Create a composer.json file in the MediaWiki base directory. Copy the contents of the composer-example.json file found in that directory to the newly created file. Run,
 * composer.phar install


 * 1) When I ran this, it gave a bunch of errors and therefore I removed the following lines from the composer.json file.
 * 2) If after this step MediaWiki complains of A database query error has occurred. This may indicate a bug in the software. error, run
 * php maintenance/update.php


 * Follow the instructions given in the installation page, except run the composer commands without php in front. For an example the first command should be,
 * composer.phar require mediawiki/semantic-media-wiki "~1.9"