Skip to main content

Build Apache HTTP Server on fedora 16

Build Apache HTTP Server on fedora 16

# make fedora 16 VM

#!/usr/bin/env bash

set -x

#export TMP=/root/tmp
export TMP=/home/vagrant/tmp
mkdir -p $TMP

# 0) zlib
cd $TMP
wget http://zlib.net/zlib-1.2.8.tar.gz
tar xvfz zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure
make
sudo make install

# 1) openssh
sudo rm -Rf /usr/lib64/openssl /usr/local/openssl /usr/share/man/man1/openssl.1ssl.gz
sudo rm -Rf /usr/local/ssl/bin/openssl /usr/local/ssl/include/openssl /usr/local/include/openssl
sudo rm -Rf /usr/share/bash-completion/openssl /usr/lib/ruby/1.8/openssl
sudo rm -Rf /usr/bin/openssl /usr/include/openssl

cd $TMP
wget https://openssl.org/source/openssl-1.0.2g.tar.gz
tar xvfz openssl-1.0.2g.tar.gz
cd openssl-1.0.2g
./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared zlib-dynamic
make
sudo make install
export PATH=$PATH:/usr/bin/openssl:/usr/include/openssl

# 2) apr
cd $TMP
# http://www.linuxfromscratch.org/blfs/view/svn/general/apr.html
wget http://archive.apache.org/dist/apr/apr-1.5.2.tar.bz2
bzip2 -dk apr-1.5.2.tar.bz2
tar xvf apr-1.5.2.tar.bz2
cd apr-1.5.2
#vi configure # error fixed: $RM "$cfgfile" -> $RM -f "$cfgfile"
sed -ie 's/$RM "$cfgfile"/$RM -f "$cfgfile"/g' $TMP/apr-1.5.2/configure
./configure --prefix=/usr --disable-static --with-installbuilddir=/usr/share/apr-1/build
make
sudo make install

# 3) apr-util
cd $TMP
# http://www.linuxfromscratch.org/blfs/view/svn/general/apr-util.html
wget http://apache.osuosl.org/apr/apr-util-1.5.4.tar.gz
tar xvfz apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --prefix=/usr --with-apr=/usr --with-gdbm=/usr --with-openssl=/usr --with-crypto
make
sudo make install

# 4) pcre
cd $TMP
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
tar xvfz pcre-8.38.tar.gz
cd pcre-8.38
./configure --prefix=/usr                     \
            --docdir=/usr/share/doc/pcre-8.38 \
            --enable-unicode-properties       \
            --enable-pcre16                   \
            --enable-pcre32                   \
            --disable-static --disable-cpp
make
sudo make install

# 5) build httpd
cd $TMP
wget https://archive.apache.org/dist/httpd/httpd-2.4.18.tar.bz2
bzip2 -dk httpd-2.4.18.tar.bz2
tar xvf httpd-2.4.18.tar
cd httpd-2.4.18
./configure --prefix=/usr/local/httpd --with-apr=/usr --with-apr-util=/usr --with-pcre=/usr

make
sudo make install
ls -al /usr/local/httpd/bin


exit 0

Comments

Post a Comment

Popular posts from this blog

DevOps JD's required skills from LinkedIn

From some of DevOps JD on linkedIn, I realised that DeveOps should be the leader of the organization. https://docs.google.com/spreadsheets/d/1P520nH0pYcAdN0rJcnMQqsgu9cV9GdknztJ92J8l7-s/pubhtml DevOps' Required Skills From LinkedIn on 8/30/16: DevOps should be the leader of the company! Yahoo Netflix Samsung Salesforce Fortinet SUM OS admin UNIX systems Unix platforms Linux administrator Linux VMs Docker VMs VMware, OpenStack, Hyper-V Openstack, KVM, VMWare Version control version control systems Git, SVN Cloud Amazon AWS AWS AWS, Azure DB MySql Oracle, MySQL, NoSQL Mysql administration and strong command of SQL MySQL RabbitMQ MySql, MongoDB, Redis, Oracle, ProgreSQL N/W TCP/IP networking, DNS, HTTP NAS Understanding of network stack, network tuning, subnet/VLANs. HAProxy, DNS, IPTable Script Lang Shell, Perl, Python, Ruby, PHP bash Python, Bash/tcsh a scripting language: Perl, Python and Unix Shell preferred Python, Perl, Ruby Python, Ruby, Shell, PHP Web LAMP stack

Ubuntu GUI with VNC on Xenserver

Xenserver 에서 Ubuntu GUI 를 쓰기 위해서는 VNC 가 답인 듯... Installing Ubuntu Gnome GUI on Ubuntu Server 12.10 with VNC Update Repositories # apt-get update Install gnome and vnc: # apt-get install gnome-core vnc4server Start VNC Server: # vncserver (You’ll then be prompted to create and verify a new VNC connect password) Kill the currently running VNC Session: # vncserver -kill :1 Edit VNC startup config file: # vim .vnc/xstartup Uncomment the following line: unset SESSION_MANAGER Add the following line: gnome-session --session=gnome-classic & Comment Out the following two lines: x-terminal-emulator -geometry 1280x1024+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & End result should look like: #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc gnome-session --session=gnome-classic & [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/

Install CoreOs on linode without VM

Install CoreOs on linode without VM 1. Add a Linode 2. Create a new Disk   CoreOS 3. Rescue > Reboot into Rescue Mode 4. Remote Access   Launch Lish Console 5. make an install script cat <<'EOF1' > install.sh # add needed package sudo apt-get update sudo apt-get install -y curl wget whois sudo apt-get install -y ca-certificates #sudo apt-get install gawk -y # get discovery url discoveryUrl=`curl https://discovery.etcd.io/new` # write cloud-config.yml cat <<EOF2 > cloud-config.yml #cloud-config users:   - name: core     groups:       - sudo       - docker coreos:   etcd:     name: node01     discovery: $discoveryUrl hostname: node01 EOF2 # get the coreos installation script #wget https://raw.github.com/coreos/init/master/bin/coreos-install wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install # run installation chmod 755 coreos-install sudo ./coreos-install \       -d /dev/sda \       -