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...
Showing posts with label centos. Show all posts
Showing posts with label centos. Show all posts
Tuesday, March 28, 2023
Monday, March 27, 2023
OpenSSL : Install and Upgrade version
1.Verify the current OpenSSL version# openssl version 2. Download the latest version OR previous version of OpenSSL# cd /usr/local/src# wget https://www.openssl.org/source/openssl-X.X.X.tar.gz# tar -xvzf openssl-X.X.X.tar.gz3.Manually compile and install OpenSSL# cd openssl-1.0.2l#./config# make depend# make# make test# make install4.Move the newly installed OpenSSL binary to the PATH# mv...
Friday, March 24, 2023
Rocky 9 : Install PHP8.3 & PHP-FPM
Install PHP 1.Add the EPEL (Extra Packages for Enterprise Linux) repository #dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm2.Add the REMI repository for Rocky Linux 9#dnf install https://rpms.remirepo.net/enterprise/remi-release-9.2.rpm 3. Install yum utilities. #dnf -y install yum-utils4.Verify the list of an available repositories on the Rocky Linux system#dnf...
Tuesday, March 8, 2022
FirewallD: Allow Port or Services
To start / stop firewalld #systemctl start firewalld OR service firewalld start #systemctl stop firewalld OR service firewalld stop1. To allow specific port. Example to allow TCP port 10000, 8080 and 8443#firewall-cmd --permanent --add-port=10000/tcp#firewall-cmd --permanent --add-port=8080/tcp#firewall-cmd --permanent --add-port=8443/tcp#firewall-cmd --reload2. To check the port that opened#firewall-cmd...
Tuesday, March 1, 2022
Tomcat : Setup SSL Cetrificate On Tomcat
The step to setup SSL certificate on Tomcat servera) Requirement1.The active certificateintermediate certificatecertificateprivate key 2. The Toolkeytoolopenssl&nb...
Monday, February 28, 2022
Tomcat : Enable auto startup Tomcat service in Centos 7
1. Create file tomcat.service in /usr/lib/systemd/system/2. Edit file tomcat.service add[Unit]Description=tomcat7[Service]Type=forkingWorkingDirectory=/usr/local/tomcat7/binExecStart=/bin/bash /usr/local/tomcat7/bin/startup.sh startExecStop=/bin/bash /usr/local/tomcat7/bin/shutdown.sh stopUser=rootGroup=root[Install]WantedBy=multi-user.target#make sure used exact Tomcat install location 3....
Centos : Update Centos 6
Issue : Error: Cannot find a valid baseurl for repo: base Solutions : To fix this problem you edit /etc/yum.repos.d/CentOS-Base.repo and replace all mirrorlist1. Go to /etc/yum.repos.d/ directory:
# cd /etc/yum.repos.d/
2. Make copy of original file:
# cp CentOS-Base.repo CentOS-Base.repo.old
3. Open and edit file with any text editor:
# vi CentOS-Base.repo
4. Replace mirrorlist‘s
Replace in sections:
[base]name=CentOS-$releasever...
Thursday, October 22, 2020
CENTOS : Cleaning up duplicate packages when yum has failed
Solution:#package-cleanup --cleandupes --removenewestdupes #yum updatesource: https://wiki.centos.org/HowTos/CleaningUpDuplicatePackages&nb...
Wednesday, October 7, 2020
Netdata : Install and configuration in Centos 7
Netdata is FREE tools for monitor everything in real time. 1. Install Netdata # bash <(curl -Ss https://my-netdata.io/kickstart.sh) all2. Allow Netdata port in firewall# firewall-cmd --permanent --add-port=19999/tcp# firewall-cmd --reload 3. Create Apache.conf to monitor Apache servervim /etc/netdata/python.d/apache.confadd this line: localhost: ...
Apache : Enable Mod_Status Module in Apache Centos 7
1. Enable and configure mod_status module in Apache#vi /etc/httpd/conf.modules.d/00-base.confUn-commented to enable mod_status module2. Once enable the module, need to create a server-status.conf in /etc/httpd/conf.d#vi /etc/httpd/conf.d/server-status.conf Add following line:<Location "/server-status"> ...
Monday, October 5, 2020
CENTOS : Install Desktop GUI
1. Install GNOME #yum -y groups install "GNOME Desktop" 2. Install KDE Desktop Environment#yum -y groups install "KDE Plasma Workspaces" 3. Install Cinnamon Desktop Environment # yum -y install epel-release
# sed -i -e "s/\]$/\]\npriority=5/g" /etc/yum.repos.d/epel.repo # set [priority=5]
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo # for another way, change to [enabled=0]...
Thursday, April 16, 2020
Centos 7 : Extending LVM Volume
1. Check the un-partition disk under Disk GUI on Centos 7 GUI
2. Create and format disk #fdisk -l
#fdisk -l /dev/sda3
- to format the partition :
- n = create new partition
- p = creates primary partition
- 1 = makes partition the first on the disk
- to prepare the partition to be used by LVM...
Wednesday, March 11, 2020
Centos 7 : Guide to increace /dev/mapper/root on Centos 7
Guide to increace /dev/mapper/root on Centos 7
1. backup all data in /home
- #tar -czvf /root/home.tgz -C /home .
- test backup : #tar -tvf /root/home.tgz
2. unmount home
- #df-h
- #umount /dev/mapper/centos-home
3. remove the home logical volume
- #lvremove /dev/mapper/centos-home
4.recreate a new (400GB) logical volume for /home, format and mount it
- #lvcreate -L 400GB -n home centos
- #mkfs.xfs...
Tuesday, December 24, 2019
Centos 7 : Install Multiple PHP Version (php5.6 and php7.3, php7.4, php8.1)
The guide (refer www.tecmint.com)
1. Installing and enabling the EPEL and Remi repository - offers the latest versions of the PHP stack on CentOS
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
2. Install the yum-utils package - which is used to enable or disable Yum repositories on the system
#...
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...
Monday, January 28, 2019
Centos : Allow two NIC with different subnet
Solution:
Edit /etc/sysctl.conf
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
# Controls source route verification
net.ipv4.conf.default.rp_filter = 2
...
Save and restart server
Source:
http://jensd.be/468/linux/two-network-cards-rp_filter...
Thursday, July 6, 2017
Centos : Manage LVMs With a GUI
1. Install LVM Gui
#yum install system-config-lvm
2. Lunch LVM Gui
#system-config-lvm
3. Go to Disk Utility
Add new partition
- Create and Mount new partition
- After that un-mount back the new partition
4. Go to LVM Gui back - "initialize entity" the...
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
...
Wednesday, August 3, 2016
Centos : Reset root password
source:
https://community.spiceworks.com/how_to/4022-reset-root-password-on-centos-5-6
http://www.tecmint.com/reset-forgotten-root-password-in-rhel-centos-and-fedora...
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...
Subscribe to:
Posts (Atom)