Hello,
After a bit of struggle, I managed to build Apache 1.3.27/Mod SSL (2.8.12)/Open SSL (0.9.6g)/PHP 4.2.3 as a set of DSO's. I used gcc 3.2 to compile these. I have compiled it on HPUX 11.0.
After build and install, I had to hack apachectl script to use LD_PRELOAD to load libpthread and libcl shared libraries along with few Oracle libraries.
Apache seems to be working fine. However, I face strange problems when I run my PHP scripts. I get "page cannot be displayed - dns error" when I tried to invoke my php scripts.
My PHP scripts however, work fine on apache/mod ssl/php built and linked statically. My php.ini is proper.
Has anybody faced the same problem (DSO) on HP UX ? Is there a solution ?
I even wrote a simple php script like
<?
define("LOGDIR","/var/opt/insm/eos/eafwww/log");
define("LOGFILE","eafwww.log");
$message = "Test";
if (true == is_dir(LOGDIR))
{
$file = (LOGDIR . "/" . LOGFILE);
if (false == is_file($file))
{
if ( false == touch($file) )
{
die("FATAL ERROR: cannot touch logfile. Dying.\n");
}
if ( false == chmod($file, 0600) )
{
die("FATAL ERROR: cannot adjust permissions of logfile. Dying.\n");
}
}
error_log($message, 3, LOGDIR . LOGFILE);
}
?>
If I comment call to error_log, the script works fine. This is strange. I have even enabled log_errors = On in my php file.
Can somebody help ?
Regards,
Giri