Kako instalirati i konfigurirati Apache web poslužitelj za hostiranje web stranice s vašeg računala

Sadržaj:

Kako instalirati i konfigurirati Apache web poslužitelj za hostiranje web stranice s vašeg računala
Kako instalirati i konfigurirati Apache web poslužitelj za hostiranje web stranice s vašeg računala

Video: Kako instalirati i konfigurirati Apache web poslužitelj za hostiranje web stranice s vašeg računala

Video: Kako instalirati i konfigurirati Apache web poslužitelj za hostiranje web stranice s vašeg računala
Video: Linux Terminal za početnike 2024, Travanj
Anonim

Ovaj članak govori o tome kako preuzeti, instalirati i konfigurirati Apache web poslužitelj na računalu sa sustavom Windows za smještaj web stranice.

Koraci

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 1
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 1

Korak 1. Idite na www.apache.org i preuzmite najnoviju verziju Apache web poslužitelja.

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 2
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 2

Korak 2. Instalirajte Apache

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 3
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 3

Korak 3. U procesu instalacije dobit ćete zaslon koji vas pita za naziv vaše domene, naziv mreže i adresu e-pošte

U ta polja možete dodati bilo što. Dodajte ih u ovom formatu:

  • Naziv domene: example.com
  • Naziv mreže: www.example.com
  • Adresa e-pošte: [email protected]
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 4
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 4

Korak 4. Nakon što kliknete Dalje, vidjet ćete zaslon s pitanjem koji je ovo web poslužitelj

Možete odabrati Apache s popisa radijskih gumba.

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 5
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 5

Korak 5. Dobit ćete poruku o pogrešci nakon što vam kaže "Apache nije moguće konfigurirati

"" Uredite vam datoteku Apache.conf"

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 6
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 6

Korak 6. Zatim idite na Start-Programs-Apache HTTP poslužitelj

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 7
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 7

Korak 7. Odaberite "Konfiguriraj Apache poslužitelj"

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 8
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 8

Korak 8. Odaberite "Uređivanje konfiguracijske datoteke apache.conf"

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 9
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 9

Korak 9. Idite na Document Root pogon:

/mjesto"

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 10
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 10

Korak 10. Promijenite korijen dokumenta tako da pokazuje na mjesto vaše mape web stranice u gore navedenom pojmu pomoću / umjesto \

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 11
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 11

Korak 11. Učinite isto za pogon <Directory ":

/lokacija ">

Korak 12. Za testiranje vaše konfiguracije

  • Idite na Apache na traci zadataka i zaustavite uslugu.

    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Oznaka 1
    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Oznaka 1
  • Ponovo pokrenite uslugu.

    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Bullet 2
    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Bullet 2
  • Ako se ne pokreće, morate ispravno izmijeniti datoteku conf.

    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Bullet 3
    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Bullet 3
  • Nakon što se uspješno pokrene, idite u svoj preglednik i upišite localhost ili 127.0.0.1 u adresnu traku.

    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Oznaka 4
    Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 12 Oznaka 4

Metoda 1 od 1: Vraćanje

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 13
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 13

Korak 1. Ako zabrljate datoteku httpd.conf ne brinite, idite u svoju glavnu mapu Apache

Idite na podmapu conf.

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 14
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 14

Korak 2. Tamo ćete pronaći mapu pod nazivom "Original"

U ovoj mapi je prisutna sva sigurnosna kopija izvornih datoteka. Otvorite izvornu mapu.

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 15
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 15

Korak 3. Odaberite httpd.conf iz izvorne mape

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 16
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 16

Korak 4. Idite na Edit-Select All

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 17
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 17

Korak 5. Odaberite Kopiraj

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 18
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 18

Korak 6. Zatim se vratite na trenutni httpd.conf tj

izvan izvorne mape. i otvorite httpd.conf.

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 19
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 19

Korak 7. Odaberite Uredi-Odaberi sve

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 20
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 20

Korak 8. Pritisnite Izbriši

Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 21
Instalirajte i konfigurirajte Apache web poslužitelj za hostiranje web stranice s vašeg računala Korak 21

Korak 9. Kliknite i zalijepite izvorni tekst

Preporučeni: