<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JavaChap Blog &#187; Linux</title>
	<atom:link href="http://blog.javachap.com/index.php/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.javachap.com</link>
	<description>Java and Technology musings for the masses</description>
	<lastBuildDate>Tue, 15 Nov 2011 10:19:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>&#9733; Installing OpenLdap on Linux &#8211; CentOS</title>
		<link>http://blog.javachap.com/index.php/installing-openldap-on-centos/</link>
		<comments>http://blog.javachap.com/index.php/installing-openldap-on-centos/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 04:02:15 +0000</pubDate>
		<dc:creator>JavaChap</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[openldap]]></category>

		<guid isPermaLink="false">http://blog.javachap.com/?p=133</guid>
		<description><![CDATA[Install Open Ldap Servers via YUM Edit the /etc/openldap/slapd.conf file to specify the LDAP domain and server To use the slapd LDAP server, modify its configuration file /etc/openldap/slapd.conf, to specify the correct domain and server. The suffix line names the domain for which the LDAP server provides information and should be changed from:suffix "dc=your-domain,dc=com"so that [...]]]></description>
			<content:encoded><![CDATA[<ol>
<li> Install Open Ldap Servers via YUM
<pre class="brush: bash; title: ; notranslate">yum install openldap-servers</pre>
</li>
<li>Edit the /etc/openldap/slapd.conf file to specify the LDAP domain and server
<ol>
<li> To use the slapd LDAP server, modify its configuration file /etc/openldap/slapd.conf, to specify the correct domain and server. The suffix line names the domain for which the LDAP server provides information and should be changed from:suffix "dc=your-domain,dc=com"so that it reflects a fully qualified domain name. For example:
<pre class="brush: plain; title: ; notranslate">suffix &quot;dc=javachap,dc=com&quot;</pre>
</li>
<li> The rootdn entry is the Distinguished Name (DN) for a user who is unrestricted by access controls or administrative limit parameters set for operations on the LDAP directory. The rootdn user can be thought of as the root user for the LDAP directory. In the configuration file, change the rootdn line from its default value as in the following :
<pre class="brush: plain; title: ; notranslate">rootdn &quot;cn=Manager,dc=javachap,dc=com&quot;</pre>
</li>
<li>When populating an LDAP directory over a network, change the rootpw line — replacing the default value with an encrypted password string. To create an encrypted password string, type the following command:
<pre class="brush: bash; title: ; notranslate">/usr/sbin/slappasswd</pre>
<p>When prompted, type and then re-type a password. The program prints the resulting encrypted password to the shell prompt. Next, copy the newly created encrypted password into the /etc/openldap/slapd.conf on one of the rootpw lines and remove the hash mark (#). When finished, the line should look similar to the following example:</p>
<pre class="brush: plain; title: ; notranslate">rootpw {SSHA}vv2y+i233234azrIv70xSSnNAJ4538bb2u</pre>
</li>
</ol>
</li>
<li>Copy the file /etc/openldap/DB_CONFIG.example and put it into/var/lib/ldap as DB_CONFIG
<pre class="brush: bash; title: ; notranslate">cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG</pre>
</li>
<li> Create users.ldif with the following content. This will create 2 users admin, javachap in Admin role.
<pre class="brush: plain; title: ; notranslate">
dn: dc=javachap,dc=com
dc: javachap
objectClass: domain
dn: ou=People,dc=javachap,dc=com
ou: People
objectClass: organizationalUnit
dn: ou=Groups,dc=javachap,dc=com
ou: Groups
objectClass: organizationalUnit

# Engineering Department
dn: ou=Engineering,ou=People,dc=javachap,dc=com
ou: Engineering
objectClass: organizationalUnit

# Admin Group
dn: cn=Admin,ou=Groups,dc=javachap,dc=com
gidNumber: 502
memberUid: admin
memberUid: javachap
cn: Admin
objectClass: posixGroup

# Admin User :
dn: uid=javachap,ou=Engineering,ou=People,dc=javachap,dc=com
sn: Java Chap
userPassword: e235yeXB0f343444bE45Z0s0GmM=
objectClass: shadowAccount
objectClass: person
uid: javachap
cn: Java Chap

# Admin User : admin
dn: uid=admin,ou=Engineering,ou=People,dc=javachap,dc=com
sn: Admin User
userPassword: e2452eXB02222Zk9qYjhUZVBUGmc=
objectClass: shadowAccount
objectClass: person
uid: admin
cn: Administrator
</pre>
</li>
<li>Add the users to ldap with the following command, you need to supply the root dn and password that was setup in step 2.3
<pre class="brush: bash; title: ; notranslate">ldapadd -x -D &quot;cn=Manager,dc=javachap,dc=com&quot; -w password -f users.ldif</pre>
</li>
<li>Start ldap service with the command:
<pre class="brush: bash; title: ; notranslate">/sbin/service ldap start</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.javachap.com/index.php/installing-openldap-on-centos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>&#9733; Installing MediaWiki on Linux – CentOS</title>
		<link>http://blog.javachap.com/index.php/installing-mediawiki-on-linux-centos/</link>
		<comments>http://blog.javachap.com/index.php/installing-mediawiki-on-linux-centos/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 04:22:59 +0000</pubDate>
		<dc:creator>JavaChap</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mediawiki]]></category>

		<guid isPermaLink="false">http://blog.javachap.com/?p=100</guid>
		<description><![CDATA[In this post we will learn how to setup a MediaWiki on CentOS. MediaWiki requires Apache web server, a database server (we’ll use MySQL), and PHP version 5.  I will explain step by step process of installing these required components. Install MySql server and mysql-php module Change 'root' user password for mysql; Create mysql wiki [...]]]></description>
			<content:encoded><![CDATA[<p>In this post we will learn how to setup a <a href="http://www.mediawiki.org/">MediaWiki</a> on CentOS. MediaWiki requires Apache web server, a database server (we’ll use MySQL), and PHP version 5.  I will explain step by step process of installing these required components.</p>
<ol>
<li>Install MySql server and mysql-php module
<pre class="brush: bash; title: ; notranslate">
yum install mysql-server mysql php-mysql
/sbin/chkconfig --levels 235 mysqld on
/sbin/service mysqld start
</pre>
</li>
<li>Change 'root' user password for mysql; Create mysql wiki database and user
<pre class="brush: bash; title: ; notranslate">
mysql
</pre>
<pre class="brush: sql; title: ; notranslate">
mysql&gt; USE mysql;
mysql&gt; UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
mysql&gt; FLUSH PRIVILEGES;
mysql&gt; CREATE DATABASE wiki;
mysql&gt; CREATE USER 'wikiuser'@'localhost' IDENTIFIED BY 'wikipassword';
mysql&gt; GRANT ALL ON wiki.* TO 'wikiuser'@'localhost';
mysql&gt; exit
</pre>
</li>
<li>Download the mediawiki, http://download.wikimedia.org/mediawiki/1.15/mediawiki 1.15.1.tar.gz
<pre class="brush: bash; title: ; notranslate">wget http://download.wikimedia.org/mediawiki/1.15/mediawiki-1.15.1.tar.gz</pre>
</li>
<li> Untar the mediawiki to /var/www/html and give write permissions for config folder (Assuming that /var/www/html is the DocumentRoot)
<pre class="brush: bash; title: ; notranslate">
tar -xvvf mediawiki-1.15.1.tar.gz
mv mediawiki-1.15.1 /var/www/html/wiki
</pre>
</li>
<li>Change the ownership of the wiki directory and grant write permissions to the config directory.
<pre class="brush: bash; title: ; notranslate">
chown -R apache:apache /var/www/html/wiki
chmod a+w /var/www/html/wiki/config
</pre>
</li>
<li>Restart the apache server.
<pre class="brush: bash; title: ; notranslate">
/sbin/service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
</pre>
</li>
<li>Go to http://localhost/wiki/config/index.php
<ul>
<li>Configure Wiki Admin username/password</li>
<li>Configure MySQL  database/username/password</li>
<li>Click Done</li>
</ul>
</li>
<li>Move the config/LocalSettings.php file to the parent directory
<pre class="brush: bash; title: ; notranslate">
mv /var/www/html/wiki/config/LocalSettings.php /var/www/html/wiki
</pre>
</li>
<li>Access wiki http://localhost/wiki</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.javachap.com/index.php/installing-mediawiki-on-linux-centos/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

