|
@@ -1196,9 +1196,39 @@ su
|
1196
|
1196
|
emacs /etc/apache2/apache2.conf
|
1197
|
1197
|
#+END_SRC
|
1198
|
1198
|
|
1199
|
|
-Search for MaxClients and replace the value with 8 then save and exit.
|
|
1199
|
+Search for MaxClients and replace the value with 6. As an example the settings should look something like this:
|
1200
|
1200
|
|
1201
|
|
-In the examples below replace mydomainname.com with your own domain.
|
|
1201
|
+#+BEGIN_SRC: bash
|
|
1202
|
+<IfModule mpm_prefork_module>
|
|
1203
|
+ StartServers 3
|
|
1204
|
+ MinSpareServers 3
|
|
1205
|
+ MaxSpareServers 5
|
|
1206
|
+ MaxClients 6
|
|
1207
|
+ MaxRequestsPerChild 0
|
|
1208
|
+</IfModule>
|
|
1209
|
+
|
|
1210
|
+<IfModule mpm_worker_module>
|
|
1211
|
+ StartServers 2
|
|
1212
|
+ MinSpareThreads 25
|
|
1213
|
+ MaxSpareThreads 75
|
|
1214
|
+ ThreadLimit 64
|
|
1215
|
+ ThreadsPerChild 25
|
|
1216
|
+ MaxClients 6
|
|
1217
|
+ MaxRequestsPerChild 0
|
|
1218
|
+</IfModule>
|
|
1219
|
+
|
|
1220
|
+<IfModule mpm_event_module>
|
|
1221
|
+ StartServers 2
|
|
1222
|
+ MinSpareThreads 25
|
|
1223
|
+ MaxSpareThreads 75
|
|
1224
|
+ ThreadLimit 64
|
|
1225
|
+ ThreadsPerChild 25
|
|
1226
|
+ MaxClients 6
|
|
1227
|
+ MaxRequestsPerChild 0
|
|
1228
|
+</IfModule>
|
|
1229
|
+#+END_SRC
|
|
1230
|
+
|
|
1231
|
+Then save and exit In the examples below replace /mydomainname.com/ with your own domain name.
|
1202
|
1232
|
|
1203
|
1233
|
#+BEGIN_SRC: bash
|
1204
|
1234
|
export HOSTNAME=mydomainname.com
|