User:Guerric > RHEL 5.1 (Tikanga)

RHEL 5.1 (Tikanga)

Table of contents
  1. 1. MySQL Upgrade
  2. 2. Rebuild Apache
  3. 3. Install Mono
    1. 3.1. Notes

Installation notes for installing Deki Wiki on a fresh Red Hat Enterprise Linux Server 5.1 (Tikanga) running CPanel.  This guide assumes you have a fresh server with no data to worry about.  If you have data, then make sure you back it up before proceeding.

MySQL Upgrade

By default cpanel ships with mysql 4.x installed.  Upgrade to 5.x by logging into your WHM. Go to the Server Configuration / Tweak Settings page and change the MySQL version to 5.x.  You will see the note about the software needing to be upgraded. Save the changes and go to Software / Update Server Software page.  Click through the warning message and the new mysql version will be downloaded and installed.  There might be some warnings about mysql failing during the install but these shouldn't be a problem.

Check to see if the mysql server is running by typing service mysql status.  If it is not running they try service mysql start.  If it fails to start with an error message like "Starting MySQLCouldn't find MySQL manager or server", then you need to edit the /etc/my.cnf file and comment out the line "basedir=/var/lib".  service mysql start should now succeed.

Rebuild Apache

At this point you need to rebuid apache in order for it to utilize the new mysql. In WHM, goto Software / Apache Update and follow the steps.  I'm not going to walk through the easy apache setup because it's really easy to do.  But when you rebuild apache make sure you select PHP 5.x since Deki Wiki required PHP 5+.

Install Mono

There is no RHEL 5 rpm yet for mono so in order to get mono on the system the centos 5 extras repository needs to be added to yum. Create a new file in /etc/yum.repos.d/ called centos-5-extras.repo or whatever you find fitting. Just make sure the file extension is .repo. Paste the text below into the new file you created.  We set enabled=0 so that during normal yum calls (ie by cpanel) the centos extras repos are not scanned.

[centos-5-extras]
name=CentOS-5 - $basearch - Extras
#baseurl=http://mirror.centos.org/centos/5/extras/$basearch/
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=$basearch&repo=extras
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
enabled=0

Install mono by typing: yum --enablerepo=centos-5-extras install mono-core
After installing you can verify by typing: mono --version

Notes

If you have trouble with yum and the new repository, you can manually delete all the information by going to the cache folder defined in the /etc/yum.conf file.  Once in the cache dir go ahead and rm -rf on the new repository's folder.  This will force yum to pull down the latest information.  yum clean all did not seem to work for me, hence the need for the manual clean.

Alternatively you can install mono from source, but this is faster.

 

Note To Self

Did you change your dekihost init script to use the "apache" user instead of www-data?

Also, you'll probably need to modify your /etc/passwd and change the
shell for the apache user (/bin/bash instead of /bin/false).

Alternatively, you could create a new user like "dekiwiki" that has permissions to write 
to the following files/directories:

/var/www/deki-hayes/
/var/log/deki-api.log
Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2