<?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_Slackware_Linux</id>
	<title>Help:Running MediaWiki on Slackware 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_Slackware_Linux"/>
	<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_Slackware_Linux&amp;action=history"/>
	<updated>2026-05-01T05:58:19Z</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_Slackware_Linux&amp;diff=1812&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_Slackware_Linux&amp;diff=1812&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_Slackware_Linux&amp;diff=1811&amp;oldid=prev</id>
		<title>65.43.2.143: /* Configuration of MySQL */</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_Slackware_Linux&amp;diff=1811&amp;oldid=prev"/>
		<updated>2006-05-02T14:07:34Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Configuration of MySQL&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|system admin toc}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;-[[MediaWiki User's Guide]]: [[Running MediaWiki]]&lt;br /&gt;
&lt;br /&gt;
'''''Warning: no promises of security are made in this guide. It was intended to be run on an offline workstation.'''''&lt;br /&gt;
&lt;br /&gt;
== System ==&lt;br /&gt;
*Slackware Linux full install: [http://www.slackware.com]&lt;br /&gt;
**Apache: [http://www.apache.org]&lt;br /&gt;
**MySQL: [http://www.mysql.org]&lt;br /&gt;
**MediaWiki: [http://sourceforge.net/projects/wikipedia]&lt;br /&gt;
**Cur dump of the database (20031231_cur_table.sql.bz2): [http://download.wikimedia.org]&lt;br /&gt;
&lt;br /&gt;
Slackware's full installation includes Apache, MySQL, and PHP, though some administrative work is still needed to get them up and running.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
&lt;br /&gt;
For this guide, I will make the following assumptions about names, directories, and the like, but you will want to make some of them different:&lt;br /&gt;
&lt;br /&gt;
* '''name''' - The wiki needs a name; this example is called '''vicuna'''.&lt;br /&gt;
* '''database''' - It also needs a database, which will also be called '''vicuna''' in this example.&lt;br /&gt;
* '''passwords''' - There are several passwords involved, most importantly the password for the wiki database, and the initial administrator account you'll create when running the configuration page.&lt;br /&gt;
* '''directory''' - The directory where the wiki will be installed. In this example, it's '''/var/wiki'''.&lt;br /&gt;
&lt;br /&gt;
== Configuration of Apache ==&lt;br /&gt;
&lt;br /&gt;
At a minimum, the webserver must access your wiki on demand. There are better and more complex ways of setting it up, but this will suffice. In /etc/apache/httpd.conf, in the section &amp;lt;code&amp;gt;IfModule mod_alias.c&amp;lt;/code&amp;gt;, add the following line:&lt;br /&gt;
&lt;br /&gt;
 Alias /wiki/ /var/wiki&lt;br /&gt;
&lt;br /&gt;
Replace &amp;lt;code&amp;gt;/var/wiki&amp;lt;/code&amp;gt; with the directory you've chosen.&lt;br /&gt;
&lt;br /&gt;
Apache will not be configured to use PHP by default, so you may need to do the following.&lt;br /&gt;
&lt;br /&gt;
# Edit &amp;lt;code&amp;gt;/etc/apache/httpd.conf&amp;lt;/code&amp;gt; by uncommenting the line &amp;lt;code&amp;gt;#Include /etc/apache/mod_php.conf&amp;lt;/code&amp;gt;&lt;br /&gt;
# Edit &amp;lt;code&amp;gt;/etc/apache/mod_php.conf&amp;lt;/code&amp;gt; by adding &amp;lt;code&amp;gt;.phtml&amp;lt;/code&amp;gt; to the line &amp;lt;code&amp;gt;AddType application/x-httpd-php .php&amp;lt;/code&amp;gt;&lt;br /&gt;
# If Apache isn't running, enter &amp;lt;code&amp;gt;apachectl start&amp;lt;/code&amp;gt;, otherwise, do &amp;lt;code&amp;gt;apachectl restart&amp;lt;code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Configuration of MySQL ==&lt;br /&gt;
&lt;br /&gt;
Perform the following commands as root.&lt;br /&gt;
&lt;br /&gt;
# Copy one of the MySQL configuration files in /etc to my.cnf: &amp;lt;br&amp;gt;&amp;lt;code&amp;gt;cp /etc/my-meduium.cnf /etc/my.cnf&amp;lt;/code&amp;gt;&lt;br /&gt;
# Initialize the MySQL databases (only necessary once per system, but harmless):&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;su mysql -c mysql_install_db&amp;lt;/code&amp;gt;&lt;br /&gt;
# Start the MySQL daemon:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mysqld_safe --user=mysql &amp;amp;&amp;lt;/code&amp;gt;&lt;br /&gt;
# Set the root password:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mysqladmin -u root password '''''password'''''&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You probably want MySQL to start at system boot time. You must edit a couple of init scripts to accomplish this.&lt;br /&gt;
&lt;br /&gt;
* Place the startup script:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;cp /usr/share/mysql/mysql.server /etc/rc.d/rc.mysql&amp;lt;/code&amp;gt;&lt;br /&gt;
* Edit &amp;lt;code&amp;gt;/etc/rc.d/rc.M&amp;lt;/code&amp;gt; and add the following text near the end:&lt;br /&gt;
&lt;br /&gt;
 # Start the MySQL server&lt;br /&gt;
 if [ -x /etc/rc.d/rc.mysql ]; then&lt;br /&gt;
   . /etc/rc.d/rc.mysql start&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
* Edit &amp;lt;code&amp;gt;/etc/rc.d/rc.K&amp;lt;/code&amp;gt; and add the following text above the &amp;quot;Kill all processes&amp;quot; section:&lt;br /&gt;
&lt;br /&gt;
 # Shut down the MySQL server:&lt;br /&gt;
 if [ -x /etc/rc.d/rc.mysql ]; then&lt;br /&gt;
   /etc/rc.d/rc.mysql stop&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
== Configuration of MediaWiki ==&lt;br /&gt;
&lt;br /&gt;
# Go to the directory where you will install Mediawiki, such as &amp;lt;code&amp;gt;/var&amp;lt;/code&amp;gt;, and unpack the package:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;cd /var&amp;lt;/code&amp;gt;&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;tar xzvf ~/mediawiki-1.x.x.tar.gz&amp;lt;/code&amp;gt;&lt;br /&gt;
# Rename the directory to something manageable:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mv mediawiki-1.x.x wiki&amp;lt;/code&amp;gt;&lt;br /&gt;
# Make the config directory world-writable:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;chmod o+w wiki/config&amp;lt;/code&amp;gt;&lt;br /&gt;
# Load the configurating page in your web browser and use it. Go to &amp;lt;code&amp;gt;http://my.host/wiki/config/&amp;lt;/code&amp;gt;.&lt;br /&gt;
# Once the configuration has completed successfully, shut off the config directory:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;chmod 700 wiki/config&amp;lt;/code&amp;gt;&lt;br /&gt;
# And get your LocalSettings.php file installed:&amp;lt;br&amp;gt;&amp;lt;code&amp;gt;mv wiki/config/LocalSettings.php wiki&amp;lt;/code&amp;gt;&lt;br /&gt;
# Edit LocalSettings.php as desired.&lt;br /&gt;
&lt;br /&gt;
== Loading the dump ==&lt;br /&gt;
# Unzip the dump by typing: &amp;lt;code&amp;gt;bunzip2 20031231_cur_table.sql.bz2&amp;lt;/code&amp;gt; (this will take a while depending on the size of the dump and the speed of your workstation).&lt;br /&gt;
# Import the dump in your database by starting a mysql session as above, if you have not done so, loading the wiki database (the name as you gave above), by typing: &amp;lt;code&amp;gt;use &amp;lt;wiki db&amp;gt;&amp;lt;/code&amp;gt; and then importing the data by typing: &amp;lt;code&amp;gt;source /path/20031231_cur_table.sql&amp;lt;/code&amp;gt;. This will also take a long time.&lt;br /&gt;
&lt;br /&gt;
At this point you should have a working install with some data in it. Other things will also need to be set up (classic TODO here).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Running MediaWiki on Linux]]&lt;/div&gt;</summary>
		<author><name>65.43.2.143</name></author>
		
	</entry>
</feed>