Categories: PHP | Solaris

Mediawiki on Solaris10 with Zones and SunStudio and MySQL5

Last updated by: Compukid

Contents

[edit] Overview

The goal is to setup mediawiki on Solaris 10 with an 64-bit database backend and an apache2 frontend with PHP5.

[edit] Hardware

[edit] Software

None of the software will cost money, you will only pay for support and media-kits. All sofware can be dowloaded for free.

[edit] Without full sourcecode available for free

[edit] With full sourcecode available for free

[edit] Global Zone

I will be using SVM/UFS instead of ZFS as ZFS is not yet available in 1/06

# metastat -s multipack -p
multipack/d102 -p /dev/md/multipack/rdsk/d0 -o 31457376 -b 20971520
multipack/d0 -r c1t1d0s0 c1t2d0s0 c1t3d0s0 c1t4d0s0 c1t5d0s0 c1t6d0s0 -k -i 32b
multipack/d101 -p /dev/md/multipack/rdsk/d0 -o 20971584 -b 10485760
multipack/d100 -p /dev/md/multipack/rdsk/d0 -o 32 -b 20971520
# grep multipack /etc/vfstab
/dev/md/multipack/dsk/d100 /dev/md/multipack/rdsk/d100 /opt ufs 2 yes -
/dev/md/multipack/dsk/d101 /dev/md/multipack/rdsk/d101 /export/home ufs 2 yes -
/dev/md/multipack/dsk/d102 /dev/md/multipack/rdsk/d102 /zones ufs 2 yes -

[edit] WebZone001

zonecfg:webzone001> info
zonepath: /zones/webzone001
autoboot: true
pool:
fs:
        dir: /export/home
        special: /export/home
        raw not specified
        type: lofs
        options: []
fs:
        dir: /opt/software
        special: /opt/software
        raw not specified
        type: lofs
        options: []
net:
        address: 192.168.0.15
        physical: hme0
zoneadm -z webzone001
zlogin -C webzone001
PATH=/usr/bin:/opt/SUNWspro/bin:/usr/ccs/bin; export PATH
./configure --prefix=/opt/libxml2; make; make install
groupadd mysql
useradd -g mysql mysql
pkgadd -d .
cp /etc/apache2/httpd.conf-sample /etc/apache2/httpd.conf
./configure --with-apxs2=/usr/apache2/bin/apxs --with-libxml-dir=/opt/libxml2 --with-mysql=/opt/mysql/mysql --with-config-file-path=/etc/apache2 --prefix=/opt/php5 --with-zlib-dir=/usr/lib --with-mysqli=/opt/mysql/mysql/bin/mysql_config
make
make install
  1. cat /etc/apache2/httpd.conf | grep -i php
LoadModule php5_module        libexec/libphp5.so
DirectoryIndex index.php index.html index.html.var
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
svcadm enable svc:/network/http:apache2

[edit] DbZone001

zonecfg:dbzone001> info
zonepath: /zones/dbzone001
autoboot: true
pool:
fs:
        dir: /export/home
        special: /export/home
        raw not specified
        type: lofs
        options: []
fs:
        dir: /opt/software
        special: /opt/software
        raw not specified
        type: lofs
        options: []
net:
        address: 192.168.0.16
        physical: hme0
groupadd mysql
useradd -g mysql mysql
pkgadd -d .
 cd /etc/rc3.d
 ln ../init.d/mysql S99mysql
 cd /etc/rc0.d
 ln ../init.d/mysql K00mysql

[edit] Installation of mediawiki

[edit] Next steps

[edit] Daily administration

[edit] Scaling out

[edit] High Availability

[edit] Disaster Recovery

Retrieved from "http://forge.mysql.com/wiki/Mediawiki_on_Solaris10_with_Zones_and_SunStudio_and_MySQL5"

This page has been accessed 12,205 times. This page was last modified 21:43, 24 January 2011.

Find

Browse
MySQLForge
Main Page
Current events
Recent changes
Random page
Help
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Special pages
New pages
File list
Statistics
Bug reports
More...