Maitiro ekuisa LAMP pane Ubuntu Server

Granaja yemaseva anogona kuve neLAMP mumatumbu avo

Kunyangwe nenyaya yekuti muDesktop pasirese pane zvakawandisa zveGnu / Linux zvakagoverwa uye zvakasiyana kwazvo, zvakafanana hazviitike muSeva pasirese uye zvishoma chete izvi zvinomira kana zvinoshandiswa kugadzirisa maseva anofambisa mapeji ewebhu uye akasiyana webhu kunyorera.

Chimwe chezvinhu zvinonyanya kuzivikanwa mu server pasirese Ubuntu Ubuntu, yepamutemo vhezheni yeUbuntu inoitirwa maseva nemakomputa ayo anoshandiswa pachinangwa ichi. Asi, zvinosuruvarisa, kugovera kwakadai hakuuyi neLAMP server yakagadziriswa, maitiro akareruka atinozokuudza maitiro ekuita.Kutanga tinofanira kutaura izvozvo LAMP inomirira Linux Apache MariaDB (MySql) uye PHP. Saka kuisa LAMP server kuri kuisa zvese izvo software uye nenzira imwechete yezvinyorwa. Nekudaro, chinhu chekutanga chatinofanira kuita kuisa Apache. Tichaita izvi nekuita unotevera kuraira mune terminal:

sudo apt-get install apache2

Mushure mekuimisa, Tinogona kutarisa kuti zvinoshanda nekutaipa muwebhu browser kero http: // localhost / uye chimwe chinhu senge chinotevera chichaonekwa:

Peji rakajairwa peji

Iye zvino tinofanirwa kuisa dhatabhesi iyo mune ino kesi isu tinoshandisa MariaDB. MariaDB forogo yeMySql saka inoshanda zvakadaro asi ndeye mahara nepo MySql iri yeOracle. Kuiswa zvakare zvakareruka. Isu tinofanirwa kuteedzera inotevera mirairo mune iyo terminal:

sudo apt install mariadb-server mariadb-client

Kana isu vhezheni pamberi peUbuntu 18.04, yakajairika kunyangwe maseva mazhinji, saka isu tinofanirwa kuita izvi zvisati zvaitika:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://sgp1.mirrors.digitalocean.com/mariadb/repo/10.3/ubuntu bionic main'

Uyezve isu tinofanirwa kuita zvinotevera:

sudo apt-get update
sudo apt-get install mariadb-server

Isu tinoita izvi neese shanduro pamberi peUbuntu 18.04 nekuti vane vhezheni yekare yaMariaDB nepo Ubuntu 18.04 ine yazvino vhezheni uye kumhanyisa mitsara iri pamusoro inosanganisira kuisa yazvino vhezheni yaMariaDB.

Iye zvino zvatine database isu tinofanirwa kuenderera nemutauro wePHP. Mune ino kesi isu tinofanirwa kuita unotevera kuraira:

sudo apt-get install php libapache2-mod-php php-mysql

Uye mushure meizvi tichava neLAMP server yakagadzirira uye ichishanda. Asi chete nenzira yakakosha. Kana isu tichida kuiisa pane yekugadzira server isu tinofanirwa kufunga nezve firewall uye ma module. Ichi chi, MuFirewall tinofanirwa kuvhura madoko 80 uye 443.  Uye kana isu tichida epamberi PHP mabasa, saka isu tinofanirwa kuisa ma module. Asi izvo zvinoenderana nezvinodiwa nemumwe nemumwe. Chero zvazvingaitika, neizvi tinogona kuve neyakakosha uye yekugadzira LAMP server iyo inogona kushandiswa kushandiswa kwemumba.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Makomendi gumi, siya zvako

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

  1.   Bernardo S. Gtz akadaro

    Ini ndakatevera nhanho dzekuisa mwenje mune linuxmint 19, uye ndikawedzera iyo kodhi Sudo apt-tora kuisa phpmyadmin asi kana ndichipinda localhost / phpmyadmin handikwanise, nekuti ini handina mukana. Ndingapinda sei?

  2.   ice akadaro

    Ehe. Ini zvakare ndakaita vhidhiyo uye chaiwo matanho chaiwo ekugadzirisa.

    https://linuxforallsite.wordpress.com/2017/03/25/instalar-lamp-en-ubuntu-17-04-zesty-zapus/