ez.no / exponential / documentation / obsolete / installation / manual / webserver build on linux
This tutorial is meant for fine tuning and feeding custom needs.
Tested on a Suse Linux 8.1
Apache 1.3.27 with DSO, MOD_SSL, MOD_PERL, PHP/PHPA, GD2, ZLIB
Never heard about a DSO or Static build?
http://httpd.apache.org/docs/dso.html
Reasons for selecting a DSO build rather then a Static are mainly
killall httpd
Here are we gonna place the Sources
mkdir /root/software cd /root/software
Get the sources
wget http://ftp.leo.org/pub/comp/general/infosys/www/daemons/apache/dist/httpd/apache_1.3.27.tar.gz wget http://www.boutell.com/gd/http/gd-2.0.12.tar.gz wget http://www.libpng.org/pub/png/src/zlib-1.1.4.tar.gz wget http://downloads.php.net/jani/php-4.3.2RC2.tar.gz wget http://perl.apache.org/dist/mod_perl-1.0-current.tar.gz
Unpack the Apache source
tar xzf apache_1.3.27.tar.gz
Apply MOD_SSL to the Apache source. If you can't configure install OpenSSL it might be missing(use yast)
cd /root/software/mod_ssl-2.8.14-1.3.27 tar xzf mod_ssl-2.8.14-1.3.27.tar.gz ./configure --with-apache=/root/software/apache_1.3.27
Do we need to remove old SSL Certificates? If you don't know. Skip this
rm -R /etc/httpd/ssl.crt rm -R /etc/httpd/ssl.key rm -R /etc/httpd/ssl.crl rm -R /etc/httpd/ssl.csr rm -R /etc/httpd/ssl.prm
Building the beloved Apache
cd /root/software/apache_1.3.27 ./configure --with-layout=SuSE --enable-module=most --enable-shared=max --disable-module=auth_db --server-uid=wwwrun --server-gid=www --disable-suexec make && make certificate TYPE=custom && make install
Comment: I wasn't able to build the auth_db as DSO properly. So I excluded it.
Here is a sample for a self signed certificate
Country Name (2 letter code) [AU]:DE State or Province Name (full name) [Some-State]:Niedersachsen Locality Name (eg, city) []:Hannover Organization Name (eg, company) [Internet Widgits Pty Ltd]:xrow GbR Organizational Unit Name (eg, section) []:Root-Server Common Name (eg, YOUR name) []:*.xrow.net Email Address []:postmaster@xrow.net
Comments: * is a wildcard to set the certificate vaild for every host/subdomain of xrow.de. xrow.de itself is not valid SSL host.
Build DSO mod_perl
tar xzf mod_perl-1.0-current.tar.gz cd /root/software/mod_perl-1.27 perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/sbin/apxs EVERYTHING=1 make && make test && make install
Zlib (Usefull for output compression)
tar xzf zlib-1.1.4.tar.gz cd /root/software/zlib-1.1.4 ./configure --prefix=/usr make && make install
Install GD2
tar xzf gd-2.0.12.tar.gz cd /root/software/gd-2.0.12 ./configure --prefix=/usr
Comment: After installing Exponential you migth want to check, if the variable hasGD2 is set to true in the ini files.
Install PHP (DSO usage under Apache)
tar xzf php-4.3.1.tar.gz cd /root/software/php-4.3.1 ./configure --prefix=/usr/share --datadir=/usr/share/php --with-apxs=/usr/sbin/apxs i586-suse-linux --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --with-_lib=lib --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --with-mysql --disable-debug --enable-bcmath --enable-calendar --enable-ftp --enable-inline-optimization --enable-magic-quotes --enable-mbstr-enc-trans --enable-mbstring --enable-track-vars --enable-trans-sid --with-bz2 --with-dom=/usr/include/libxml2 --with-ftp --with-mcrypt --with-xml --with-xpm-dir=/usr/X11R6 --with-curl --with-zlib-dir=yes --with-gd --with-jpeg-dir=/usr make && make install
Copy the default configuration
cp php.ini-dist /etc/php.ini
Edit your php.ini
; Safe Mode ; safe_mode = Off max_execution_time = 180 ; Maximum execution time of each script, in seconds max_input_time = 300 ; Maximum amount of time each script may spend parsing request data memory_limit = 32M ; Maximum amount of memory a script may consume (8MB)
If you also want the install the PHP Accelerator then do the following
wget http://www.phpaccelerator.co.uk/releases/linux_i686-glibc2.1.3/1.3.3r2_4.3.0/php_accelerator-1.3.3r2_php-4.3.0_linux_i686-glibc2.1.3.tgz tar zxf php_accelerator-1.3.3r2_php-4.3.0_linux_i686-glibc2.1.3.tgz mv php_accelerator-1.3.3r2_php-4.3.0_linux_i686-glibc2.1.3 /usr/local/lib/php_accelerator
edit /etc/php.ini again and add
;phpa zend_extension="/usr/local/lib/php_accelerator/php_accelerator_1.3.3r2.so"
Restart Apache and install Exponential.
httpd restart
If you somehow got mess up try to clean everything and restart
rm -Rf apache_1.3.27 rm -Rf zlib-1.1.4 rm -Rf php-4.3.1 rm -Rf mod_ssl-2.8.14-1.3.27 rm -Rf openssl-0.9.6g rm -Rf gd-2.0.12
Log in or create a user account to comment.
Comments