Anything Goes
Please visit chatisto.com

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

View previous topic View next topic Go down

How To Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu

Post by captaincook on Fri Feb 17, 2017 4:07 pm

1.Instalirati apache web poslužitelj
Yum -y install httpd

2.Omogućiti pristup Apache web serveru korištenjem SSL-a.
Yum -y install crypto-utils* mod_ssl
Genkey –days 365 vm49-224.vua-lab.cloud
Vim /etc/httpd/conf.d/ssl.conf
Ispod LoadModule
SSLCertificateFile /etc/pki/tls/certs/vm49-224.vua-lab-cloud.crt
SSLCertificateFile /etc/pki/tls/private/vm49-224.vua-lab-cloud.key
I onda restart: service httpd restart
Provjerimo da li radi tako da upišemo https://vm49-224.vua-lab.cloud

3.Napraviti instalaciju i konfiguraciju pagespeed modula.
Yum -y install https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86-64.rpm

4.Napraviti instalaciju i konfiguraciju GeoIP modula. Nakon ovog koraka, ugasiti Apache kako biste mogli napraviti instalaciju nginx-a.
Yum -y install geo_ip
Service httpd restart
Ako ne radi treba instalirati php: yum -y install php php-cli php-common

5.Instalirati nginx
Service httpd stop
Yum -y install nginx

6.Napraviti web stranicu www.nginx.com kao virtualhost, napraviti testnu index.html datoteku za tu domenu sa sadržajem: “ Ovo je testna stranica za nginx za studenta Ime_i_Prezime”
7.Pokrenuti nginx servis i ispitati da li sve radi.

Vim /etc/nginx/conf.d/virtual.conf ->
Server {
Listen 80;
Server_name www.nginx.com;

Location / {
Root /virtual/www.nginx.com;
Index index.html index.htm;
}
}

Mkdir /virtual/www.ngnix.com/
Touch /virtual/www.nginx.com/index.html
Vim /virtual/www.nginx.com/index.html ->> Hrvoje Lovric
Service nginx restart

8.Instalirati sustav Jira I provjeriti da li radi.
Gugl

captaincook
New Member
New Member

Posts : 0
Join date : 2015-05-22

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum