Showing posts with label configuration. Show all posts
Showing posts with label configuration. Show all posts

Tuesday, March 28, 2023

Note : The list required to install and configure

 Checklist to activate hosting server (php, laravel and sql server)

  1. Install Virtualmin
  2. Upgrade PHP8.1 or latest
  3. To connect with Oracle DB - install OCI8
  4. To connect with MSSQL - install ODBC, sqlsrv, pdo_sqlsrv
  5. Install Laravel - install composer, npm, node

# Previous OS Centos 7 and below - install with latest OpenSSL 1.0.2k-fips
# Latest OS Rocky9.1 and above - install with latest OpenSSL 3.0

Friday, May 13, 2022

Letsencrypt : Secure Apache on Ubuntu 20.04

Let’s Encrypt is a Certificate Authority (CA) that facilitates obtaining and installing free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers.

1. Installing Certbot

#sudo apt install certbot python3-certbot-apache 

2.Checking your Apache Virtual Host Configuration

#sudo vi /etc/apache2/sites-available/your_domain.conf
#sudo apache2ctl configtest
#sudo systemctl reload apache2

3.Allowing HTTPS Through the Firewall

#sudo ufw status
#sudo ufw allow 'Apache Full'
#sudo ufw delete allow 'Apache'

4.Obtaining an SSL Certificate

#sudo certbot --apache 

5.Verifying Certbot Auto-Renewal

#sudo systemctl status certbot.timer 

- To test the renewal process
#sudo certbot renew --dry-run

source: 

- https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04

Friday, June 12, 2020

Centos 7 : Reset root password

The steps:

1. During boot menu, press (e) to edit existing kernel
2. Scroll down and find the line with (ro). Change (ro) with rw init=/sysroot/bin/sh. Ctrl-x to start
3. In emergency mode. Type #chroot /sysroot
4. Change the root password. Type #passwd root
5. Update the SELinux. Type #touch / .autorelabel
6. Exit and Reboot

Friday, February 22, 2019

Thursday, February 21, 2019

Thursday, November 22, 2018

Thursday, April 6, 2017

Thursday, July 28, 2016

Centos : How to fix boot failure due to incorrect fstab?

Solutions:

  • at the grub prompt, hit a to append options
  • add init=/bin/bash to the end of the kernel command line and press enter
The system will boot to a prompt like 'bash-3.2#' enter the following commands at the prompt
  • mount -o remount,rw /
  • vim /etc/fstab
Source:

Thursday, July 2, 2009