LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   httpd multi core (https://www.linuxquestions.org/questions/linux-software-2/httpd-multi-core-4175497619/)

!! hack-back !! 03-09-2014 04:18 PM

httpd multi core
 
hello,
how to make httpd work on multi cores ?

http://puu.sh/7pkc7.png

John VV 03-09-2014 06:25 PM

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

!! hack-back !! 03-09-2014 09:31 PM

what i must port ? i have centos 6.3 with apache and php installed. what i must post ?

John VV 03-09-2014 11:15 PM

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

!! hack-back !! 03-09-2014 11:48 PM

version: Apache/2.2.15 (Unix)
i cant multi threaded in this version ? if yes ? full tutorial please ?

!! hack-back !! 03-10-2014 04:35 PM

no help in this ?? apache just use 1 core ?

Habitual 03-10-2014 04:58 PM

Quote:

Originally Posted by !! hack-back !! (Post 5132229)
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.

!! hack-back !! 03-11-2014 06:32 AM

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

!! hack-back !! 03-11-2014 06:49 AM

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 ?

Habitual 03-11-2014 08:36 AM

What do the apache logs say is happening?

!! hack-back !! 03-11-2014 09:57 AM

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

Habitual 03-11-2014 10:09 AM

Google
Code:

Symbolic link not allowed or link target not accessible: /var/www/cgi-bin

!! hack-back !! 03-11-2014 10:19 AM

i edit
/etc/sysconfig/httpd
and uncomment
HTTPD=/usr/sbin/httpd.worker

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

but in htop
just 1 core = 100%
and i have 4 cores

!! hack-back !! 03-11-2014 11:29 AM

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

sundialsvcs 03-11-2014 12:22 PM

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.


All times are GMT -5. The time now is 11:02 AM.