0% found this document useful (0 votes)
49 views3 pages

VPS Setup

This document provides instructions for installing and configuring several common development tools on a Debian 11 system, including Java 11, Jenkins, Nginx, MySQL, Composer, Node.js, PHPMyAdmin, and PHP-FPM. It describes how to install each tool using apt, configure Nginx as a reverse proxy for Jenkins, and notes the ports in use and key configuration folders.

Uploaded by

fypsolution.com
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views3 pages

VPS Setup

This document provides instructions for installing and configuring several common development tools on a Debian 11 system, including Java 11, Jenkins, Nginx, MySQL, Composer, Node.js, PHPMyAdmin, and PHP-FPM. It describes how to install each tool using apt, configure Nginx as a reverse proxy for Jenkins, and notes the ports in use and key configuration folders.

Uploaded by

fypsolution.com
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Operating System : Debian 11

INSTALL JDK 11
-----------------

$ sudo apt update


$ sudo apt install openjdk-11-jre
$ java -version

INSTALL JENKINS
------------------

$ curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo tee


/usr/share/keyrings/jenkins-keyring.asc > /dev/null
$ echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc]
https://pkg.jenkins.io/debian binary/ | sudo tee
/etc/apt/sources.list.d/jenkins.list > /dev/null
$ sudo apt-get update
$ sudo apt-get install jenkins
$ cat /var/lib/jenkins/secrets/initialAdminPassword [ FOR GET ADMIN PASSWORD ]
$ sudo systemctl status jenkins [ CHECKING JENKINS SERVICE ]
$ systemctl edit jenkins [ EDIT JENKINS ESPECIALLY CHANGE PORT NUMBER ]
$ journalctl -u jenkins.service [ JENKINS LOGS ]
$ sudo systemctl start jenkins [ START JENKINS ]

INSTALL NGINX
-----------------

$ sudo apt-get update


$ sudo apt-get install nginx
$ sudo nginx -v
$ sudo systemctl status nginx [ CHECK STATUS FOR NGINX ]
$ sudo systemctl restart nginx [ RESTART NGINX SERVICE ]
$ sudo sysemctl start nginx [ START NGINX ]

FOLDER : /etc/nginx [ INSTALLED ]


FOLDER : /var/log/nginx [ LOGS INCLUDE ERRORR ]

SETUP NGINX AS REVERSE PROXY FOR JENKINS


-----------------------------------------

$ cd /etc/nginx/conf.d
$ vi {name of the config}.conf

server {
listen 80;
listen [::]:80;

server_name {domain or subdomain};

location / {
proxy_pass http://{ip address}:{port of application}/;
}
}

$ sudo nginx -t
$ sudo nginx -s reload

# SETTING SUBDOMAIN , ADD A/AAAA RECORD IN LINODE DOMAIN MANAGER


INSTALL MYSQL
-------------------

$ sudo apt update


$ sudo apt install gnupg
$ wget {get latest from mysql https://dev.mysql.com/downloads/repo/apt/ }
$ sudo dpkg -i {file that above steps}
$ sudo apt update
$ sudo apt install mysql-server
$ sudo systemctl status mysql [ CHECKING MYSQL STATUS ]
$ mysql_secure_installation

INSTALL COMPOSER GLOBALLY


--------------------------

$ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"


$ php -r "if (hash_file('sha384', 'composer-setup.php') ===
'55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c7
1c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt';
unlink('composer-setup.php'); } echo PHP_EOL;"
$ php composer-setup.php
$ php -r "unlink('composer-setup.php');"
$ sudo mv composer.phar /usr/local/bin/composer

INSTALL NODEJS & NPM


-----------------------

$ sudo apt update


$ apt-get install nodejs
$ apt-get install npm
$ node -v
$ npm version

INSTALL PHPMYADMIN
--------------------

$ cd /var/www
$ composer create-project phpmyadmin/phpmyadmin

INSTALL PHP-FPM TO BE USED TOGETHER WITH NGINX SERVER


------------------------------------------------------

$ sudo apt-get update


$ sudo apt-get upgrade
$ sudo apt-get install php{version}-fpm [ EXAMPLE: php7.4-fpm ]
$ sudo systemctl status php{version}-fpm [ CHECKING PHP-FPM SERVICE STATUS ]
$ sudo apt install openssl php{version}-common php{version}-curl php{version}-json
php{version}-mbstring php{version}-mysql php{version}-xml php{version}-zip

FOLDER : /etc/php/{version}

PORT IN USED
-----------

1111 => fypsolution


8080 => jenkins
8888 => phpmyadmin4

You might also like