Which packages are needed for intstall mediawiki with opencsw?

asked 08 Jan '15, 14:05

cgrzemba's gravatar image

cgrzemba ♦♦
6091318
accept rate: 9%


Install packages:

# pkgutil -y -i mysql56 \
              mysql56client \
              apache2 \
              php5 ap2_modphp5 \
              php5_dom \
              php5_xmlreader \
              php5_xmlwriter \
              php5_xsl \
              php5_json \
              php5_session \
              php5_apc \
              php5_mysqli \
              php5_ctype \
              php5_iconv \
              php5_curl \
              php5_hash \
              php5_zip \
              php5_ldap

Change Webserver Owner (optional) and include httpd-vhosts in /opt/csw/apache2/etc/httpd.conf:

# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User webservd
Group webservd

# Virtual hosts
Include etc/extra/httpd-vhosts.conf

configure in /opt/csw/apache2/etc/extra/httpd_vhost.conf

<VirtualHost *:80>
    ServerName      wiki.example.org
DocumentRoot    "/var/www/mediawiki-1.24.1"
    CustomLog       /var/log/apache2/wiki/access_log combined
    ErrorLog        /var/log/apache2/wiki/error_log
</VirtualHost>

check or add in extra/http_php5.conf

<IfModule php5_module>
    <IfModule mime_module>
        AddType application/x-httpd-php .php
        AddType application/x-httpd-php-source .phps
    </IfModule>
    <IfModule mod_dir.c>
        DirectoryIndex index.html index.php
    </IfModule>
</IfModule>

patch or edit php5.ini (pay special attention the + lines:

*** /etc/opt/csw/php5/php.ini.0 Do. Jan  8 14:21:02 2015
--- /etc/opt/csw/php5/php.ini   Fr. Jan  9 15:31:05 2015
***************
*** 956,963 ****
  ; extension folders as well as the separate PECL DLL download (PHP 5).
  ; Be sure to appropriately set the extension_dir directive.
  ;
! ;extension=session.so
! ;extension=ctype.so
  ;extension=bz2.so
  ;extension=curl.so
  ;extension=fileinfo.so
--- 956,963 ----
  ; extension folders as well as the separate PECL DLL download (PHP 5).
  ; Be sure to appropriately set the extension_dir directive.
  ;
! extension=session.so
! extension=ctype.so
  ;extension=bz2.so
  ;extension=curl.so
  ;extension=fileinfo.so
***************
*** 967,977 ****
  ;extension=intl.so
  ;extension=imap.so
  ;extension=interbase.so
! ;extension=ldap.so
  ;extension=mbstring.so
  ;extension=exif.so      ; Must be after mbstring as it depends on it
  ;extension=mysql.so
! ;extension=mysqli.so
  ;extension=oci8.so      ; Use with Oracle 10gR2 Instant Client
  ;extension=oci8_11g.so  ; Use with Oracle 11gR2 Instant Client
  ;extension=openssl.so
--- 967,977 ----
  ;extension=intl.so
  ;extension=imap.so
  ;extension=interbase.so
! extension=ldap.so
  ;extension=mbstring.so
  ;extension=exif.so      ; Must be after mbstring as it depends on it
  ;extension=mysql.so
! extension=mysqli.so
  ;extension=oci8.so      ; Use with Oracle 10gR2 Instant Client
  ;extension=oci8_11g.so  ; Use with Oracle 11gR2 Instant Client
  ;extension=openssl.so
***************
*** 997,1004 ****
--- 997,1009 ----
  ;extension=sybase_ct.so
  ;extension=tidy.so
  ;extension=xmlrpc.so
+ extension=dom.so
  extension=xsl.so
  extension=zip.so
+ extension=json.so
+ extension=apc.so
+ extension=iconv.so
+ extension=phar.so
+ extension=hash.so

  ;;;;;;;;;;;;;;;;;;;
  ; Module Settings ;

you can check the PHP5 settings:

# php -m
[PHP Modules]
apc
Core
ctype
date
dom
ereg
fileinfo
filter
intl
json
ldap
libxml
mhash
mysqli
pcre
Phar
Reflection
session
SimpleXML
SPL
sqlite3
standard
xml
xsl
zlib

[Zend Modules]

setup a DB, e.g. MySQL DB

# su - mysql
$ mysql_install_db
$ /opt/csw/bin/amd64/mysqld_safe &
$ exit
# mysql_secure_installation
# pkill mysqld

# svcadm enable cswmysql56

Download MediaWiki

wget http://releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.1.tar.gz

Extract Archive in DocumentRoot, e.g. /var/www

tar xvzf mediawiki-*.tar.gz

Run Configurator Enable Upload and Cache

# cd /var/www/mediawiki-1.24.1
# chown webservd:webservd images
# chown webservd:webservd cache
# chown wbservd:webservd .

Run Configurator http://wiki/mediawiki-1.24.1/mw-config/index.php

permanent link

answered 12 Jan '15, 09:57

cgrzemba's gravatar image

cgrzemba ♦♦
6091318
accept rate: 9%

edited 27 Jan '15, 12:38

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×4
×1
×1
×1

question asked: 08 Jan '15, 14:05

question was seen: 9,663 times

last updated: 27 Jan '15, 12:38

powered by OSQA