Jump to content
sleed

Tutorial - Cum sa instalezi apache pe FreeBSD

Recommended Posts

Cum sa instalati un webserver Apache pe FreeBSD?

Ce este FreeBSD ? https://www.freebsd.org/

FreeBSD is an advanced computer operating system used to power modern servers, desktops and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

1) E important ca la orice versiune sa facem un update la la porturi. Mai multe detalii despre portsnap gasiti aici : FreeBSD Portsnap

cd /usr/ports/ports-mgmt/portmanager
make install clean

2) Acum instalam apache24[ 24=versiunea pentru FreeBSD 10 , 22=pentru versiunile mai vechi, etc..] . Acum executati urmatoarele comenzi:

cd /usr/ports/www/apache24/
make install clean

Module Index - Apache HTTP Server Version 2.2

Este important sa cititi cu rosu, deoarece sa cunoasteti ce module sa instalati, exemplu , poate aveti nevoie de vhost_alias , mem_cache, proxy_balancer. Aici ramane la decizia voastra.

mod_vhost_alias

Provides for dynamically configured mass virtual hosting

Asteptam sa termine de compilat, apoi, gasim conf.ul principal in : /usr/local/etc/apache24/httpd.conf.

Deschidem httpd.conf si putem jongla cu ce dorim :

ServerName www.lucicafarafrica.ro

Listen 80 ...

etc..

Apoi adaugam apache24_enable="YES" in /etc/rc.conf . Restart : /usr/local/etc/rc.d/apache24 start

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...