|
| Recent
Articles |

Review: The Apache Module Book Aaargh.. C code. I never thought I'd say that, but there it is. I must be getting old. Oh well, at least I can still read it. And this book did open my eyes to the inner workings of Apache - I had really never thought much about any...
Perl, CGI And SSI Advice One of the goals of our WebProWorld forum is for people to help each other with problems that may be having whether it be in marketing, eCommerce, or coding.
Review: Wicked Cool Perl Scripts Order (or just read more about) Wicked Cool Perl Scripts from Amazon.com. Bah, humbug. Well, maybe not that bad. Actually, not "bad" at all: I have no real complaints about this book, but I didn't like it and can't...
A Perl And C# Comparison A search that I have noticed that has been passed to my site was "perl c# comparison", I would assume that the person that asked this was trying to compare...
Handling Missing Data I have an old Perl project that goes out to a Government web site, ftp's some files, massages them in various ways, and spits out some output. Over time, the project grew, and now does more than it used to. To keep it...
Help, My Script Isn't Working! Here's a list of tips and tricks to consult at two a.m. when you're trying to put your site to bed and that d*mn script just won't work. 1. Make a note of the error message...
Perl Loop Causes Strange Read-only Error Ok, folks: I don't understand this. It must have something to do with anonymous arrays in Perl (no, it doesn't, I realize now), but I don't grok the connection. I ran into this in attempting a seemingly simple...
|
 |
|
04.03.07
Apache, PHP, Suhosin Security Patch and mod_perl
By
Geo A.
For many reasons many people want to compile their own source code to build apache and php / mod_perl these days. We will discuss the steps required in doing just that. But unlike most others we will throw in some bonuses, like installed mod_perl and the hardened php project's suhosin patch to php, to help make the internet a more secure place to live.
Lets get to business: We will start with Apache. If you do not know what apache is well, the Apache HTTP Server; to put it simply Apache is the most popular web server on the internet and it has helped make the growth of the internet what it is today. Stating that we will be using Apache 1.3.x at the time of writing this article the current apache version is 1.3.3.7. You can download the source code at
http://httpd.apache.org/
Copy and paste code!
cd /usr/local/src
wget http://www.ibiblio.org/pub/mirrors/apache/
httpd/apache_1.3.37.tar.gz
tar xzvf apache_1.3.37.tar.gz
cd apache_1.3.37
./configure --prefix=/usr/local/apache
--enable-module=most --enable-shared=max
make && make install
That should have Apache built from source, compiled and installed in /usr/local/apache
and the configuration is in /usr/local/apache/conf the default document root is in /usr/local/apache/htdocs. To start and stop apache issue
/usr/local/apache/bin/apachectl stop
/usr/local/apache/bin/apachectl start
Try it by going to http://www.yoursite.com or http://1.2.3.4
Mod_perl: Mod perl is optional but if you wanted to use it, it requires just a few lines to install and modify. At the time of writing this article mod perl is at version 1.30. You can obtain the latest source at
http://perl.apache.org/
wget http://perl.apache.org/dist/mod_perl-1.0-current.tar.gz
perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/apache/bin/apxs EVERYTHING=1
make && make install
Continue reading this article.
About
the Author: Geo A. Is a UNIX system administrator for bluechiphosting.com a web hosting company. They specialize in low cost options with high quality services. Many of their services are free. They are unique in offering CPanel and many service side scripting tools free.
|
|