[freetds] problem with FreeTDS compiling with PHP 5

Aaron (Rusty) Lloyd rusty at rustmon.org
Mon Oct 17 11:09:00 EDT 2005


Hello!

I am not restarting with kill -HUP, I am just running the restart script.

In the script, it does have the user 'apache' and group 'apache'. I wondered the
same thing you did, and tried changing it to root (which bombed, unless I wanted
to comment out things that would open apache up like swiss cheese) or the user
that I am running everything else as, which failed too.

How would I start things to remedy this?

Thanks!

R

Quoting "Owen, Robert" <robert.owen at nortonrose.com>:

> Rusty,
> 
> Are you restarting with kill -HUP?
> 
> If so this just causes a re-read of the httpd.conf file - not an actual
> restart.
> 
> And it may just be that on the clean start it is initially running as
> root but when it reads the config before it switches to 'nobody'.   On
> the restart it is already running as nobody and has insufficient
> permissions.
> 
> Just a theory.
> 
> Rob.
> 
> -----Original Message-----
> From: freetds-bounces at lists.ibiblio.org
> [mailto:freetds-bounces at lists.ibiblio.org] On Behalf Of Aaron (Rusty)
> Lloyd
> Sent: 17 October 2005 15:42
> To: freetds at lists.ibiblio.org
> Subject: [freetds] problem with FreeTDS compiling with PHP 5
> 
> 
> Hello!
> 
> I am hoping folks can help me here.
> 
> I'm using a Linux server, running this RedHat variant:
> 
> Linux myhost 2.6.9-5.0.5.ELsmp #1 SMP Fri Apr 8 14:29:47
> EDT 2005 i686 i686 i386 GNU/Linux
> 
> Also running:
> 
> PHP 5.05, compiled with the apache2 weberver
> freeTDS distribution 0.63
> 
> now, here is the thing:
> 
> PHP 5 seems to make fine with both of these configurations:
> 
> ./configure --with-apxs2=/usr/sbin/apxs
> 
> and
> 
> ./configure --with-apxs2=/usr/sbin/apxs --with-mssql=/usr/local/freetds
> 
> The weird thing is that when I restart apache using the first PHP 
> configuration,
> it starts fine.
> 
> When I run the second configuration, I get this error:
> 
> [root at myhost]# /etc/init.d/httpd restart
> Stopping httpd:                                            [  OK  ]
> Starting httpd: Syntax error on line 1026 of /etc/httpd/conf/httpd.conf:
> Cannot load /etc/httpd/modules/libphp5.so into server: libsybdb.so.5:
> failed 
> to map segment from shared object: Permission denied
> 
> the libsybdb.so.5 is found here:/usr/local/freetds/lib
> 
> My PATH and my LD_LIBRARY_PATH have this directory included as well as 
> /usr/local/freetds/bin.
> 
> Anyone know what I could be doing wrong here?
> 
> Thanks for any help!
> 
> Please send responses to rusty at rustmon.org, as I do not read this group 
> regularly.
> 
> Thanks again!
> 
> Rusty 
> 
> 
> -- 
> * Aaron (Rusty) Lloyd           * rusty at rustmon dot org
> * Chivalry, Honor, Courtesy     * Vices to live by.
> * http://www.rustmon.org        * http://www.wearyellow.com
> * Mind, Body, Soul. Relationship, Career, Life. Turn it up a notch!
> "Tiki's running like someone's chasing him!" 
> "Uh - they are."
> - Stuart Scott to Kenny Mayne, ESPN:SportsCenter, 10/11/04
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email 
> ______________________________________________________________________
> 
> ________________________________________________________
> CONFIDENTIALITY NOTICE
> 
> The contents of this e-mail are confidential to the ordinary user of
> the e-mail address to which it was addressed and may also be
> privileged.  If you are not the addressee of this e-mail you may not
> copy, forward, disclose or otherwise use it or any part of it in any
> form whatsoever.  If you have received this e-mail in error please
> e-mail the sender by replying to this message.
> 
> A list of the partners of Norton Rose, Solicitors, can be inspected at
> www.nortonrose.com 
> 
> Please refer to www.nortonrose.com/regulation for the firm's regulatory
> position.
> 
> Regulated by the Law Society.
> ________________________________________________________
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
> 


-- 
* Aaron (Rusty) Lloyd           * rusty at rustmon dot org
* Chivalry, Honor, Courtesy     * Vices to live by.
* http://www.rustmon.org        * http://www.wearyellow.com
* Mind, Body, Soul. Relationship, Career, Life. Turn it up a notch!
"Tiki's running like someone's chasing him!" 
"Uh - they are."
- Stuart Scott to Kenny Mayne, ESPN:SportsCenter, 10/11/04


More information about the FreeTDS mailing list