LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2014, 04:18 PM   #1
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Rep: Reputation: 2
httpd multi core


hello,
how to make httpd work on multi cores ?

http://puu.sh/7pkc7.png
 
Old 03-09-2014, 06:25 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well you are going to have to post a heck of a lot more information then ONLY this
Quote:
how to make httpd work on multi cores
 
Old 03-09-2014, 09:31 PM   #3
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
what i must port ? i have centos 6.3 with apache and php installed. what i must post ?
 
Old 03-09-2014, 11:15 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what version of Apache ? 2.0,2.2 or 2.4
the default not updated in the old 6.3 repo ?
httpd-2.2.15 ( if this it is MISSING the last years worth of SECURITY updates )

http://httpd.apache.org/docs/2.2/mpm.html

or
did you build the current Apache 2.4.7

--- for the current Apache server
you need to set up workers
see the documentation
http://httpd.apache.org/docs/
http://httpd.apache.org/docs/2.4/mpm.html
http://httpd.apache.org/docs/2.4/mod/worker.html
 
Old 03-09-2014, 11:48 PM   #5
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
version: Apache/2.2.15 (Unix)
i cant multi threaded in this version ? if yes ? full tutorial please ?
 
Old 03-10-2014, 04:35 PM   #6
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
no help in this ?? apache just use 1 core ?
 
Old 03-10-2014, 04:58 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by !! hack-back !! View Post
no help in this ?? apache just use 1 core ?
You've been helped. RTFM the links posted and let us know where you have an issue after that.
 
Old 03-11-2014, 06:32 AM   #8
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
this is not a full info about the issue thats the problem, + am already compiled apache with yum so how i can install mpm now
 
Old 03-11-2014, 06:49 AM   #9
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
okay i make what in this link
http://www.google.com.lb/url?sa=t&rc...,d.ZGU&cad=rja

and now iam getting forbidden on my files ...
any solution ?
 
Old 03-11-2014, 08:36 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
What do the apache logs say is happening?
 
Old 03-11-2014, 09:57 AM   #11
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
ue Mar 11 04:53:19 2014] [error] [client 192.168.159.155] Symbolic link not allowed or link target not accessible: /var/www/cgi-bin/phpfcgi
 
Old 03-11-2014, 10:09 AM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Google
Code:
Symbolic link not allowed or link target not accessible: /var/www/cgi-bin
 
Old 03-11-2014, 10:19 AM   #13
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
i edit
/etc/sysconfig/httpd
and uncomment
HTTPD=/usr/sbin/httpd.worker

=========================

but in htop
just 1 core = 100%
and i have 4 cores
 
Old 03-11-2014, 11:29 AM   #14
!! hack-back !!
Member
 
Registered: Nov 2009
Posts: 183

Original Poster
Rep: Reputation: 2
can we start that from beginning ? i need to install httpd with mpm worker and use php instead and make it work on 4 cores
 
Old 03-11-2014, 12:22 PM   #15
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
I don't mean to be blunt, sir or madam, but the short-answer to your question is "no," because (and I don't mean this to sound rude ...) you don't have the faintest clue what you are actually talking about. I am beginning to conclude that you're just a "provocateur bot," and not a person at all.

HTTPD's message is telling you exactly what is wrong here, and it has absolutely nothing to do with "cores," which the operating-system will exploit automatically on behalf of any and all running processes. Simply set the number of workers in Apache's configuration to some value greater than "one," and presto.
 
1 members found this post helpful.
  


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
[SOLVED] what's the difference between a multi-cpu , multi-core and a multi-thread system ? entz Linux - Hardware 11 12-20-2011 04:49 PM
Multi-chip Multi-core pthreads question sysbox Linux - Software 0 05-03-2010 06:29 PM
Can not restart httpd”File size limit exceeded(core dumped) $HTTPD -DSSL” sreejithedl Linux - Server 2 10-12-2009 11:24 AM
httpd - Fedora Core 6 SgtM Linux - Server 6 04-09-2007 10:49 AM
Fedora Core 4 and, (apparently), HTTPD... Galaxy_Stranger Linux - Newbie 15 11-10-2005 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:51 PM.

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