Difference between revisions of "Mediawiki"

From WA2IAC Wiki
Jump to: navigation, search
m (Debian)
(Fedora (15 - Lovelock))
 
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
Notes regarding install of mediawiki from scratch on various platforms
+
Notes regarding install of mediawiki from scratch on various platforms. In all cases, this was tried on an OpenVZ container (Virtual Server or VPS) instance, and in the case of Fedora, it was also tried on a bare-metal installation (Fedora-15 Lovelock, same as the VPS).
  
 
For those who experience religious fervor over distros, they are listed in alphabetic order.
 
For those who experience religious fervor over distros, they are listed in alphabetic order.
  
== CentOS ==
+
Note: Install of mysql was broken on both Debian and Ubuntu at the time this was written; that needs to be revisited since it was obviously a transient problem.
 +
 
 +
== Installing Mediawiki from Packages ==
 +
=== CentOS ===
 
The CentOS default repos don't have it.
 
The CentOS default repos don't have it.
  
Line 11: Line 14:
 
My solution in the short term is to put it into a Fedora (virtual) slice. Yum ho!
 
My solution in the short term is to put it into a Fedora (virtual) slice. Yum ho!
  
== Debian ==
+
=== Debian ===
 
It's in there.
 
It's in there.
  
Line 20: Line 23:
 
<pre>
 
<pre>
 
# apt-get update
 
# apt-get update
 +
# apt-get upgrade
 
# apt-get install mediawiki
 
# apt-get install mediawiki
 
</pre>
 
</pre>
Since the slice didn't have mysql, php installed, I got the whole ball of wax. As usual with mysql, I got the dialog asking for 'root' passwd. Be sure not to put in something new and then lose it! :-D
+
Since the slice didn't have mysql, php installed, I got the whole ball of wax. It didn't work, particularly mysql-server. I had to start the slice again from scratch. Following is what worked...
  
<b>Intall encountered a problem with mysql</b>
+
The following is somewhat sanitized... Note IP config not saved. (reverse proxy later)
 
<pre>
 
<pre>
130506 12:05:10 [Note] Plugin 'FEDERATED' is disabled.
+
service iptables stop
130506 12:05:10 InnoDB: Initializing buffer pool, size = 8.0M
+
vzctl create 101 --ostemplate debian-6.0-x86 --config basic
130506 12:05:10  InnoDB: Completed initialization of buffer pool
+
vzctl set 101 --ipadd 10.1.38.48 --nameserver 8.8.8.8
130506 12:05:10  InnoDB: Started; log sequence number 0 44233
+
vzctl set 101 --ram 720M --hostname mediawiki --diskspace 12G --swap 1G --save
130506 12:05:10 InnoDB: Starting shutdown...
+
vzctl start 101
130506 12:05:15 InnoDB: Shutdown completed; log sequence number 0 44233
+
vzctl enter 101
 +
</pre>
 +
Once inside...
 +
<pre>
 +
apt-get update
 +
apt-get upgrade
 +
apt-get install mysql-server
 +
...
 +
130506 12:39:48 InnoDB: Starting shutdown...
 +
130506 12:39:53 InnoDB: Shutdown completed; log sequence number 0 44233
 
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
 
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
 
invoke-rc.d: initscript mysql, action "start" failed.
 
invoke-rc.d: initscript mysql, action "start" failed.
 
dpkg: error processing mysql-server-5.1 (--configure):
 
dpkg: error processing mysql-server-5.1 (--configure):
 
  subprocess installed post-installation script returned error exit status 1
 
  subprocess installed post-installation script returned error exit status 1
Setting up libonig2 (5.9.1-1) ...
 
configured to not write apport reports
 
                                      Setting up libqdbm14 (1.8.77-4) ...
 
Setting up php5-common (5.3.3-7+squeeze15) ...
 
Setting up libapache2-mod-php5 (5.3.3-7+squeeze15) ...
 
 
Creating config file /etc/php5/apache2/php.ini with new version
 
Reloading web server config: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
 
.
 
 
Setting up libhtml-template-perl (2.9-2) ...
 
Setting up libhtml-template-perl (2.9-2) ...
Setting up php5 (5.3.3-7+squeeze15) ...
+
configured to not write apport reports
Setting up php5-cli (5.3.3-7+squeeze15) ...
+
                                      dpkg: dependency problems prevent configuration of mysql-server:
 
+
Creating config file /etc/php5/cli/php.ini with new version
+
update-alternatives: using /usr/bin/php5 to provide /usr/bin/php (php) in auto mode.
+
Setting up php5-mysql (5.3.3-7+squeeze15) ...
+
Setting up mediawiki (1:1.15.5-2squeeze5) ...
+
Reloading web server config: apache2apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
+
.
+
dpkg: dependency problems prevent configuration of mysql-server:
+
 
  mysql-server depends on mysql-server-5.1; however:
 
  mysql-server depends on mysql-server-5.1; however:
 
   Package mysql-server-5.1 is not configured yet.
 
   Package mysql-server-5.1 is not configured yet.
 
dpkg: error processing mysql-server (--configure):
 
dpkg: error processing mysql-server (--configure):
 
  dependency problems - leaving unconfigured
 
  dependency problems - leaving unconfigured
Setting up php5-suhosin (0.9.32.1-1) ...
 
 
configured to not write apport reports
 
configured to not write apport reports
 
                                       Errors were encountered while processing:
 
                                       Errors were encountered while processing:
Line 67: Line 62:
 
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
</pre>
 
</pre>
 +
Yoikes! Abort, abort!
  
== Fedora (15 - Lovelock) ==
+
=== Fedora (15 - Lovelock) ===
 
It's in there:
 
It's in there:
 
<pre>
 
<pre>
Line 101: Line 97:
 
</pre>
 
</pre>
  
== Ubuntu ==
+
Had to get a contemporary (non-supported) template of Fedora17 to get this done...
It's in there.
+
 
 +
See Debian above for container creation, etc.
 +
 
 +
Once inside...
 +
<pre>
 +
yum update
 +
yum upgrade
 +
yum install mysql-server
 +
yum install php
 +
yum install mediawiki
 +
</pre>
 +
Not shockingly, installing mediawiki installed tons of dependencies despite the full load of Fedora17 and pre-load of mySQL and php.
 +
 
 +
You wind up with /var/www/wiki and nothing in httpd.conf
 +
 
 +
I found linking /var/www/html/wiki -> /var/www/wiki worked best, but still having a problem with CSS.
 +
 
 +
The CSS problem was SOLVED by creating a link from /var/www/wiki/skins to the skins directory in /usr/share/mediawiki/skins - somehow it was missing.
 +
<pre>
 +
cd /var/www/wiki
 +
ln -s /usr/share/mediawiki/skins skins
 +
</pre>
 +
 
 +
=== Ubuntu ===
 +
See Debian above for container creation, etc.
 +
 
 +
Once inside...
 +
<pre>
 +
apt-get update
 +
apt-get upgrade
 +
apt-get install mysql-server
 +
... Please read the /usr/share/doc/mysql-server-5.5/README.Debian file for    │
 +
│ more information.
 +
</pre>
 +
Similar issue? Couldn't set dbpasswd.

Latest revision as of 21:21, 7 May 2013