Infrastructura partiala

Cum instalezi servere LAMP (Linux Appache MySQL PHP) pe CentOS7 (LINUX)

1. Apache

1.1 Instalarea serverului Apache:

sudo yum install httpd

1.2 Se porneste serverul Apache:

sudo systemctl start httpd.service

1.3 Se verifica functionalitatea

http://adresa_server 

Daca totul functioneaza corect trebuie sa arate asa:

1.4 Pentru pornirea automata a serverului:

sudo systemctl enable httpd.service

2. MySQL (MariaDB)

2.1 Instalare:

sudo yum install mariadb-server mariadb

2.2 Pornirea serverului:

sudo systemctl start mariadb

2.3 Configurare:

Enter current password for root (enter for none):
OK, successfully used password, moving on…

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorization.

New password: password
Re-enter new password: password
Password updated successfully!
Reloading privilege tables..
 … Success!

2.4 Pornire automata la repornire server:

sudo systemctl enable mariadb.service

3. PHP

3.1 Instalare:

Se cauta pachetele necesare

Exemplu:

yum search php-

php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php-cli.x86_64 : Command-line interface for PHP
php-common.x86_64 : Common files for PHP
php-dba.x86_64 : A database abstraction layer module for PHP applications
php-devel.x86_64 : Files needed for building PHP extensions
php-embedded.x86_64 : PHP library for embedding in applications
php-enchant.x86_64 : Enchant spelling extension for PHP applications
php-fpm.x86_64 : PHP FastCGI Process Manager
php-gd.x86_64 : A module for PHP applications for using the gd graphics library
. . .

Pentru a afla informatii despre un pachet:

yum info package_name

Pentru instalarea pachetului necesar sau a pachetelor necesare:

sudo yum install package1 package2 …

Se editeaza scriptul info.php:

sudo vi /var/www/html/info.php

Se completeaza liniile:

<?php phpinfo(); ?>

Se scriu regulile pentru firewall

sudo firewall-cmd –permanent –zone=public –add-service=http
sudo firewall-cmd –permanent –zone=public –add-service=https
sudo firewall-cmd –reload

Se acceseaza: http://adresa_IP_server/info.php

Rezultatul trebuie sa arate ca in figura de mai jos:

[mai mult...]

Retea Virtuala Privata definitii si structuri

Retea Virtuala Privata

O rețea privată virtuală (din englezăvirtual private network, prescurtat VPN) extinde o rețea privată peste o rețea publică, precum internetul. Permite unui calculator sau unui dispozitiv ce poate fi conectat la rețea să trimită și să primească date peste rețele publice sau comune ca și cum ar fi conectat la rețeaua privată, beneficiind în același timp de funcționalitatea, securitatea și politicile rețelei publice.[1]

Mesajele din traficul de tip VPN pot fi transmise prin intermediul infrastructurii unei rețele publice de date (ex: Internet) folosind protocoalele standard, sau prin intermediul unei rețele private a furnizorului de servicii Internet (ISP), pusă la dispoziție publicului.

[mai mult...]

How to manually enable TPM in Windows

When deploying MBAM via Gpo, one of the things that needs to be done is to activate the TPM on your devices.

After setting up the Gpo for it, even if you use a script to automatically do this for you, there can be some devices which will require you to do this manually, in just a few simple steps.

In order to check the TPM availability, press the Start button, type tpm.msc, right click on it and Run as Administrator if you run it from the Domain Users accounts. On the management window,first thing that you’ll have to look at is the Specification Version. If the version is 1.2 you can skip at the next step, otherwhise you’ll have keep in mind the fact that the 2.0 version doese’t work with MBR partition table, and if you don’t want to convert it to GPT and reinstall your operating system for it to work and show as compliant in the MBAM Monitoring Agent, you’ll have to go to the manufacturer website and download the conversion software in order to change it to 1.2.

With these things out of the way, the only thing left to do is to click the Prepare the TPM.. button on the upper right side of the TPM Management window, wait for the computer to restart and press F1 when you are prompted to activate it.

[mai mult...]