This assumes that you have already obtained an SSL certificate (I generated a self-signed one) which has been placed in /etc/apache2/ssl/apache.pem and /etc/apache2/ssl/apache.key as referenced in the config above. The LocalSettings.phpfile provides basic configuration settings(based on the DefaultSettings.phpfile) of a MediaWikiinstallation. SSLCertificateKeyFile /etc/apache2/ssl/apache.keyĬustomLog $/access.log combinedĮnable the default SSL site, if you haven't already (this creates a link from sites-enabled to sites-available) sudo a2ensite default-ssl I am using MediaWiki 1.17.0 after installing on a Linux server and completing the entire install process and placing the LocalSettings.php file in the root directory I am receiving an error after clicking the go to your wiki link that says'LocalSettings.php not found'. Assigning permissions to the LocalSettings.php file is done. SSLCertificateFile /etc/apache2/ssl/apache.pem Ensure that the LocalSettings.php file, contains the proper configuration settings of your wiki. To read something like: # Redirect HTTP to HTTPS 1 Fatal error: Call to undefined function enableSemantics () This kind of message appears if the Extension 'Validator' extension is still explicitly invoked. At that point, assuming you have PHP, a database system and a web. Then configure apache2 to redirect all HTTP traffic to HTTPS:Įdit the default SSL configuration (this assumes you are just using the default site): sudo vim /etc/apache2/sites-available/nf LocalSettings.php Something went wrong with the registration or installation, please re-read the instillation instructions. Once youve downloaded the main MediaWiki code, go to the URL for that code in a browser. This makes the server name "protocol relative" so it works with either HTTP or HTTPS. Uncompress the files into the root directory of your website (not in a subdirectory). When the software is fully installed, it might looking something like the image shown in Figure. Download MediaWiki to your local computer. sudo cp /home/ubuntu/LocalSettings.php /etc/mediawiki/. I've just done this on Ubuntu 14 (for the first time today, so there may be a better way!) by setting $wgServer = "///mediawiki" Install web server software, if you haven't already. Create a file and copy the contents of LocalSettings.php inside the directory cat > LocalSettings.php (and paste with the terminal the contents of the downloaded LocalSettings, you can use some editor but using this command pasting the content and the ctrl+c should work).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |