<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ARunning_MediaWiki_on_Red_Hat_Linux</id>
	<title>Help:Running MediaWiki on Red Hat Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ARunning_MediaWiki_on_Red_Hat_Linux"/>
	<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_Red_Hat_Linux&amp;action=history"/>
	<updated>2026-06-17T22:11:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_Red_Hat_Linux&amp;diff=1810&amp;oldid=prev</id>
		<title>Wadmin: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_Red_Hat_Linux&amp;diff=1810&amp;oldid=prev"/>
		<updated>2006-07-19T05:34:39Z</updated>

		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 05:34, 19 July 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Wadmin</name></author>
		
	</entry>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_Red_Hat_Linux&amp;diff=1809&amp;oldid=prev</id>
		<title>24.68.150.144: /* Uninstall httpd,mysql, and php */</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_Red_Hat_Linux&amp;diff=1809&amp;oldid=prev"/>
		<updated>2006-06-02T01:50:32Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Uninstall httpd,mysql, and php&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{H:h}}[[Category:System admin handbook]]&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This article gives detailed instructions for people who want to run MediaWiki on a Red Hat Linux platform.&lt;br /&gt;
&lt;br /&gt;
''Important note: you should consider moving to Fedora Core, as Red Hat Linux is now only supported by the Fedora Legacy project. If you run Red Hat Linux on a public-facing server, you '''SHOULD NOT''' use anything other than version 7.3 or version 9, and enable [http://www.fedoralegacy.org Fedora Legacy] on your box if you are using one of those two versions.''&lt;br /&gt;
&lt;br /&gt;
For information on running MediaWiki on Fedora Core, see [[Help:Running MediaWiki on Fedora Core]].&lt;br /&gt;
&lt;br /&gt;
== Prerequisites: Quick Installation of Apache, MySQL and PHP==&lt;br /&gt;
&lt;br /&gt;
The major difficulties to installing Mediawiki lie in the correct installation of Apache, MySQL and PHP.&lt;br /&gt;
This can be obviated by using the '''xampp''' which contains all three of these, properly configured for use by MediaWiki.&lt;br /&gt;
&lt;br /&gt;
This can be found at: [http://www.apachefriends.org/en/xampp.html http://www.apachefriends.org/en/xampp.html]&lt;br /&gt;
&lt;br /&gt;
Alternatively you can install the three packages separately from your Red Hat or via any third party compilation and packaging effort.  In that case you'll want to read a good tutorial on setting up a so-called '''LAMP''' environment.&lt;br /&gt;
&lt;br /&gt;
One such tutorial, for Redhat 9,  using yum, can be found at:&lt;br /&gt;
&lt;br /&gt;
[http://users.tkk.fi/~tkarvine/lamp-linux-apache-mysql-php.html http://users.tkk.fi/~tkarvine/lamp-linux-apache-mysql-php.html]&lt;br /&gt;
&lt;br /&gt;
== Red Hat Linux 9.0 ==&lt;br /&gt;
&lt;br /&gt;
Though this version of Red Hat Linux is somewhat obsolete, we consider it useful to provide these instructions.  The process will be similar on all other Red Hat and Fedora Core versions, as well as their various derivaties (such as [http://www.centos.org/ CentOS], the &amp;quot;Community Enterprise OS&amp;quot; rebuild of the Red Hat Enterprise Linux, RHEL, sources).&lt;br /&gt;
&lt;br /&gt;
Most operations require root permission. Be sure to ''su'' to the root account before you encounter permissions issues.&lt;br /&gt;
&lt;br /&gt;
=== Preparation ===&lt;br /&gt;
&lt;br /&gt;
There are graphic rpm package management tools in this Linux distribution.&lt;br /&gt;
  type 'redhat-' followed by 'Tab' key to see what are available in your system&lt;br /&gt;
  [root@localhost root]# redhat-&lt;br /&gt;
  redhat-cdinstall-helper            redhat-config-rootpassword&lt;br /&gt;
  redhat-config-date                 redhat-config-securitylevel&lt;br /&gt;
  redhat-config-keyboard             redhat-config-services&lt;br /&gt;
  redhat-config-language             redhat-config-soundcard&lt;br /&gt;
  redhat-config-mouse                redhat-config-time&lt;br /&gt;
  redhat-config-network              redhat-config-users&lt;br /&gt;
  redhat-config-network-cmd          redhat-config-xfree86&lt;br /&gt;
  redhat-config-network-druid        redhat-control-network&lt;br /&gt;
  redhat-config-packages             redhat-install-packages&lt;br /&gt;
  redhat-config-printer              redhat-logviewer&lt;br /&gt;
  redhat-config-printer-gui          redhat-update-gnome-font-install&lt;br /&gt;
  redhat-config-printer-tui          redhat-update-gnome-font-install2&lt;br /&gt;
  redhat-config-proc&lt;br /&gt;
We need to update all software packages used by MediaWiki in this system. 'redhat-config-packages ' is a good GUI tool for us to uninstall them first. But  if you are an expert in rpm, ignore this part.&lt;br /&gt;
&lt;br /&gt;
If you cannot find this tool, using the following command to install it &lt;br /&gt;
   rpm -ivh redhat-config-packages &lt;br /&gt;
&lt;br /&gt;
=== Uninstall httpd,mysql, and php ===&lt;br /&gt;
Using text console&lt;br /&gt;
&lt;br /&gt;
   [root@localhost root]# rpm -e httpd&lt;br /&gt;
Arun Pandey([[arunpandey_08@yahoo.com]]) &amp;amp; Abhijeet Dabhade([[abhijeetdus@yahoo.com]]) ''' (J2EE Developers )'''&lt;br /&gt;
&lt;br /&gt;
... default packages and configuration for RHEL4 worked fine; uninstall necessary? ... ahecox@uchicago.edu&lt;br /&gt;
&lt;br /&gt;
... remove the tested packages and either hand-bomb new ones or grab random packages which have had no QA for the distro at all?  Is that seriously what you're recommending?  Is that anything but completely unwise? ... bishopolis@gmail.com&lt;br /&gt;
&lt;br /&gt;
=== Install mysql ===&lt;br /&gt;
make sure there is no previous version of mysql installed in your system by&lt;br /&gt;
  rpm -q mysql&lt;br /&gt;
&lt;br /&gt;
If there is none, proceed to install phase, otherwise uninstall it by&lt;br /&gt;
  rpm -e mysql&lt;br /&gt;
uninstall any rpms dependent on mysql using the same method too.&lt;br /&gt;
&lt;br /&gt;
Download rpm packages for mysql's server, client and dynamic shared libraries. You can easily search 'mysql' in http://www.google.com for latest rpm packages. &lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
*MySQL-server-4.0.20-0.i386.rpm&lt;br /&gt;
*MySQL-client-4.0.20-0.i386.rpm&lt;br /&gt;
*MySQL-shared-4.0.20-0.i386.rpm&lt;br /&gt;
Then install them one by one, using&lt;br /&gt;
   rpm -ivh MySQL-server-4.0.20-0.i386.rpm&lt;br /&gt;
   rpm -ivh MySQL-client-4.0.20-0.i386.rpm&lt;br /&gt;
   rpm -ivh MySQL-shared-4.0.20-0.i386.rpm&lt;br /&gt;
&lt;br /&gt;
Initialize mysql database after installation by typing&lt;br /&gt;
  mysql_install_db&lt;br /&gt;
Following other instructions from mysql doc to change the default empty password for mysql users to what you like&lt;br /&gt;
&lt;br /&gt;
Don't forget to set the mysqlclient.so path into search path  /etc/ld.so.conf file.  For example, we have:&lt;br /&gt;
                                                                       &lt;br /&gt;
  /usr/lib/libmysqlclient.so&lt;br /&gt;
  Make sure /etc/ld.so.conf contains:&lt;br /&gt;
                                                                                &lt;br /&gt;
      /usr/lib&lt;br /&gt;
                                                                                &lt;br /&gt;
Then run &lt;br /&gt;
 /sbin/ldconfig&lt;br /&gt;
&lt;br /&gt;
=== Install apache web server (httpd)===&lt;br /&gt;
google apache to find the latest source ball. In my case, I used &lt;br /&gt;
httpd-2.0.50.tar.gz&lt;br /&gt;
&lt;br /&gt;
Untar it&lt;br /&gt;
&lt;br /&gt;
 cd httpd-2.0.50&lt;br /&gt;
 ./configure --enable-so&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
Now you have Apache 2.0.50 available under /usr/local/apache2, configured with loadable module support and the standard MPM prefork.&lt;br /&gt;
&lt;br /&gt;
To test the installation use your normal procedure for starting the Apache server, e.g.:&lt;br /&gt;
    /usr/local/apache2/bin/apachectl start&lt;br /&gt;
&lt;br /&gt;
In your web browser, access your own machine by address:&lt;br /&gt;
   http://localhost&lt;br /&gt;
And I am sure you will be proud of what you see now!&lt;br /&gt;
&lt;br /&gt;
and stop the server to go on with the configuration for PHP:&lt;br /&gt;
    /usr/local/apache2/bin/apachectl stop.&lt;br /&gt;
&lt;br /&gt;
=== Install PHP ===&lt;br /&gt;
google php to find the latest php source package.&lt;br /&gt;
In my case, I used php 4.3.8&lt;br /&gt;
&lt;br /&gt;
php-4.3.8.tar.gz&lt;br /&gt;
&lt;br /&gt;
untar it&lt;br /&gt;
 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql&lt;br /&gt;
 make&lt;br /&gt;
 make install&lt;br /&gt;
&lt;br /&gt;
There is some warning about using built-in sql support from PHP, I will figure it out later. But this time, let it be as a quick solution.&lt;br /&gt;
&lt;br /&gt;
We need to configure the apache web server after the installation by editing httpd.conf                &lt;br /&gt;
 cd /usr/local/apache2/conf&lt;br /&gt;
 vi httpd.conf&lt;br /&gt;
Make sure you see the following line without # in front of it.&lt;br /&gt;
 LoadModule php4_module        modules/libphp4.so&lt;br /&gt;
&lt;br /&gt;
Tell Apache to parse certain extensions as PHP by adding lines into httpd.conf, you may search the file by /AddType first to find the proper place.&lt;br /&gt;
            &lt;br /&gt;
      AddType application/x-httpd-php .php .phtml     &lt;br /&gt;
      AddType application/x-httpd-php-source .phps&lt;br /&gt;
&lt;br /&gt;
=== Install MediaWiki ===&lt;br /&gt;
We are almost done!&lt;br /&gt;
download MediaWiki package , I am using mediawiki-1.3.2.tar.gz&lt;br /&gt;
 tar xzvf mediawiki-1.3.2.tar.gz&lt;br /&gt;
 cp mediawiki /var/www/wiki&lt;br /&gt;
You may change the name and directory as your wish.&lt;br /&gt;
&lt;br /&gt;
Change apache www root to wiki directory by editing &lt;br /&gt;
&lt;br /&gt;
 vi /usr/local/apache2/conf/httpd.conf&lt;br /&gt;
 &lt;br /&gt;
  #DocumentRoot &amp;quot;/usr/local/apache2/htdocs&amp;quot;&lt;br /&gt;
  DocumentRoot &amp;quot;/var/www/wiki&amp;quot;&lt;br /&gt;
And adding wikipedia's index.php into web server's default first page list by expanding the following line &lt;br /&gt;
 DirectoryIndex index.html index.html.var index.php&lt;br /&gt;
Save and quit,&lt;br /&gt;
Start apache server by&lt;br /&gt;
  /usr/local/apache2/bin/apachectl restart&lt;br /&gt;
&lt;br /&gt;
Test what you have achieved by accessing&lt;br /&gt;
 http://localhost&lt;br /&gt;
&lt;br /&gt;
WOW!!!&lt;br /&gt;
&lt;br /&gt;
== Fedora Core 3 ==&lt;br /&gt;
&lt;br /&gt;
This may also be applicable for older versions of Fedora Core. For Fedora Core 4 and later, see [[Help:Running MediaWiki on Fedora Core]].&lt;br /&gt;
&lt;br /&gt;
=== Problems Upgrading from PHP4 to PHP5 ===&lt;br /&gt;
&lt;br /&gt;
I used similar steps as outlined for [[#Red Hat Linux 9.0|Red Hat Linux 9.0]], but found that the PHP installer did not sense that I had php4 pre-installed with the stock installation. Find the line:&lt;br /&gt;
 LoadModule php5_module /usr/lib/httpd/modules/libphp5.so&lt;br /&gt;
inside the &amp;lt;code&amp;gt;/etc/httpd/conf/httpd.conf&amp;lt;/code&amp;gt; file, which is correct for PHP5, but will interact badly with another line:&lt;br /&gt;
 LoadModule php4_module modules/libphp4.so&lt;br /&gt;
in the &amp;lt;code&amp;gt;/etc/httpd/conf.d/php.conf&amp;lt;/code&amp;gt; file.  The &amp;lt;code&amp;gt;libphp5.so&amp;lt;/code&amp;gt; line was put there by PHP's build environment (the &amp;lt;code&amp;gt;make install&amp;lt;/code&amp;gt; step) when I built PHP5 from source.  If you have both lines when running the httpd daemon, then a symptom is that when you navigate to &amp;lt;nowiki&amp;gt;http://localhost&amp;lt;/nowiki&amp;gt;, you will get a blank web page with no errors.  You will also see segmentation violation error messages when you look in the error logs at &amp;lt;code&amp;gt;/var/log/httpd/error_log&amp;lt;/code&amp;gt;, as the two Apache modules will not coexist (which is to be expected).  Note that is using the Apache2 installation that comes with Fedora Core 3, not one built from source.&lt;br /&gt;
&lt;br /&gt;
The solution is to comment out the &amp;lt;code&amp;gt;LoadModule php4_module ...&amp;lt;/code&amp;gt; line in the &amp;lt;code&amp;gt;/etc/httpd/conf.d/php.conf&amp;lt;/code&amp;gt; file and restart the httpd daemon with the &amp;lt;code&amp;gt;service httpd restart&amp;lt;/code&amp;gt; command.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
http://www.php.net/manual/en/install.apache2.php&lt;/div&gt;</summary>
		<author><name>24.68.150.144</name></author>
		
	</entry>
</feed>