Welkom op de Nederland Computer Kennisnetwerk!  
 
Zoeken computer kennis
Home Hardware Netwerken Programmering Software Computerstoring Besturingssysteem
Computer Kennis >> Besturingssysteem >> Ubuntu >> Content
Hoe te Worker MPM activeren op Apache2 in Ubuntu
De Apache2 werknemer Multi - Processing Module , of MPM , implementeert Apache HTTPD met behulp van een schroefdraad -model . De werknemer MPM is aanzienlijk sneller dan traditionele modellen en wordt aanbevolen door Apache voor high - traffic servers . In tegenstelling tot de prefork MPM , de werknemer MPM heeft een kleine memory footprint en overhead . Het activeren van de werknemer MPM in Apache2 op Ubuntu is makkelijker dan het klinkt : Je hoeft alleen maar te downloaden, installeren en configureren met behulp van de Ubuntu command line interface . Instructies
1

Ga naar " /etc/php5/cgi /" en maak een back-up van uw " php.ini " bestand . De werknemer MPM installatie wordt dit bestand overschreven kopen van 2

Open het Ubuntu command line interface en typ dit commando aan de Apache2 werknemer MPM installeren: . " Sudo apt - get install apache2 - mpm - worker php5 - cgi . "Merk op dat tijdens de installatie , de " apache2 - mpm - prefork " en " libapache2 - mod - php5 " worden verwijderd .
3

Run deze commando's in je Ubuntu command line interface aan de " cgi " en " cgid " modules die nodig zijn voor de werknemer MPM naar functie in te schakelen : " . a2enmod cgid " " a2enmod cgi " en
4

Run deze commando's in je Ubuntu command line interface aan de " mod_actions " Apache2 modules te activeren : "cd /etc/apache2/mods-enabled , " " sudo ln- sf .. /mods-available/actions.load " en " . sudo ln- sf .. /mods-available/actions.conf "
5

Open het " actions.conf " configuratiebestand met behulp van dit commando: " sudo vi /etc/apache2 . /mods-available/actions.conf " Voeg dit toe aan het configuratiebestand : " . Actie application /x - httpd - php /cgi-bin/php5 < /IfModule > ' < br >
6

Open het " apache2.conf " configuratiebestand met behulp van dit commando:

sudo vi Twitter /etc/apache2/apache2.conf

U kunt uw configuratie te wijzigen door het bewerken van de volgende regels :

StartServers 2MaxClients 150MinSpareThreads 25MaxSpareThreads 75ThreadsPerChild 25MaxRequestsPerChild 0
7


Voer de volgende opdracht in je Ubuntu command line interface om de installatie te controleren :

/usr/sbin/apache2ctl - t

Als u een " Syntax OK " -bericht ontvangt , uw werknemer MPM goed werkt .
8

Herstart Apache2 om de instellingen toe te passen met behulp van deze opdracht :

sudo /etc/init.d/apache2 restart

Previous: Next:
  Ubuntu
·Ubuntu Memory Manager & Defrag…
·Hoe je Ubuntu installeren op E…
·Hoe te converteren XML naar ee…
·Hoe te installeren Picasa 2.7 …
·Hoe de Window Button Positie i…
·Hoe kan ik een partitie op Win…
·Hoe te installeren Ubuntu Linu…
·LightScribe -technologie voor …
·Hoe kan ik een partitie mounte…
  Related Articles
Hoe te Cool Bureaublad Achtergronden voo…
Hoe maak je Windows XP Fonts Look Better…
Hoe te bespoedigen Windows XP 
Hoe je Auto Login inschakelen in Windows…
Hoe je Auto Login inschakelen in Windows…
Hoe te installeren Windows XP op uw comp…
Hoe om te upgraden naar Vista uit Window…
Hoe om bestanden in Windows XP Pro 
Hoe te File Type Associations in Windows…
  Besturingssysteem Articles
·Stappen voor het installeren Roxio Creat…
·Hoe te lezen TAR bestanden 
·Hoe te Watch Live TV-kanalen op uw pc 
·Hoe te herstellen van Windows XP OEM 
·Hoe te CentOS installeren Via Serial 
·Hoe te gebruiken Groepsbeleid naar wacht…
·Hoe vaak je bureaublad achtergrond autom…
·Hoe te berekenen Gemiddeld Bestandsgroot…
·Hoe te Quicksilver verwijderen 
Copyright © Computer Kennis http://www.nldit.com