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 9:37 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-23

Back to top Go down

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

Post by Smith_J on Tue Sep 26, 2017 3:37 pm

Ubuntu is a very different system than windows. Every thing or most of the things are done through commands. In the answer to your question i am giving the following set of commands. These commands will install MySql


To check your hostname run:

hostname
hostname -f

The first command should show your short hostname, and the second should show your fully qualified domain name (FQDN).

sudo apt-get update
sudo apt-get upgrade

Type In The Command To Install MySQL

sudo apt-get install mysql-server


During the installation process, you will be prompted to set a password for the MySQL root user as shown below. Choose a strong password and keep it in a safe place for future reference.

MySQL will bind to localhost (127.0.0.1) by default.

Run the mysql_secure_installation script to address several security concerns in a default MySQL installation:

sudo mysql_secure_installation

Smith_J
New Member
New Member

Posts : 7
Join date : 2017-09-23

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