NSLU2-Linux
view · edit · print · history

Optware.MediaWiki History

Hide minor edits - Show changes to markup

September 06, 2008, at 09:22 PM by jp --
Changed lines 35-36 from:

You should choose Apache or php-thttpd or lighttpd. Having more than ofe of them installed will be messy.

to:

You should choose Apache or php-thttpd or lighttpd. Having more than one of them installed will be messy.

November 14, 2007, at 02:21 PM by fcarolo -- fixed false wikilinks
Changed line 54 from:

You can also use lighttpd with PHP via FastCGI?. It's fast and easy.

to:

You can also use lighttpd with PHP via FastCGI. It's fast and easy.

November 10, 2007, at 01:36 PM by case --
Changed lines 60-61 from:

Still I'm unhappy with the many php-fcgi instances and am going to try independend fcgi spawning. Besides, all works well.

to:

Still I was unhappy with the many php-fcgi instances, but using externally spawned php-fcgi helps to reduce them to 3 at least. Besides, all works well. Mediawiki's install script does not identify eAccelerator (for me, v0.9.5.2 came with php-fcgi 5.2.4), but I didn't bother; also, compression could improve performance (?), but I also didn't spend time on that. Will have to see how this compares against using apache in terms of speed and consumed resources.

November 10, 2007, at 01:07 PM by case --
Changed lines 54-56 from:

You should use lighttpd with PHP via FastCGI?, see DeployPHPWebAppUsingFastCGI for how to change the configuration of lighttpd and should work well.

to:

You can also use lighttpd with PHP via FastCGI?. It's fast and easy. See DeployPHPWebAppUsingFastCGI for how to change the configuration of lighttpd to support fast-cgi and php. I also changed lighttpd.conf thus: server.username="nobody" server.groupname="nobody". This needs chmod a+w /opt/var/log/lighttpd/* Still I'm unhappy with the many php-fcgi instances and am going to try independend fcgi spawning. Besides, all works well.

November 09, 2007, at 11:38 PM by carlb -- mediawiki.org
Changed lines 8-9 from:

For full documentation see: http://wikipedia.sourceforge.net/

to:

For full documentation see: http://wikipedia.sourceforge.net and http://mediawiki.org - there is also some info on http://meta.wikimedia.org but this is in the process of being moved.

November 09, 2007, at 06:57 PM by case -- lighttpd also works well
Changed lines 35-36 from:

You should choose Apache or php-thttpd. Having both installed will be messy

to:

You should choose Apache or php-thttpd or lighttpd. Having more than ofe of them installed will be messy.

Changed lines 47-48 from:

You should choose Apache or php-thttpd.

to:

You should choose Apache or php-thttpd or lighttpd.

Added lines 52-56:

lighttpd

You should use lighttpd with PHP via FastCGI?, see DeployPHPWebAppUsingFastCGI for how to change the configuration of lighttpd and should work well.

Changed lines 58-59 from:
  • Produces error during initial setup: Notice: Undefined index: SERVER_ADMIN in /opt/share/www/mediawiki/config/index.php on line 338 - appears to be harmless
to:
  • Produces error during initial setup: Notice: Undefined index: SERVER_ADMIN in /opt/share/www/mediawiki/config/index.php on line 338 (no matter which webserver you use) - appears to be harmless
Changed lines 111-114 from:

Anyone tried the cherokee or lighttpd with php-fcgi setup? see DeployPHPWebAppUsingFastCGI

If you are not sure if to use MediaWiki or DokuWiki? there is a useful comparrison at wikimatrix dot org.

to:

Anyone tried the cherokee with php-fcgi setup? see DeployPHPWebAppUsingFastCGI

If you are not sure if to use MediaWiki or DokuWiki? there is a useful comparison at wikimatrix dot org.

October 24, 2007, at 09:48 AM by Einstein1974 --
Changed lines 118-119 from:

Ofcourse without the bullets!@@

to:

Ofcourse without the bullets!

Added lines 121-122:
October 24, 2007, at 09:46 AM by Einstein1974 --
Changed lines 113-118 from:
  1. PHP Activation Code for UnSlung? with Apache
    1. LoadModule? php5_module libexec/libphp5.so
    2. AddHandler? php5-script php
    3. AddType? text/html php
    4. AddType? application/x-httpd-php-source phps
to:

Ofcourse without the bullets!@@

October 24, 2007, at 09:43 AM by Einstein1974 --
Changed lines 114-118 from:

LoadModule? php5_module libexec/libphp5.so AddHandler? php5-script php AddType? text/html php AddType? application/x-httpd-php-source phps

to:
  1. LoadModule? php5_module libexec/libphp5.so
  2. AddHandler? php5-script php
  3. AddType? text/html php
  4. AddType? application/x-httpd-php-source phps
October 24, 2007, at 09:42 AM by Einstein1974 --
October 24, 2007, at 09:41 AM by Einstein1974 -- PHP list
Added lines 109-124:

Error; PHP-files are downloaded instead of run In a configuration with Unslung 6.8beta and Apache I had to add te following lines to /opt/etc/apache2/httpd.conf to get the PHP code running:

  1. PHP Activation Code for UnSlung? with Apache

LoadModule? php5_module libexec/libphp5.so AddHandler? php5-script php AddType? text/html php AddType? application/x-httpd-php-source phps

I also had to add index.php to the line 'DirectoryIndex? index.html' thus making this line 'DirectoryIndex? index.php index.html' Now MediaWiki runs OK, still a bit slow though....

May 10, 2007, at 10:15 AM by micwarr --
Changed lines 56-57 from:
to:
  1. Include etc/apache2/conf.d/php.conf
May 10, 2007, at 10:14 AM by micwarr -- comment re: php running in Apache
Added lines 55-57:

[Comment] micwarr To get php running under Apache, I needed to add this line to httpd.conf:

May 09, 2007, at 05:57 AM by micwarr --
Added lines 30-32:

[Comment] micwarr I had to run the following command to get mysqladmin to work

  1. ln -s /opt/lib/mysql/libmysqlclient.so /lib/libmysqlclient.so.14
January 29, 2007, at 11:39 PM by Parminder -- /etc/httpd/conf.d/mediawiki.conf controls the access rights of mediawiki directories
Added lines 67-71:

Hi Lee, I have faced the same problem. It occurs, because we are trying to access the wikiserver from some other client (not the localhost). and in /etc/httpd/conf.d/mediawiki.conf only the localhost 127.0.0.1 is allowed to access config directory. change / add your clients IP in /etc/httpd/conf.d/mediawiki.conf allowed list and restart apache. it should work.

Cheers Parminder

June 04, 2006, at 10:17 AM by Glenn --
Changed lines 94-96 from:

Anyone tried the cherokee or lighttpd with php-fcgi setup? see DeployPHPWebAppUsingFastCGI

to:

Anyone tried the cherokee or lighttpd with php-fcgi setup? see DeployPHPWebAppUsingFastCGI

If you are not sure if to use MediaWiki or DokuWiki? there is a useful comparrison at wikimatrix dot org.

May 08, 2006, at 03:25 AM by Peter Enzerink -- php-thttpd now works as of php 5.0.5
Changed lines 18-19 from:
  • Decide whether to use Apache or php-thttpd (Only Apache works at present)
to:
  • Decide whether to use Apache or php-thttpd
Changed lines 50-55 from:
  • Complains about dl() not being supported on multi-threaded servers even though I set disable_dl = Off.
  • Complains about mysql extension not being loaded even though the modules are configured via php-mysql.
    • I disabled the check in install-utils.inc to progress.
  • Complains that PHP's XML module is missing.
    • Stuck at this point. Have installed libxml2 and expat to no avail.
to:
  • Produces error during initial setup: Notice: Undefined index: SERVER_ADMIN in /opt/share/www/mediawiki/config/index.php on line 338 - appears to be harmless
May 04, 2006, at 11:47 PM by Brian Zhou --
Added lines 95-98:

Comments

Anyone tried the cherokee or lighttpd with php-fcgi setup? see DeployPHPWebAppUsingFastCGI

April 26, 2006, at 05:14 AM by Peter Enzerink -- Summarise current status of php-thttp support
Changed lines 50-52 from:
  • Complains about dl() not being supported on mutli-threaded servers even though I set disable_dl = Off
  • Complains about mysql extension not being loaded even though the modules are configured via php-mysql
to:
  • Complains about dl() not being supported on multi-threaded servers even though I set disable_dl = Off.
  • Complains about mysql extension not being loaded even though the modules are configured via php-mysql.
    • I disabled the check in install-utils.inc to progress.
  • Complains that PHP's XML module is missing.
    • Stuck at this point. Have installed libxml2 and expat to no avail.
April 26, 2006, at 05:10 AM by Peter Enzerink -- Start some doco on using php-thttpd
Added lines 12-14:

These instructions assume that you have not run mediawiki on your slug before; for information on how to remove a mediawiki installation see below.

Changed lines 17-20 from:

(These instructions assume that you have not run mediawiki on your slug before; for information on how to remove a mediawiki installation see below).

  1. Run ipkg update to make sure ipkg knows all about the state of the feeds.
  2. If you do not already have it, install mysql:
to:
  • Run ipkg update to make sure ipkg knows all about the state of the feeds.
  • Decide whether to use Apache or php-thttpd (Only Apache works at present)

MySQL

  • If you do not already have it, install mysql:
Changed lines 30-31 from:
  1. If you do not already have them, install apache and php:
    1. ipkg install php-apache eaccelerator (eaccelerator is optional, but highly recommended)
to:

Apache

You should choose Apache or php-thttpd. Having both installed will be messy

  • If you do not already have them, install apache and php:
    1. ipkg install php-apache (eaccelerator is optional, but highly recommended)
Changed lines 41-55 from:
  1. Install mediawiki
to:

php-thttpd

You should choose Apache or php-thttpd.

  • If you do not already have them, install php-thttpd and php:
    1. ipkg install php-thttpd

Issues

  • Complains about dl() not being supported on mutli-threaded servers even though I set disable_dl = Off
  • Complains about mysql extension not being loaded even though the modules are configured via php-mysql

MediaWiki

  • Install mediawiki
February 22, 2006, at 02:47 PM by Lee Kimber -- Asked permissions denied question
Added lines 35-44:

[Comment] Lee At this point, I get:

Forbidden
You don't have permission to access /mediawiki/config/index.php on this server.

I have tried changing ownership of the mediawiki to nobody (which I think is the user apache runs as). I have also tried changing ownership of the entire /opt directory to nobody but that does not alter this message.

Any clues?

May 15, 2005, at 05:27 PM by barrym --
Changed line 22 from:

If you forget your password, look in the MySQL section.

to:

If you forget your MySQL root password, look in the MySQL section for instructions on how to reset it.\\

Added line 24:
May 15, 2005, at 05:22 PM by barrym --
Changed lines 20-23 from:
  1. (Optional) You might also want to set a root password for your mysql configuration. When you install mysql for the first time, a message will be displayed telling you how to do this. If you edited my.cnf at the previous stage and enabled network access to mysql, then you MUST set a password; likewise if you plan to use mysql for anything other than mediawiki, or if anyone has shell access to your slug who does not also have sysop access to your wiki.
to:
  1. (Optional) You might also want to set a root password for your mysql configuration. When you install mysql for the first time, a message will be displayed telling you how to do this. If you edited my.cnf at the previous stage and enabled network access to mysql, then you MUST set a password; likewise if you plan to use mysql for anything other than mediawiki, or if anyone has shell access to your slug who does not also have sysop access to your wiki.

    If you forget your password, look in the MySQL section.

\\

April 27, 2005, at 07:30 AM by jp30 --
Added line 31:
  1. Mediawiki may offer to enable EAccelerator? or Turck support. Don't enable this. It works, but will actually make mediawiki slower by increasing memory consumption.
April 19, 2005, at 04:08 AM by jp30 --
Added lines 8-9:

For full documentation see: http://wikipedia.sourceforge.net/

April 19, 2005, at 02:02 AM by jp30 --
Changed lines 38-42 from:

You can remove the mediawiki software from your system in the usual way: ipkg remove mediawiki. However, that will leave two things behind:

  • The mediawiki configuration you created with the web configuration tool, which is stored in /opt/share/www/mediawiki/LocalSettings?.php, or possibly in /opt/share/www/mediawiki/config/LocalSettings?.php if you didn't complete the configuration process.
  • The wiki data itself, which is stored in a directory under /opt/var/lib/mysql. The name of this directory depends on the answers you filled in the forms when you configured mediawiki for the first time; by default it would be in /opt/var/lib/mysql/wikidb
to:

You can remove the mediawiki software from your system in the usual way: ipkg remove mediawiki. However, that will leave three things behind:

  • The mediawiki configuration in /opt/share/www/mediawiki/config/LocalSettings?.php.
  • Possibly, an uninstalled mediawiki configuration stored in /opt/share/www/mediawiki/config/LocalSettings?.php
  • The wiki data itself, which is stored in a directory under /opt/var/lib/mysql. The name of this directory depends on the answers you filled in the forms when you configured mediawiki for the first time; with the default settings, it would be in /opt/var/lib/mysql/wikidb
April 19, 2005, at 01:59 AM by jp30 --
Changed line 40 from:
  • The mediawiki configuration you created with the web configuration tool, which is stored in /opt/share/www/mediawiki/LocalSettings?.php
to:
  • The mediawiki configuration you created with the web configuration tool, which is stored in /opt/share/www/mediawiki/LocalSettings?.php, or possibly in /opt/share/www/mediawiki/config/LocalSettings?.php if you didn't complete the configuration process.
Changed lines 47-48 from:
  1. rm /opt/share/www/mediawiki/LocalSettings?.php
to:
  1. rm -f /opt/share/www/mediawiki/LocalSettings?.php
  2. rm -f /opt/share/www/mediawiki/config/LocalSettings?.php
April 19, 2005, at 01:57 AM by jp30 --
Changed line 23 from:
  1. Apache should now be running on your slug on port 8000: check that it is by navigating to http://192.168.1.77:8000/ with a web browser (assuming the IP of your slug is 192.168.1.77). You should see a generic greeting from apache.
to:
  1. Apache should now be running on your slug on port 8000: check that it is by navigating to http://192.168.1.77:8000/ with a web browser (assuming the IP of your slug is 192.168.1.77). You should see a generic greeting from apache.
Changed line 28 from:
  1. Navigate with your web browser to http://192.168.1.77:8000/mediawiki/config (assuming your slug's IP number is 192.168.1.77, and that apache is still set up on port 8000), and fill in the form.
to:
  1. Navigate with your web browser to http://192.168.1.77:8000/mediawiki/config/ (assuming your slug's IP number is 192.168.1.77, and that apache is still set up on port 8000), and fill in the form.
Changed line 49 from:
  1. Navigate your browser to http://192.168.1.77:8000/mediawiki/config and follow the prompts.
to:
  1. Navigate your browser to http://192.168.1.77:8000/mediawiki/config and follow the prompts.
April 19, 2005, at 01:54 AM by jp30 --
Changed line 25 from:
  1. (Optional) Now is a good time to install phpMyAdmin, if you want lower-level access to mysql. If you install phpMyAdmin, you MUST set a root mysql password. Don't worry, you can do this with phpMyAdmin itself. See the phpMyAdmin page for details.
to:
  1. (Optional) Now is a good time to install phpMyAdmin, if you want lower-level access to mysql. If you install phpMyAdmin, you MUST set a root mysql password. Don't worry, you can do this with phpMyAdmin itself. See the phpMyAdmin page for details.
Changed line 33 from:
  1. (Optional) For security, delete the config directory from the mediawiki distribution: rm -rf /opt/share/www/mediawiki/config
to:
  1. (Optional) For security, delete the config directory from the mediawiki distribution: rm -rf /opt/share/www/mediawiki/config
Changed lines 45-49 from:

If you want to reconfigure an existing mediawiki, delete /opt/share/www/mediawiki/LocalSettings?.php, and reinstall mediawiki with ipkg install mediawiki

to:

If you want to reconfigure an existing mediawiki:

  1. rm /opt/share/www/mediawiki/LocalSettings?.php
  2. Reinstall mediawiki with ipkg install mediawiki -force_reinstall
  3. Navigate your browser to http://192.168.1.77:8000/mediawiki/config and follow the prompts.
April 19, 2005, at 01:50 AM by jp30 --
Added lines 1-45:

MediaWiki for Unslung

(:nolinkwikiwords:)

"Instant wiki, just add slug"

How to install

To set up mediawiki on an nslu2 running Unslung, do the following:

(These instructions assume that you have not run mediawiki on your slug before; for information on how to remove a mediawiki installation see below).

  1. Run ipkg update to make sure ipkg knows all about the state of the feeds.
  2. If you do not already have it, install mysql:
    1. ipkg install mysql
    2. (Optional) You may wish to edit /opt/etc/my.cnf at this time.
    3. (Optional) You might also want to set a root password for your mysql configuration. When you install mysql for the first time, a message will be displayed telling you how to do this. If you edited my.cnf at the previous stage and enabled network access to mysql, then you MUST set a password; likewise if you plan to use mysql for anything other than mediawiki, or if anyone has shell access to your slug who does not also have sysop access to your wiki.
  3. If you do not already have them, install apache and php:
    1. ipkg install php-apache eaccelerator (eaccelerator is optional, but highly recommended)
    2. If apache or php ask you whether you want to replace your existing configuration files, and you don't know what this means, say (Y)es.
    3. Make sure apache has restarted by running /opt/etc/init.d/S80apache
    4. Apache should now be running on your slug on port 8000: check that it is by navigating to http://192.168.1.77:8000/ with a web browser (assuming the IP of your slug is 192.168.1.77). You should see a generic greeting from apache.
    5. (Optional) You might now want to edit /opt/etc/apache2/httpd.conf to move your web server to the customary port 80. If you do that, you will also have to disable or reconfigure the slug's built-in thttpd.
    6. (Optional) Now is a good time to install phpMyAdmin, if you want lower-level access to mysql. If you install phpMyAdmin, you MUST set a root mysql password. Don't worry, you can do this with phpMyAdmin itself. See the phpMyAdmin page for details.
  4. Install mediawiki
    1. ipkg install mediawiki
    2. Navigate with your web browser to http://192.168.1.77:8000/mediawiki/config (assuming your slug's IP number is 192.168.1.77, and that apache is still set up on port 8000), and fill in the form.
    3. If you set a mysql root password, enter it in the DB root password field.
    4. Click "install" and wait until you see the "Success!" message.
    5. Move the mediawiki configuration into place: cp /opt/share/www/mediawiki/config/LocalSettings?.php /opt/share/www/mediawiki/
    6. Set the permissions on the configuration file: chmod 0644 /opt/share/www/mediawiki/LocalSettings?.php
    7. (Optional) For security, delete the config directory from the mediawiki distribution: rm -rf /opt/share/www/mediawiki/config
  5. Your mediawiki configuration is now ready: navigate your browser to http://192.168.1.77:8000/mediawiki to begin using it.

How to uninstall

You can remove the mediawiki software from your system in the usual way: ipkg remove mediawiki. However, that will leave two things behind:

  • The mediawiki configuration you created with the web configuration tool, which is stored in /opt/share/www/mediawiki/LocalSettings?.php
  • The wiki data itself, which is stored in a directory under /opt/var/lib/mysql. The name of this directory depends on the answers you filled in the forms when you configured mediawiki for the first time; by default it would be in /opt/var/lib/mysql/wikidb

If you want to totally delete all trace of a mediawiki installation from your system you must delete those files manually.

If you want to reconfigure an existing mediawiki, delete /opt/share/www/mediawiki/LocalSettings?.php, and reinstall mediawiki with ipkg install mediawiki

view · edit · print · history · Last edited by jp.
Based on work by fcarolo, case, carlb, Einstein1974, micwarr, Parminder, Glenn, Peter Enzerink, Brian Zhou, Lee Kimber, barrym, and jp30.
Originally by jp30.
Page last modified on September 06, 2008, at 09:22 PM