The System Werks

Table of Content

Overview

Index

Intro

This wiki has been successfully migrated from a pre-XWiki 1 version. Most everything should be intact but If you encounter any issues, please email Dennis Coonich, the owner of System Werks.

This site, http://systemwerks.webhop.biz, is self hosted from a personal Comcast account but reachable thanks to dyndns.org technologies.

The operating systems are Ubuntu 8.10  (a VMWare host), and CentOS 5 (a VMWare guest). In other words, CentOS 5 is a guest in VMWare Server where the VMWare Server is running in Windows XP (the host).

The guest, CentOS 5, is running IBM Websphere HTTP Server integrated with IBM Websphere Application Server. System Werks intends to demonstrate IBM, Java, J2EE, Java EE, and XWiki technologies from this site.

The companion site, integrators@systemwerks, is a forum for all/any technologies. The forum was built as a j2ee application named JForum. You are invited to visit and/or use the forum. This forum runs in the architecture explained in the previous paragraphs.

Stay tuned for all kinds of changes to come.....

Please note that this XWiki is a stable release.

Technology Customizations


by MacClipper (2007)

Please do NOT PM me with requests or questions, share them here so others can help out or benefit too, I do NOT answer such PMs so don't be offended if I don't. Kindly quote any reference to this guide with the whole url and do not reproduce any parts without my expressed permission. This guide is provided as is without any promises or compensation, thank you.

Aim - to accomplish the above without needing a complete re-installation or a repair installation of the OS. For more advanced Windows PC users only.

If you had previously installed Windows in IDE mode and now want to try out AHCI mode, you will need to jump through a few hoops cos merely switching to the AHCI mode in the BIOS will get you a nice shiny cryptic BSOD. This is also true for Windows Vista (yes, I tried) although Vista has built-in AHCI drivers which allow for a fresh Windows with AHCI install without the need for F6 floppy loading.

I prefer to install Windows with IDE mode and then switch over to AHCI once I have ensured that Windows is running as expected. imo, it is easier to troubleshoot under IDE mode cos in that mode, the Device Manager reflects the UDMA mode used wheareas there is no such indication under the AHCI mode. Encounters with ODD issues, bad SATA cables, failing PSUs (HD drops to PIO mode) have taught me this is the better way. Besides, I hate dealing with floppy disks especially since I haven't bought any for the longest time.

There are probably many ways to do so but I am going to elaborate on 2 methods which I have personally tried successfully on my Commando i965 & P5W DH Dlx i975 mobos.

Requirements Intel SATA AHCI drivers in DOS format, the drivers are usually found on the mobo bundled disc but sometimes only as installers which have to be extracted in single file format (DOS format in Asus parlance).

I will attach the Commando bundled i965 AHCI drivers (both 32 bit x86 and 64 bit x64 versions) for reference so you will know roughly which files to look out for, of course you can try to use them too if you are running a i965 mobo. You can load these drivers on the HD itself or a thumbdrive or even from the bundled disc if it is available in DOS format - no floppies required. Just remember to find and use the appropriate ones for your particular mobo.

Let's make it simple (and prob. lengthy being step by step) and hencefoth I will refer to the harddisk containing your Windows OS as the HD. You may want to print out this guide so you can refer to it offline as well.

Method 1 (mobo with >1 SATA controllers) If your mobo has an additional SATA controller eg. Jmicron (like my P5W DH Dlx), you are in luck cos this method mostly requires you to do a simple temporary cable swap.

  1. Power down the PC
  2. Swap the HD SATA cable from the Intel SATA controller to the Jmicron
  3. Power on PC and enter the BIOS
    1. Ensure the Jmicron is using IDE mode, next set the now Jmicron attached HD as the default boot disk.
    2. Switch the Intel controller from IDE to SATA AHCI mode
    3. Save BIOS settings and allow the PC to boot into Windows
  4. Windows now auto-detects a new SATA AHCI controller has been found
  5. Direct the Windows driver update wizard to the driver location and install, next Windows should ask to reboot.
  6. Reboot and allow PC to go into Windows, check that the Intel SATA controllers are now in AHCI mode.
  7. Power down and swap the HD SATA cable back from the Jmicron to the Intel controller.
  8. Power up, enter BIOS and set the now Intel controller hosted HD as the default boot drive.
  9. Save BIOS settings and reboot into Windows with AHCI now activated, enjoy.

Integrating Centos5, IBM HTTP Server (IHS), and PHP

Some info comes from: http://www.ibm.com/developerworks/opensource/library/os-phphttp/ http://www.experts-exchange.com/Apple/Operating_Systems/OS_X/Leopard_MAC_OS_10.5/Q_23580278.html http://www.web-tech-india.com/articles/php/compiling_php_apache/

Certificates (commercial and self signed) http://www.webreference.com/internet/ssl/

For IHS (IBM HTTP Server) http://publib.boulder.ibm.com/infocenter/iwedhelp/v6r0/index.jsp?topic=/com.ibm.websphere.dms.doc/dm/sec_imp_xcare_cert.html

Install needed php packages from repository (this will preseed your OS install). Be sure to select mbstring and mcryt ppackages.

Get proper distro (should match php packages from repsitory) from. http://museum.php.net/php5/

extract to /opt/php/ cd to /opt/php/

create a file called configure.bsh and it needs to contain a single line. This will ensure the libphp5.so file it creates is multithread capable for the IHS (IBM HTTP Server). mbstring is needed for phpMyAdmin. Adjust line to meet your environment.

./configure with-apxs2=/opt/IBM/HTTPServer/bin/apxs

with-mysql=/usr/bin/mysql with-config-file-path=/opt/IBM/HTTPServer/conf

enable-maintainer-zts enable-mbstring with-mcrypt

make using command make

make test using command make test

cd /opt/IBM/HTTPServer/modules (adjust to your environment BUT really might not be needed)

create links via ln -s like the following.

lrwxrwxrwx 1 root root 24 Sep 24 12:49 libphp5.la -> /opt/php/libs/libphp5.la

lrwxrwxrwx 1 root root 24 Sep 24 12:49 libphp5.so -> /opt/php/libs/libphp5.so


Copy /opt/php/php.ini-recommeded to /opt/IBM/HTTPServer/conf

Ensure

extension_dir = "/usr/lib/php/modules/"

add using the comments as a reference point in the php.ini file ; Note that it should be the name of the module only; no directory information ; needs to go here. Specify the location of the extension with the ; extension_dir directive above. extension=mcrypt.so extension=mbstring.so

Ensure the following are added or set to /opt/IIIBM/HTTPServer/conf/httpd.conf

LoadModule php5_module modules/libphp5.so

AddType application/x-httpd-php .php .php3 .phtml

AddType application/x-httpd-php-source .phps

LoadModule mcrypt_module modules/mcrypt.so

DirectoryIndex index.html index.html.var index.php

cd /opt/IBM/HTTPServer/bin and perform a stop and then start to load new libphp5.so and related files.

./apachectl stop

./apachectl start

The ./configure .... command earlier in this document should have prevented the follow phpMyAdmin may complain about mcrypt (having the mcrypt extension will speed up access considerably, but is not required.)

bytor4232 03-11-2004, 09:45 PM

You can add mcrypt support via dynamic module. First, install mcrypt, then download the PHP source that matches your current PHP version. Then, from the PHP source directory:

  1. cd ext/mcrypt
  2. phpize
  3. aclocal
  4. ./configure
  5. make clean
  6. make
  7. make install
You should now have mcrypt.so in /usr/lib/php4

Add the line:

extension=mcrypt.so

to /etc/php.ini

or create in /etc/php.d/mcrypt.ini

extension=mcrypt.so

XWiki Customizations

Cannot Add Large Attachments  - get Java Heap Error

Technology References

Websphere software early programs

IBM software downloads

Creating Videos

Creating GIFs

  1. muvee autoProducer
  2. Mr. Presto
    1. Resize
    2. audio disable
    3. AVI (160x120)
  3. GIF Animator (160x120)
    1. Optimize Wizard (150x113)
    2. Palatte each frame
    3. Defaults for all others
    4. Use Opera browser to preview

Creator: Dennis Coonich on 2008/11/12 00:12
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 1.8.2.19075 - Documentation