<?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_FreeBSD</id>
	<title>Help:Running MediaWiki on FreeBSD - 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_FreeBSD"/>
	<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_FreeBSD&amp;action=history"/>
	<updated>2026-05-01T06:00:49Z</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_FreeBSD&amp;diff=1798&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_FreeBSD&amp;diff=1798&amp;oldid=prev"/>
		<updated>2006-07-19T05:34:38Z</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_FreeBSD&amp;diff=1797&amp;oldid=prev</id>
		<title>24.108.195.109 at 22:10, 25 June 2006</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Help:Running_MediaWiki_on_FreeBSD&amp;diff=1797&amp;oldid=prev"/>
		<updated>2006-06-25T22:10:55Z</updated>

		<summary type="html">&lt;p&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;
''Part of the [[Running MediaWiki]] series.''&lt;br /&gt;
&lt;br /&gt;
Most of the prerequisites for running MediaWiki can be installed on FreeBSD from the ports system (not packages). See http://www.freebsd.org/ports/&lt;br /&gt;
&lt;br /&gt;
MediaWiki itself may also be installed directly from the ports tree (/usr/ports/www/mediawiki).  You may wish to install some of its dependencies beforehand if you want to run some of the newer versions.&lt;br /&gt;
&lt;br /&gt;
== Install Apache, php and MySQL together ==&lt;br /&gt;
This is for FreeBSD 4.11 only.&lt;br /&gt;
Installing php4 will include mysql-client and apache at the same time. I recommend installing these packages through pkg_add rather than stand/sysinstall, because sysinstall has some problem in getting the correct version of packages. After the installation, please check the version of mysql-client and install the same version of mysql-server. The versions of the packages in my system are listed below:&lt;br /&gt;
&lt;br /&gt;
* apache-1.3.29_3.tgz&lt;br /&gt;
* mysql-server-4.0.18_1.tgz&lt;br /&gt;
* mysql-client-4.0.18_1.tgz&lt;br /&gt;
* php4-4.3.6.tgz&lt;br /&gt;
&lt;br /&gt;
The command I use for installation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pkg_add -r php4-4.3.6.tgz&lt;br /&gt;
pkg_add -r mysql-server-4.0.18_1.tgz&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Database ==&lt;br /&gt;
&lt;br /&gt;
Install MySQL from ports, databases/mysql40-server.&lt;br /&gt;
&lt;br /&gt;
== Web server ==&lt;br /&gt;
'''&lt;br /&gt;
Apache can be installed from ports, www/apache13 or www/apache2.&lt;br /&gt;
&lt;br /&gt;
== PHP ==&lt;br /&gt;
'''&lt;br /&gt;
PHP might be installed from ports (lang/php4) and its extensions from lang/php4-extensions. This will make an Apache DSO module, and PHP extensions would be dynamically loaded.&lt;br /&gt;
&lt;br /&gt;
When using www/apache2, don't forget the line &amp;lt;tt&amp;gt;AddType application/x-httpd-php .php .phtml&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;httpd.conf&amp;lt;/tt&amp;gt; .&lt;br /&gt;
&lt;br /&gt;
==== Extensions ====&lt;br /&gt;
You would need these extensions from php4-extensions:&lt;br /&gt;
* php4-mysql - for database, obviously&lt;br /&gt;
* php4-iconv - Character set translations&lt;br /&gt;
* php4-imagick - Image manipulation library&lt;br /&gt;
* php4-ldap - in case of LDAP authentication (future feature)&lt;br /&gt;
* php4-mbstring - for fast multibyte string manipulations&lt;br /&gt;
* php4-pcre - Regular expressions (MW has lots of these)&lt;br /&gt;
* php4-readline - for some features of CLI scripts&lt;br /&gt;
* php4-session - Session support&lt;br /&gt;
* php4-xml - XML Parser&lt;br /&gt;
* php4-zlib - Compressed object storage&lt;br /&gt;
&lt;br /&gt;
This list might be incomplete.&lt;br /&gt;
&lt;br /&gt;
If you are installing the above as separate packages, you need to install graphics/ImageMagick instead of php4-imagick.&lt;br /&gt;
&lt;br /&gt;
Install www/turck-mmcache from ports if you wish to use Turck opcode cache.&lt;br /&gt;
&lt;br /&gt;
== TeX support ==&lt;br /&gt;
&lt;br /&gt;
Install these from ports for math rendering support if you haven't already got them:&lt;br /&gt;
&lt;br /&gt;
* lang/ocaml&lt;br /&gt;
* print/latex&lt;br /&gt;
* print/dvips&lt;br /&gt;
* graphics/ImageMagick&lt;br /&gt;
* print/ghostscript-gnu-nox11&lt;br /&gt;
&lt;br /&gt;
For FreeBSD 4.11 users: please install the following packages instead because dvips is not available in the package list: &amp;lt;br&amp;gt;&lt;br /&gt;
* ocaml&lt;br /&gt;
* teTeX&lt;br /&gt;
* ImageMagick&lt;br /&gt;
* gmake&lt;br /&gt;
teTeX already includes latex and dvips. However, it will conflict with latex2e. So please make sure that your system does not have latex2e.&lt;br /&gt;
&lt;br /&gt;
[[texvc]]'s Makefile requires GNU make. Once ocaml is installed, go into the math/ subdirectory of the MediaWiki package and run 'gmake'.&lt;br /&gt;
The texvc executable will be installed by install.php if you use it and have $wgUseTeX set to true, or you can copy it in manually. Put it in 'math' subdirectory under where wiki.phtml is.&lt;br /&gt;
&lt;br /&gt;
Note that certain versions of FreeBSD (5.3) may require a cvsup of the ports directory to work correctly.  If you attempt this installation and run into errors, try cvsup'ing your ports tree and remaking the above ports -- ImageMagick specifically.&lt;br /&gt;
&lt;br /&gt;
The MediaWiki-1.1.0 and earlier releases use an option for dvips which the ports version doesn't support. The latest CVS version has used a more compatible option; if using an older release, edit render.ml and change &amp;quot;-o -&amp;quot; to &amp;quot;-f&amp;quot; at the end of the first line, then build texvc.&lt;br /&gt;
&lt;br /&gt;
Note that latex, dvips, and convert must be in the PATH for texvc to shell out to them. If apache is started on system startup it may not have /usr/local/bin in the PATH, and this PATH will be inherited by texvc and image output won't happen. Restart apache after boot, or put this into LocalSettings.php:&lt;br /&gt;
&lt;br /&gt;
  putenv(&amp;quot;PATH=&amp;quot;.getenv(&amp;quot;PATH&amp;quot;).&amp;quot;:/usr/local/bin&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
In some installations, dvips seems to have problems with texvc's command line parameters: it doesn't recognize '&amp;lt;tt&amp;gt;ps:-&amp;lt;/tt&amp;gt;' as an input filename specifier for ''stdin''. Change this line to use plain '&amp;lt;tt&amp;gt;-&amp;lt;/tt&amp;gt;' in file &amp;lt;tt&amp;gt;render.ml&amp;lt;/tt&amp;gt; and compile texvc again:&lt;br /&gt;
&lt;br /&gt;
 let cmd_convert finalpath = &amp;quot;/usr/local/bin/convert -quality 100 -density 120 - &amp;quot; ^ finalpath ^ &amp;quot; &amp;gt;/dev/null 2&amp;gt;/dev/null&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Matrix Support ===&lt;br /&gt;
&lt;br /&gt;
The default install of math libraries will not have the asmfonts installed.  Asmfonts are used for matrix, bmatrix, and pmatrix math libraries.&lt;br /&gt;
&lt;br /&gt;
Instructions and fonts can be obtained from the following links:&lt;br /&gt;
&lt;br /&gt;
* http://www.ams.org/tex/distrib.html#unix &lt;br /&gt;
* http://www.ams.org/tex/amsfonts.html&lt;br /&gt;
&lt;br /&gt;
Likely, the fonts will need to be installed in /usr/local/share/texmf&lt;br /&gt;
&lt;br /&gt;
== Memcached ==&lt;br /&gt;
&lt;br /&gt;
Install it from databases/memcached. Please note, that it should not be reachable from outside, as that would cause severe security risks for your installation. If you're running on a jail, your localhost address would be mapped to a Net-visible address.&lt;br /&gt;
&lt;br /&gt;
== Some problems and workarounds ==&lt;br /&gt;
&lt;br /&gt;
*I have different configurations for standalone php and module-php. install.php database functions don't work in standalone php.&lt;br /&gt;
&lt;br /&gt;
:''Workaround - run install.php from commandline to copy files. Then copy it to install2.php and comment out parts which copy files. Also hard-code db root password and delete lines where commandline input is expected. Run install2.php by accessing it from the webserver.''&lt;br /&gt;
&lt;br /&gt;
*I've installed MediaWiki with Cs locales and wiki.phtml doesn't work. &lt;br /&gt;
&lt;br /&gt;
:''LanguageCs needs LanguageUtf8.php to work. Copy LanguageUtf8.php to the same directory as LanguageCs.php''&lt;br /&gt;
&lt;br /&gt;
wiki.phtml still does not work&lt;br /&gt;
&lt;br /&gt;
:''Hard-code including LanguageCs.php after Language.php in Setup.php''&lt;br /&gt;
&lt;br /&gt;
*During installation i get this error message: &lt;br /&gt;
 &amp;quot;PHP's XML module is missing; the wiki requires functions in &lt;br /&gt;
 this module and won't work in this configuration.&lt;br /&gt;
 If you're running Mandrake, install the php-xml package.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
:''Make sure php extensions port is installed.''&lt;br /&gt;
&lt;br /&gt;
 $cd /usr/ports/lang/php(4|5)-extensions&lt;br /&gt;
 $make install distclean&lt;br /&gt;
&lt;br /&gt;
:''select xml from the menu''&lt;br /&gt;
&lt;br /&gt;
 $ldconfig (to link newly installed xml library)&lt;br /&gt;
&lt;br /&gt;
:''Restart apache.''&lt;br /&gt;
&lt;br /&gt;
Next page: [[MediaWiki User's Guide: Configuration]] &amp;gt;&lt;/div&gt;</summary>
		<author><name>24.108.195.109</name></author>
		
	</entry>
</feed>