httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] Segmentation errors
Date Fri, 23 Jan 2004 08:41:02 GMT
> -----Original Message-----
> From: Michael A. Lewis []
> I have a site that has been running for a month at least with 
> no problems. Nothing on the site has changed in the last 
> several days. I get a call this afternoon from one of my 
> users that they can't see some of the pages. It turns out 
> that any page that attempts (via a PHP script) to connect to 
> a SQL SERVER server gets the error. I am running Red Hat 9.0, 
> Apache 2.0.48, PHP 4.3.4 and Freetds 0.61. I have a script 
> that consists of a mssql.connect statement only and it fails 
> only when server from Apache. I can run the same script from 
> the command line ala "php bad.php". I observe the same 
> behavior using PERL. I run a perl command line script and it 
> runs fine. I run he same script via apache and it doesn't 
> work. Apache serves up all other pages (including connections 
> to my MYSQL server).

When apache executes a CGI program, it forks a new shell with the uid of
the apache user. Also the shell is usually something basic like /bin/sh.
This means that the environment is quite different from you on the
command-line. Many environment variables and even shell commands may not
be available to the CGI. Write a short script to dump out the ENV and
see if anything important is missing.

when you find out what you need, you can pass and set envs with PassEnv
and SetEnv (see docs for details).

Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

> What I've done:
> recompiled and installed php
> recompiled and installed apache
> recompiled and installed freetds
> installed and compiled apache 2.0.47
> went back to 2.0.48
> tried kernel 2.4.6
> returned to kernel 2.4.20
> pulled what's left of my hair out
> There is 147 gig of free disk space and 2 gig of memory on 
> the system. Currently I am the only user while I have trying 
> to fix it.
> Help! Any ideas or thoughts will save my bacon.
> Thanks

Diese E-mail ist eine private und persnliche Kommunikation. Sie hat
keinen Bezug zur B rsen- bzw. Geschftst tigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le prsent e-mail est
un message priv  et personnel, sans rapport avec l'activit boursi re du
Groupe SWX.


This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender’s company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender’s company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message