*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...
Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts
Tuesday, December 31, 2024
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
Ubuntu : Ubuntu 20.04 on ESXi Generating multipathd Errors
Issue:Solutions:1. Shutdown the VM2. Edit then VM : Edit Setting > VM Options3. Under : Advanced > Configuration Parameters > Edit4. Add a new parameter with following properties: Key: disk.EnableUUIDValue: TRUE 5. Click OK 6. Power on the VM 7. Confirm the errors have stopped in...
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
SSL : Disable SSL on Webmin
1. Edit /etc/webmin/miniserv.conf
2. Change value of "ssl" entry from 1 to 0
ssl=1 (enable)
ssl=0 (disable)
3. Restart webmin services # /etc/init.d/webmin restart
4. Restart apache services # /etc/init.d/httpd rest...
Thursday, November 22, 2018
Ubuntu : Set Static IP Ubuntu 18.04
To configure a static IP address using the new NetPlan tool on Ubuntu server:
Edit #sudo nano /etc/netplan/50-cloud-init.yaml
Add IP address, gateway and DNS
Check IP Address
Source : https://websiteforstudents.com/configure-static-ip-addresses-on-ubuntu-18-04-beta
...
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
VNC Viewer error : No Matching security types
Issue : No Matching security types
Solutions : #gsettings set org.gnome.Vino require-encryption false
...
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
How To Find Public IP Address from command on Linux
source : http://www.cyberciti.biz/faq/how-to-find-my-public-ip-address-from-command-line-on-a-lin...
Friday, September 18, 2015
Ubuntu : Installing Apache2/Modperl
source :
http://41j.com/blog/2012/09/installing-apache2modperl-on-ubuntu-12-04...
Ubuntu : Could not get lock /var/lib/apt/lists/lock problem
Problems:
Could not get lock /var/lib/apt/lists/lock
Solution:
#sudo su
#sudo rm /var/lib/apt/lists/lock
#apt-get upd...
Wednesday, June 3, 2015
Ubuntu : Disable and remove AppArmor on Ubuntu based Linux distributions
http://www.techytalk.info/disable-and-remove-apparmor-on-ubuntu-based-linux-distributio...
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
Ubuntu : Edit resolve.conf file
solution :
#sudo vim /etc/resolvconf/resolv.conf.d/base
then add:
nameserver 8.8.8.8
nameserver 8.8.44
then update :
#sudo resolvconf...
Wednesday, December 31, 2014
Ubuntu : Start/Stop Ubuntu networking
To start network interface
#sudo ifup eth0 / eth1
To stop network interface
#sudo ifdown eth0 / et...
Tuesday, September 30, 2014
Ubuntu : /var/lib/ureadahead/debugfs & Disk Space “Recovery”
Source : http://www.somewhereville.com/?p=1...
Subscribe to:
Posts (Atom)