Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Tuesday, December 31, 2024

Install Oracle Instant Client (oci8) for PHP5.6 on Ubuntu 22.04

*make sure php5.6 is already install 1. Install Basic and the SDK Instant Client packages. Download from OTNDownload version 12.1.0.2.0. This file is required:instantclient-basic-linux.x64-12.1.0.2.0.zipinstantclient-sdk-linux.x64-12.1.0.2.0.zip2. Install OCI8 version oci8-2.0.10. Download from pecl.php.net3. Manual install OCI8 #tar -xzf oci8-2.0.10.tgz#cd oci8-2.0.10#phpize#./configure -with-oci8=share,instantclient,/usr/lib/oracle/12.1/client64/lib#make...

Friday, October 20, 2023

Ubuntu : Static IP Ubuntu 22.04

Disable Cloud #sudo vi /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg network: {config: disabled} Config static IP #sudo vi /etc/netplan/xxxx.yaml network:  ethernets:    ens160:      addresses: [192.168.0.7/24]      routes:        - to: default         ...

Friday, May 12, 2023

Ubuntu : Extending LVM Volume

1. Check for free space by running. #cfdisksee if there is free space listed, can proceed to step 2if don’t see free space listed, initiate a rescan of /dev/sda#echo 1>/sys/class/block/sda/device/rescanonce done, re-run #cfdisk  2. Select which partition to extending. Example - /dev/sda3 partition from the list and then select “Resize”3. ENTER and it will prompt to confirm the new size. Now...

Tuesday, March 28, 2023

Note : The list required to install and configure

 Checklist to activate hosting server (php, laravel and sql server)Install VirtualminUpgrade PHP8.1 or latestTo connect with Oracle DB - install OCI8To connect with MSSQL - install ODBC, sqlsrv, pdo_sqlsrvInstall 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 apache23.Allowing...

Monday, October 26, 2020

Thursday, October 15, 2020

Ubuntu : Increase partition

 The step:1. Mount the live iso GParted partition editor.2. Boot the server and access the GParted.3. GParted display the drive status and information.4. Delete current linux-swap partition.5. Delete extended. 6. The unpartition drive should unallocated status.7. Recreate linux-swap partition....

Thursday, February 21, 2019

Thursday, November 22, 2018

Thursday, April 6, 2017

Ubuntu : Enable root login

Solution 1. Edit #/etc/ssh/sshd_config Change PermitRootLogin prohibit-password to yes Solution 2. Run the command #sudo sed -i 's/prohibit-password/yes/' /etc/ssh/sshd_config 3. Create password to root login #passwd root Source: https://linuxconfig.org/enable-ssh-root-login-on-ubuntu-16-04-xenial-xerus-linux-server-deskto...

Wednesday, December 21, 2016

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: http://unix.stackexchange.com/questions/44027/how-to-fix-boot-failure-due-to-incorrect-fsta...

Friday, December 18, 2015

Friday, September 18, 2015

Wednesday, June 3, 2015

Tuesday, June 2, 2015

Ubuntu : How to Remove Old Kernels From Ubuntu

Solutions: Check current running kernel version. #uname -r Check list of installed Kernels on your system. #dpkg --list | grep linux-image Find out the kernels you want to remove. #sudo apt-get purge linux-image-x.x.x.x-generic Source : http://ubuntuhandbook.org/index.php/2013/08/remove-old-kernels-from-ubuntu-13-04-13-1...

Tuesday, May 19, 2015

Wednesday, December 31, 2014

Tuesday, September 30, 2014