Install MindTouch 1.9 on CentOS 5

    Applies toMindTouch 1.9 to 8.05LicenseAll versions
    Operating SystemLinuxDocumentation TypesSetup
    Community Documentation
    This is an imperfect howto of an installation on CentOS 5.
     

    Install mono repository for fedora 5

    cd /etc/yum.repos.d/
    wget http://www.go-mono.com/download-stab...i386/mono.repo

    The above link is broken - instead, try the RHEL5 instructions at Installing Deki Wiki package on RedHat EL 5 / Fedora 8 / CentOS 5 - which are

    Create the file "/etc/yum.repos.d/mono.repo" with the following content :

     

    [Mono]
    name=Mono Stack (RHEL_5)
    type=rpm-md
    baseurl=http://download.opensuse.org/repositories/Mono/RHEL_5/
    gpgcheck=1
    gpgkey=http://download.opensuse.org/repositories/Mono/RHEL_5/repodata/repomd.xml.key
    enabled=1

    Install mono

    yum install mono-complete

    Install mysql 5.0.48

    As of  23/10/2007 CentOS 5 mysql is < than 5.0.43 and therefore has a bug (please see this thread in the forums)

    As suggested by howlym add a new file utterramblings.repo in /etc/yum.repos/

    Put below content to this new file:
    ***********************************
    [utterramblings]
    name=Jason's Utter Ramblings Repo
    baseurl=http://www.jasonlitka.com/media/EL$r...ver/$basearch/
    enabled=1
    gpgcheck=1
    gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
    **********************************

    You will also need to import the RPM GPG Key:

    **********************************

     rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

    **********************************

    This will let you upgrade/install your mysql to 5.0.48+ (5.0.54 as-of 2008-01-18)

    Be aware that this Repo contains updates to other packages, also, (httpd, etc).   More info on what it may contain can be found at the authors site: http://www.jasonlitka.com/yum-repository/

    Install the other prerequisites

    yum install httpd mysql-server php php-mysql php-gd php-curl php-mbstring ImageMagick wv links pdftohtml mysql-client 


     

    Configure services

    /etc/init.d/mysqld start
    

    /etc/init.d/httpd start

    /sbin/chkconfig --level 35 httpd on

    /sbin/chkconfig --level 35 mysqld on  

    Set mysql root's password

    mysql -u root -e "set password = password('your mysql password');" 

    Create /var/www/.wapi for mono

     

    mkdir /var/www/.wapi
    chown apache /var/www/.wapi 
    

    Edit /etc/php.ini and change the following parameters

    memory_limit = 128M
    post_max_size = 64M
    upload_max_filesize = 64M
     

    Change the shell for the apache user:

    usermod -s /bin/bash apache

    Install Deki Wiki

    mkdir /source 
    cd /source 
    wget http://www.mindtouch.com/s/source.php
    tar xvzf Deki_Wiki_1.9.0_Itasca_source.tar.gz 
    mkdir /var/www/dekiwiki
    cd Deki_Wiki_1.9.0_Itasca_source
    cp -r web/* /var/www/dekiwiki
    

    Copy the Deki Wiki init script

    cp config/dekiwiki-init.redhat /etc/init.d/dekiwiki
    chmod +x /etc/init.d/dekiwiki
    /sbin/chkconfig --level 35 dekiwiki on
    

    Create a log file

    mkdir /var/log/dekiwiki
    touch /var/log/dekiwiki/deki-api.log
    chown apache /var/log/deki-api.log  

    Edit Apache configuration (config/deki-apache.conf)

    Edit the config/deki-apache.conf and change the VirtualHost, ServerName, DocumentRoot, ErrorLog, and CustomLog to match your servers configuration.  For example:

     

    NameVirtualHost *:80
    <VirtualHost *:80>
            ServerName wiki.example.com
    
            ErrorLog /var/log/httpd/error_log
            CustomLog /var/log/httpd/access_log common
    
            DocumentRoot "/var/www/dekiwiki"
    
            RewriteEngine On
            RewriteCond %{REQUEST_URI} ^/$
            RewriteRule ^/$ /index.php?title= [L,NE]
    
            RewriteCond %{REQUEST_URI} ^/@gui/[^.]+$
            RewriteRule ^/@gui/(.*)$ /proxy.php?path=$1 [L,QSA,NE]
    
            RewriteCond %{REQUEST_URI} !^/(@api|editor|skins|config|@gui)/
            RewriteCond %{REQUEST_URI} !^/index\.php
            RewriteCond %{REQUEST_URI} !^/favicon\.ico$
            RewriteCond %{REQUEST_URI} !^/robots\.txt$
            RewriteCond %{QUERY_STRING} ^$ [OR] %{REQUEST_URI} ^/Special:Search
            RewriteRule ^/(.*)$ /index.php?title=$1 [L,QSA,NE]
    
            # deki-api uses encoded slashes in query parameters so AllowEncodedSlashes must be On
            AllowEncodedSlashes On
    
            # mod_proxy rules
            ProxyPass /@api http://localhost:8081 retry=1
            ProxyPassReverse /@api http://localhost:8081
            SetEnv force-proxy-request-1.0 1
            SetEnv proxy-nokeepalive 1
    
    </VirtualHost>
    
    

    Copy apache config:

    cp config/deki-apache.conf /etc/httpd/conf.d/deki-apache.conf

     

    Change directory permissions

    chown -R apache /var/www/dekiwiki
    service httpd restart 
    

    Run the web configuration

    Go to the wiki home page and follow the configuration wizard

    Post-configuration steps

    After the web configuration has finished run the commands listed and test your wiki by viewing it in a browser.
     

    Tag page
    Viewing 1 of 1 comments: view all
    FWIW, I chose to install the other prerequisites I needed from RPMForge and found helpful instructions for doing so (including putting in the yum-priorities package) at http://wiki.centos.org/Repositories/RPMForge

    - Marc
    Posted 17:27, 7 Apr 2008
    Viewing 1 of 1 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by