Apache

Apache2 Cluster with Csync2 on Ubuntu 12.04 mini-HOWTO

For building a LAMP cluster, besides identity, filesystem and database synchronize, the next step would be service configure synchronize, e.g. Apache2 and PHP. This can be done by using Csync2, including configuration file status monitoring, synchronize and service restart.

This HOWTO will guide you though installation of Csync2 on Ubuntu 12.04. We will therefore handle both Apache2 and PHP5 for clustering with it.

Apache 2.4 + PHP 5.4 + PDO_IBM on Ubuntu 12.04 HOWTO

This simple HOWTO will guide you about how to setup Apache2.4 + PHP5.4 + PDO_IBM from sketch. Compile all package from tarball can give you the maximum flexibility of functionality, e.g. you can enable both mysql/mysqli/pgsql/oci8/pdo_mysql/pdo_pgsql/pdo_oci/pdo_ibm within single installation.

Before start, I will assume you have Ubuntu 12.04 and DB2 Express-C 10.1 installed correctly, which will not detail within this document. If you really need some help for that, please refer to my other article for more indeed guideline.

Apache 2.4 + PHP 5.4 + PDO_OCI on Ubuntu 12.04 HOWTO

This simple HOWTO will guide you about how to setup Apache2.4 + PHP5.4 + PDO_OCI from sketch. Compile all package from tarball can give you the maximum flexibility of functionality, e.g. you can enable both mysql/mysqli/pgsql/oci8/pdo_mysql/pdo_pgsql/pdo_oci within single installation.

Before start, I will assume you have Ubuntu 12.04 and Oracle 11gR2 installed correctly, which will not detail within this document. If you really need some help for that, please refer to my other article for more indeed guideline.

Apache2 + NFSv4 + OCFS2 + ldirectord Cluster on Debian Wheezy + Pacemaker

primitive p_apache2 lsb:apache2
primitive p_controld ocf:pacemaker:controld
primitive p_exportfs_exports ocf:heartbeat:exportfs \
        params fsid="0" directory="/exports" options="rw,sync,insecure,crossmnt,no_subtree_check" clientspec="*"
primitive p_exportfs_exports_home ocf:heartbeat:exportfs \
        params fsid="1" directory="/exports/home" options="rw,sync,insecure,no_subtree_check,no_root_squash" clientspec="*"
primitive p_fs_exports_home ocf:heartbeat:Filesystem \
        params device="/home" directory="/exports/home" fstype="none" options="bind,rw" run_fsck="no"

IBM DB2 v9.7 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO

This HOWTO will guide you though installing IBM DB2 v9.7 + Apache2.2 + PHP5.3 on Debian Squeeze.

You may can't expect that how similar of installing DB2 as that of Oracle. Most of the installation procedure are just identical, e.g. install Debian Squeeze with minimal setup, pre-configure of Linux + installation procedure, or post-installation setup and testing. So in case you can loss in this HOWTO, please reference with that of Oracle ;-)

Before start you will need to prepare your Debian with:

  • A complete Debian Squeeze installation with X11.
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

In case of Debian Squeeze you don't need to install too much package by default, but I would like to recommand at least install "SSH server" and "Standard system utilities" during installation, after reboot install a very basic X11 + Gnome as below:

apt-get install gnome-core xorg iceweasel

Then test your X11 with startx ;-)

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 3)

This simple HOWTO will guide you about how to setup Apache2.2 + PHP5.3 + OCI8/PDO_OCI from sketch. Compile all package from tarball can give you the maximum flexibility of functionality, e.g. you can enable both mysql/mysqli/pgsql/oci8/pdo_mysql/pdo_pgsql/pdo_oci within single installation.

Before start, I will assume you have Debian Squeeze and Oracle 11gR2 installed correctly, which will not detail within this document. If you really need some help for that, please refer to my other article for more indeed guideline.

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 2)

This HOWTO will guide you though installing Oracle Database 11g Release 2 + Apache2.2 + PHP5.3 on Debian Squeeze.

But why we need this HOWTO? Since Oracle only officially support Red Hat Enterprise Linux, SUSE Enterprise Linux and other enterprise level Linux distribution; BTW, there shouldn't be any problem if you hope to use with other distribution, which just need some special configuration and install required dependent packages.

Before start you will need to prepare your Debian with:

  • A complete Debian Squeeze installation with X11.
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

In case of Debian Squeeze you don't need to install too much package by default, but I would like to recommand at least install "SSH server" and "Standard system utilities" during installation, after reboot install a very basic X11 + Gnome as below:

apt-get install gnome-core xorg iceweasel

Then test your X11 with startx ;-)

Oracle Database 11g Release 2 + Apache 2.2 + PHP5.3 on Debian Squeeze HOWTO (Part 1)

This HOWTO will guide you though installing Oracle Database 11g Release 2 + Apache2.2 + PHP5.3 on Debian Squeeze.

In this part 1, we will first install a Debian Squeeze with minimal package requirement. Well, so if you are expert or Debian, please simply skip this part ;-)

Here I will demonstrate the installation based on a KVM client, build by virt-manager, AMD64 CPU architecture, 2GB Ram. This shouldn't be the key point for installation, but just note as your reference.

After this section we will have a Debian Squeeze with:

  • Minimal installation
  • A functional X11 for Oracle installation
  • Static public IP address (or you may bind to localhost during installation).
  • Functional hostname, e.g. hardcode it within /etc/hostname and /etc/hosts.

Tips for Resolve Apache VirtualHost + mod_userdir URL Conflict with mod_rewrite

During revamp and reinstall with my server I decide to update my Drupal 7.x blog's folder under my own ~/public_html, e.g. ~/public_html/edin.no-ip.com/. BTW this also generate another issue which conflict with Apache mod_userdir setup, as my ~/public_html will able to access from http://edin.no-ip.com/~hswong3i/.

OK a quick checklist of my setup (under Debian Squeeze):

Apache 2.2 with vhost_alias on Debian mini-HOWTO

Apache2.2 mod_userdir you may setup user-specific directory as http://example.com/~username/ syntax with document root as /home/users/username/public_html, but what if we hope to setup a dynamic mapping for http://some_other_dir.example.com/? mod_vhost_alias can do this for you.

Pages

Subscribe to RSS - Apache