LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-20-2007, 10:58 PM   #1
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Rep: Reputation: 30
How to check if compiled/installed apache has posix threads library?


Have an installation of apache in one box which I want to confirm if it is configured with both threads and fork libraries. how do i check?
 
Old 05-20-2007, 11:22 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by Swakoo
Have an installation of apache in one box which I want to confirm if it is configured with both threads and fork libraries. how do i check?
To check use ldd to see the libraries it is linked against for the rest of the question no clue.

Code:
ldd /usr/sbin/apache
        libm.so.6 => /lib/libm.so.6 (0x00002b7894113000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00002b7894395000)     <------------------
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x00002b78945b0000)
        libdb-4.4.so => /usr/lib/libdb-4.4.so (0x00002b78947e4000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00002b78949ec000)
        libdl.so.2 => /lib/libdl.so.2 (0x00002b7894b0e000)
        libc.so.6 => /lib/libc.so.6 (0x00002b7894d12000)
        /lib64/ld-linux-x86-64.so.2 (0x00002b7893ef6000)
 
Old 06-20-2007, 04:15 AM   #3
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
so if it is linked to libpthread, apache is configured to run as threaded?
 
Old 06-20-2007, 04:56 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You should run:
Code:
httpd -V
to check if your apache was compiled with threads and fork.
 
Old 06-20-2007, 05:41 AM   #5
Swakoo
Member
 
Registered: Apr 2005
Distribution: Red Hat / Fedora / CentOS
Posts: 508

Original Poster
Rep: Reputation: 30
ahh cool

so mine says
-D APACHE_MPM_DIR="server/mpm/prefork" and
-D APR_USE_PTHREAD_SERIALIZE

that refers to threading and forking yah?
 
Old 06-20-2007, 06:20 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Nope, you should also see something like:
Code:
Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
POSIX Threads mannahazarika Programming 4 07-16-2006 11:00 PM
POSIX threads - pthread_cond_timedwait iklinux Programming 5 09-26-2005 10:33 AM
About POSIX threads Ephracis Programming 1 12-03-2004 06:33 AM
I have a problem with POSIX Threads. AndreasA Programming 2 08-11-2003 02:48 PM
runing library compiled with gcc-2.95.2 when egcs-2.91.66 is installed chrilarc Linux - Software 0 10-04-2001 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration