Static compile of openssl, apache, mod_ssl and php
Tue, 02/26/2008 - 16:47 — wizapAs of this writing, the latest versions were:
-
apache_1.3.41
php-4.4.8
openssl-0.9.8g
mod_ssl-2.8.31-1.3.41
Once the files are downloaded and extracted; config, compile and install in the below order:
-
Install openssl:
$ ./config --prefix=/usr/local --openssldir=/usr/local/openss l
$ make
# make install
$ ./configure \
--with-ssl=../openssl-0.9.8g \
--with-apache=../apache_1.3. 41
$ ./configure
$ ./configure \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-freetype \
--with-freetype-dir=/usr/lib \
--enable-gd-native-ttf \
--enable-memory-limit \
--with-ldap \
--with-mysql \
--with-apache=../apache_1.3. 41
$ make
# make install
$ SSL_BASE=../openssl-0.9.8g \
./configure \
--prefix=/usr/local/apache \
--enable-module=rewrite \
--enable-module=so \
--activate-module=src/module s/php4/libphp4.a \
--enable-module=ssl
- wizap's blog
- Login or register to post comments
Static apache-1.3.x and php-4.x compile for dotProject
Thu, 02/14/2008 - 12:26 — wizap-
Download and unpackage the source files:
$ cd /usr/local/src
$ wget http://www.ibiblio.org/pub/mir rors/apache/httpd/apache_1.3.4 1.tar.gz
$ wget http://us2.php.net/get/php-4.4 .8.tar.gz/from/us.php.net/mirr or
$ tar -xvzf apache_1.3.41.tar.gz
$ tar -xvzf php-4.4.8.tar.gz
$ cd apache_1.3.41
$ make clean
$ ./configure
$ cd ../php-4.4.8
$ make clean
$ ./configure \
--with-gd \
--with-jpeg-dir \
--with-png-dir \
--with-zlib-dir \
--with-freetype \
--with-freetype-dir=/usr/lib \
--enable-gd-native-ttf \
--enable-memory-limit \
--with-ldap \
--with-mysql=/usr/local/mysq l \
--with-apache=../apache_1.3. 41
$ make
# make install
$ ./configure \
--prefix=/usr/local/apache \
--enable-module=rewrite \
--enable-module=so \
--activate-module=src/module s/php4/libphp4.a
$ make
# make install
- wizap's blog
- Login or register to post comments
- Read more
Auto restart apache on segmentation fault error
Fri, 11/16/2007 - 16:36 — sandipRecently a particular folder in a site started coming up with blank php pages and the root cause being Segmentation fault after memory exhaustion. The subfolder contents would only come up after doing a restart of apache.
So something tried to access a region of memory that it did not have rights to. May be due to either bad RAM, or a code problem.
My first instinct was eAccelerator as I had done a recent php update and had not re-compiled it.
I still had the same issue the next day and bumped up the memory_limit from 16M to 32M in php.ini and from 32M to 64M in eaccelerator.ini .
Generating Apache SSL Self-Signed Certificate
Thu, 07/26/2007 - 21:59 — sandip# openssl req -x509 -newkey rsa:1024 -keyout /etc/httpd/conf/ssl.key/server .key -out /etc/httpd/conf/ssl.crt/server .crt -days 9999 -nodes
# chown root:root /etc/httpd/conf/ssl.key/server .key
# chmod 400 /etc/httpd/conf/ssl.key/server .key
Installing Bugzilla on an ISPConfig site
Thu, 06/07/2007 - 16:34 — sandipThese are some notes I had taken down during the installation of Bugzilla on a server with ISPConfig hosting control panel:
Requirements:
# yum install mysql-devel gd-devel libpng-devel libjpeg-devel freetype-devel libdbm-devel
# rpm -e mod_perl #else mod_perl2 does not install.
Create Site:
Site was created via the ISPConfig control panel with "web6_bugs" as the admin user and "web6" as the group.
Install:
$ cd /var/www/web6
$ wget http://ftp.mozilla.org/pub/moz illa.org/webtools/bugzilla-3.0 .tar.gz
$ tar -xvzf buzilla-3.0.tar.gz
$ mv buzilla-3.0/* web
$ ./checksetup.pl --check-modules
# perl -MCPAN -e 'install AppConfig' #had to force install.
# perl -MCPAN -e 'install Bundle::Bugzilla'
# perl -MCPAN -e 'install GD' #requires libpng-devel, libjpeg-devel, freetype-devel
$ ./checksetup.pl #Edit the localcofig with the correct database settings.
$ ./checksetup.pl #Re-run anytime if needed, specifically if the file permissions are not correct.
$ chgrp -R apache . #Had to make all files belong to the apache group after re-running checksetup.pl .
Apache with mod_perl need the below directives in httpd.conf:
PerlSwitches -I/var/www/web6/web -w -T
PerlConfigRequire /var/www/web6/web/mod_perl.pl
Runs a lot faster, but is a memory hog. Suggested to turn off KeepAlive in apache when running mod_perl.
Crontab Entry:
# Bugzilla
5 0 * * * web6_bugs cd /var/www/web6/web; ./collectstats.pl
55 0 * * * web6_bugs cd /var/www/web6/web; ./whineatnews.pl
*/45 * * * * web6_bugs cd /var/www/web6/web; ./whine.pl
- sandip's blog
- Login or register to post comments
- Read more
Static compile and install of apache + mod_ssl + php on FC4
Tue, 05/22/2007 - 15:24 — sandipLatest Compile with pdo drivers for mysql along with mod_security.
NOTE:
Remove the MySQL-shared rpm else openssl will not work.
# rpm -e MySQL-shared-5.0.20a-0.glibc23
LAMP (Linux Apache Mysql PHP) Configuration
Thu, 06/15/2006 - 03:41 — david23The acronym LAMP refers to a set of free software programs commonly used together to run dynamic Web sites or servers
Linux, the operating system;
Apache, the Web server;
MySQL, the database management system (or database server)
Perl, PHP, and/or Python, scripting languages
- david23's blog
- Login or register to post comments