Archive for the 'Web Tech' Category



Problem compiling GeoIP PHP extension on FreeBSD

Friday, April 4th, 2008

Well, here is another app compatibility problem.

Recently I got task to build GeoIP PHP extension. Usually i use mod_geoip, but this time some strange app required PECL extension.

So, i got following error while configure process:

configure: error: wrong geoip lib version or lib not found

(more…)

Problems compiling Apache 2.2.6 on FreeBSD 6.2

Saturday, October 6th, 2007

Trying to update one of Apache installations got following error:

[...]
/usr/local/src/httpd-2.2.6/srclib/apr-util/libaprutil-1.la -lexpat -liconv /usr/local/src/httpd-2.2.6/srclib/apr/libapr-1.la -lcrypt -lpthread
/usr/bin/ld: cannot find -lexpat

Thats amazing because i never had any problems with pure apache custom builds. I have checked if system had expat installed and …
(more…)

Nginx HTTP Server Control Interface

Tuesday, January 9th, 2007

If you still not use Nginx, you should try it! Very powerful and in the same time is very light HTTP server. I’ve use it for testing purposes from first public release, and about one year in production.

I’m not happy only with one thing - there is no startup/control script in standard package. You can tell me what FreeBSD ports and Linux packages has that scripts, but I prefer build Nginx, Apache and other software from sources. So after i have about 100+ copies installed i have write control script for Nginx.

(more…)

Securing PHP

Monday, December 11th, 2006

PHP is one of most popular programming languages for Web. A lot of applications developed using PHP, but very small percent of PHP programmers write quality and secure code. As result about 70-80% of hacks done via PHP applications (forums, blogs, albums, etc). So, how can you secure your server? There is no 100% recipe, but i have some tips what can help you.

(more…)