Apache 2.4

u4xlol

Verified User
Joined
Nov 12, 2009
Messages
57
hello

when upgrade my server apache from 2.2 to 2.4 shown below error and apache has been stoped

Code:
custombuild]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 18 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/libphp5.so into server: /usr/lib/apache/libphp5.so: undefined symbol: ap_log_rerror


i need to upgared my apache and use mpm-worker

please help me
 
Code:
cd /usr/local/directadmin/custombuild
./build update
./build php n
 
tnx

i want setup apache 2.4 on mpm--worker

but when i add "--with-mpm=worker" \ to /usr/local/directadmin/custombuild/configure/ap2/configure.apache and rebuild apache shown below error:

Code:
gcc: /usr/lib/mysql/libmysqlclient_r.so: No such file or directory
make: *** [libphp5.la] Error 1
make: *** Waiting for unfinished jobs....
gcc: /usr/lib/mysql/libmysqlclient_r.so: No such file or directory
make: *** [sapi/cli/php] Error 1

guide me plz
 
tahnks , my problem solved

but my server is Overload , yet !!
Server version: Apache/2.4.3
PHP 5.3.19 (cli)
CPU:2X Intel(R) Xeon(TM) CPU 2.80GHz
Ram : 4 GB

guide me plz
 
Code:
top - 14:05:55 up 64 days, 23:18,  1 user,  load average: 14.57, 43.19, 38.55
Tasks: 170 total,   2 running, 168 sleeping,   0 stopped,   0 zombie
Cpu(s): 92.4%us,  2.7%sy,  0.0%ni,  4.1%id,  0.0%wa,  0.2%hi,  0.7%si,  0.0%st
Mem:   4090576k total,  2367688k used,  1722888k free,   286908k buffers
Swap:  4192956k total,       72k used,  4192884k free,   607692k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
27289 apache    18   0  725m 371m 9.9m S 118.5  9.3  41:25.22 httpd
28279 apache    18   0  815m 441m 9.9m S 106.8 11.1  10:21.72 httpd
28829 apache    15   0  432m 123m 3468 S 86.9  3.1   0:19.90 httpd
28401 apache    18   0  732m 364m 3528 S 70.7  9.1   8:37.39 httpd
11370 named     15   0 71576 3968 2084 S  0.3  0.1   0:33.72 named
20669 root      16   0  2428 1056  788 S  0.3  0.0   1:07.64 top
24283 root      15   0  2428 1056  792 R  0.3  0.0   0:37.65 top
    1 root      15   0  2160  644  556 S  0.0  0.0   0:04.31 init
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:20.34 migration/0
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.08 ksoftirqd/0
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:02.17 migration/1
    6 root      34  19     0    0    0 S  0.0  0.0   0:00.11 ksoftirqd/1
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:02.25 migration/2
    9 root      34  19     0    0    0 S  0.0  0.0   0:00.07 ksoftirqd/2
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2
   11 root      RT  -5     0    0    0 S  0.0  0.0   0:02.08 migration/3
   12 root      34  19     0    0    0 S  0.0  0.0   0:00.11 ksoftirqd/3
   13 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3
   14 root      10  -5     0    0    0 S  0.0  0.0   0:00.58 events/0
   15 root      10  -5     0    0    0 S  0.0  0.0   0:00.63 events/1
   16 root      10  -5     0    0    0 S  0.0  0.0   0:00.43 events/2
   17 root      10  -5     0    0    0 S  0.0  0.0   0:00.52 events/3
   18 root      10  -5     0    0    0 S  0.0  0.0   0:00.00 kthread
   25 root      10  -5     0    0    0 S  0.0  0.0   0:00.36 kblockd/0
   26 root      10  -5     0    0    0 S  0.0  0.0   0:00.19 kblockd/1
   27 root      18  -5     0    0    0 S  0.0  0.0   0:00.24 kblockd/2
   28 root      10  -5     0    0    0 S  0.0  0.0   0:00.12 kblockd/3
   29 root      19  -5     0    0    0 S  0.0  0.0   0:00.00 kacpid
  124 root      19  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/0
  125 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/1
  126 root      20  -5     0    0    0 S  0.0  0.0   0:00.00 cqueue/2
 
Enable extendedstatus on apache and see which sites are the busiest.
 
Or use mod_status, put this in httpd.conf
Code:
<Location /server-status>
SetHandler server-status

Order Deny,Allow
Deny from all
Allow from xxx.xxx.xxx.xxx
</Location>
 
Back
Top