DevOps part 2, Linux Server Setup

Today I will explain how I installed Linuz and other usefull things for it.

 

First is to install a Linux distribution:

For this I choose to do it inside a virtual machine (virtualBox with Ubuntu)

Link to download Ubunto:

https://www.ubuntu.com/download/desktop/thank-you?country=MX&version=18.04.2&architecture=amd64

don

After installing it into virtualBox:

ubu

After that I Installed support for your development environment.

In my case I installed python, Java, etc (but you can use the ones you will need and use)

$ sudo apt-get install build-essential checkinstall

$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \

libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

$ wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz

$ tar xzf Python-3.7.0.tgz

$ cd Python-3.7.0

$ sudo ./configure –enable-optimizations

$ make

$ sudo make install

 

Then for setup web deployment, I choose a classic LAMP stack.

For that I had to install Apache2:

(In the terminal)

sudo apt install apache2 -y

Then install MySQL:

sudo apt install mysql-server -y

(You can secure it):
sudo mysql_secure_installation

For Password I choose NO  (n)

After that all YES (y)

 

The last step to install LAMP on Ubuntu is to install the PHP preprocessor.

sudo apt install php -y   sudo systemctl restart apache2

 

For extra you can Install PHP Modules:

sudo apt install php-curl

 

References:

https://github.com/byt3bl33d3r/SILENTTRINITY/wiki/Setting-up-your-development-environment

https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page

https://dzone.com/articles/install-lamp-on-ubuntu-1804-1

 

Deja un comentario