Thursday Apr 26, 2007

CoolStack + MediaWiki Take 2

Here is take 2 on instructions. I moved off my SPARC Ultra 20 at work and I'm on my Gateway Solaris 10 Update 3 system. Btw, no, I never got the wireless working...instead, I put a hub in next to my Tivo and Wii and after the kids go to bed I run a not so elegant ethernet cable across my living room...but that's besides the point.

Here we go:
- Download the proper CoolStack for your platform (we need the AMP download, CSKamp_x86.pkg.bz2)
- Download the latest MediaWiki bundle

Unpack and add CoolStack
- bunzip2 CSKamp_x86.pkg.bz2
- pkgadd -d CSKamp_x86.pkg

Patch up PHP5
- Edit the php.ini file (vi /opt/coolstack/php5/lib/php.ini)
- Comment out the extensions = "apc.so" line (according to the BigAdmin tip)
- Add the line "safe_mode=off" to the end of the file

Patch up Apache
- Edit the httpd.conf file (vi /opt/coolstack/apache2/conf/httpd.conf)
- Change the "DirectoryIndex index.html" line to "DirectoryIndex index.php index.html" (This will allow index.php files to be a "home" page in a directory)

Patch up MySQL, I'm following the outline from the article SAMP (Solaris, Apache 2, MySQL 5, and PHP 5) Setup for Solaris 10 OS and Solaris Express, some of the work in the article is done by the pkgadd. I still don't quite have this perfect and had to hack around a bit:
- cd /opt/coolstack/mysql_32bit/bin
- run mysql_install_db
- cd ..
- chown -R mysql:mysql \* (this is what I'm not sure about, but I had to do it to make it work)
- ./bin/mysqld_safe & (now your DB is running)
- /opt/coolstack/mysql_32bit/bin/mysqladmin -u root password 'new-password'
- /opt/coolstack/mysql_32bit/bin/mysqladmin -u root -h myhostname password 'new-password'
- ./bin/mysql -p (enter your new password at the prompt)
- Prepare for MediaWiki using the Installation Guide
-- create database wikidb;
-- grant create, select, insert, update, delete, lock tables on wikidb.\* to 'wikiuser'@'localhost' identified by 'new-password';
-- flush privileges;
-- \\q (quit)

Unpack MediaWiki
- gunzip mediawiki-1.9.3.tar.gz
- tar -xvf mediawiki-1.9.3.tar
- mkdir /opt/coolstack/apache2/htdocs/wiki
- cp -R mediawiki-1.9.3/\* /opt/coolstack/apache2/htdocs/wiki
- cd /opt/coolstack/apache2/htdocs/wiki
- chmod 777 config
- chmod 777 config/\*

Start Apache
- cd /opt/coolstack/apache2/bin
- apachectl start

Configure MediaWiki
- Go to http://localhost/wiki
- Read CAREFULLY and fill everything out
- Hit Install...
- Move the LocalSettings.php from config to the wiki directory

Go back to http://localhost/wiki and enjoy your wiki!

That should be about it, much better than my first post on it!

Enjoy!

CoolStack and MediaWiki

CoolStack rocks. Here was my mission: Get MediaWiki running. I started about it the same old way that Unix people do the job...download PHP, get it compiled with the right flags, oops the dependencies are hosed up, get the latest libxml2, oops, that was too much of the latest, and on and on and I didn't even get through PHP5.

Tuesday I remembered that the CoolStack came out a while ago, and sure enough, one of the packages was the AMP I needed (Apache, MySQL, PHP). So I downloaded it to my Solaris 10 Update 3 SPARC system at work today. One package add (pkgadd -d CSKamp_spark.pkg), everything is added (remember, I was su'd to root for this).

It wasn't a slam dunk to get MediaWiki running (mostly because I am a file permissions hack, not a guru), here is some of my guidance, mileage may vary:

Be sure to tweak your php.ini file according to this tip. Also, add the line "safe_mode=off" to your php.ini file (or you will be warned later during the MediaWiki setup).

Start apache:
cd /opt/coolstack/apache2/bin
apachectl start

I went to my machine's port 80 in the browser and received the "It Works!" web page...badda bing.

I noticed that mysql was not running, but the issues seemed to be a bit deeper than that. I ended up using and modifying many of the instructions at this BigAdmin site to get mysql into the proper state (permissions, security, running, etc...). Hack around, you'll get it.

Next, I downloaded the latest MediaWiki build, untarred it and then copied it to /opt/coolstack/apache2/htdocs/wiki. Change the ./wiki/config directory to be openly writable (I'm bad, I chmod 777 everything...ouch).

Navigate to http://yourhost/wiki/index.php and run through the setup. Anything in red, address quickly.

And, that's about it...it worked. I'll try to post more details when I do it again...and again...and again...

About

pmonday

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today