Install MediaWiki on Apache with mySQL

MediaWiki Logo

From MediaWiki site: MediaWiki is a free software open source wiki package written in PHP, originally for use on Wikipedia.

I decided to give MediaWiki a try as a scripts repository so I thought I’d write a quick guide of how to install it on a Linux/Apache/mySQL server.

Assumptions

  • A fully qualified domain name with a host record pointing to a internet facing server
  • A fully working Linux server (my example is a Debian server)
  • Apache installed on the Linux server and listening on port 80
  • A preconfigured vhost
  • PHP installed
  • mySQL server installed

Installation

1. Download the compressed installation file

wget mediawiki

2. Extract the compressed archive

Extract MediaWiki

3. Copy files from mediawiki-1.23.5 folder to the root folder

MediaWiki CleanUp

4. Create mySQL Database

5.  Create mySQL Database user

6. Grant database permissions to database

7. Flush mySQL privileges

8. Log into the site eg:

http://wiki.example.com

MediaWiki Inital Screen

Click on “Complete the installation”

9. Select the languageMediaWiki Language

10. Click continueMediaWiki Welcome

11. Input all database information

MediaWiki Database Setup

12. Change settings to suit your database requirements

MediaWiki Database Settings

13. Input name of MediaWiki and desired credentials

MediaWiki Name and Credentials

14. Configure options for your MediaWiki

MediaWiki Options

15. Install MediaWikiMediaWiki Install

16. Installation completeMediaWiki Installation Finished

17. Download and copy the LocalSettings.php file to the root of the MediaWiki installationMediaWiki LocalSettings

18. Browse to your MediaWiki installation and log in

Example: http://wiki.example.com

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Browse websites in a Linux terminal

linux-logo-300x300

I stumbled upon a package that allows the user to browse websites in a terminal, I thought I’d spin up a VM and try this for myself…

Installing W3M

This is very simple, requires one package (two if you want images displayed in Xterm)

Browsing

Now this isn’t going to look pretty as it’s in a terminal but it will work

w3m

w3m google.com

Navigation

You can use the arrow keys to navigate to the section you want or use the mouse to click on the particular area.

shift+ b = Take you back a page

shift + u = Gives you a URL prompt

Shift + h = Help menu

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Rebuild locale on Linux

linux-logo-300x300

A quick note on how to rebuild Linux locale, you might get the following errors if your locale is broken:

To find out what locale is set, run the following:

Output should be something like this:

To rebuild the locale, run the following: (using en_AU.UTF-8 as an example)

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

How to Upgrade Cisco Flash Firmware Version

Cisco_logo

 

I recently had to upgrade a Cisco router to a new firmware version, so I thought I’d write up a quick how-to guide.

Prerequisites:

  • Download the new flash version from Cisco (you need a valid Cisco login)
  • TFTP the firmware to the Cisco device
  • Connect to the Cisco device using a console cable (highly recommended!

1. Log into the router
2. Elevate to enable

3. Check to see if the flash is in the correct location

4. Enter configuration terminal

5. Disable current flash

6. Specify flash file

7. Exit out of configuration terminal

8. Display the version

If the last digit in the configuration register is 0 or 1 the n go to next step however if the last digit in the configuration register is between 2 and F then proceed to step 12

9. Enter configuration terminal

10. Run config-register command

11. Exit out of configuration terminal

12. Copy the running to startup

13. Restart the Cisco device

When prompted to save the configuration, enter no

When prompted to confirm and reload, enter yes

If the router reboots and then reboots again straight away, it has not worked and has reverted back to the last firmware version

If it simply reboots, log in and check the version

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.

Citrix XenApp: Event 10001 – A usable server cannot be found on which to launch the application. Check your worker group definitions and load balancing policies to verify appropriate servers are assigned

citrix-logo

After rebooting my Citrix XenApp server,  I was presented with an error in the application event log for the Citrix application stating the following: “A usable server cannot be found on which to launch the application. Check your worker group definitions and load balancing policies to verify appropriate servers are assigned”.

Event_10001

Details blanked out to protect the innocent

After doing a lot of Google searching, I came across a forum with someone with the same problem, to verify the issue I ran the following command:

It gave me a result of “1000” which apparently isn’t right

So to resolve this issue you have to rebuild the perfmon counters, in my example I am using Microsoft Windows 2008

Citrix_XenApp_Qfarm_lodctr
If you need to rebuild the counters for Microsoft Windows Server 2003, see this article here

Additionally, you will find a summary of what the qfarm values are here:

0 to 9998 = This is a normal range for the load manager
99999  = No load evaluator is configured
10000 = load is at 100 percent (full)
10000! = Application disabled for this server
10001 = Out of licenses
10002 = No ICA connections are available for that server
20000 = Incorrect server edition or a license mismatch
99990 = No permission to run qfarm

It fixed the problem for me, hopefully for you too.

Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.