33 articles Linux Page 3 / 4

Linux Server Backups using HiDrive Pro

In this guide we will configure a nightly server backup running Bitnami with HiDrive Pro for FTP storage. Please note that only HiDrive Pro supports FTP access. Lower tariffs will not work with this setup: https://www.ionos.com/office-solutions/hidrive-cloud-storage Before we get started login to your HiDrive Pro account at https://hidrive.ionos.com Go to Settings > Account. Under “Access…

Ubuntu 14.04 to 16.04 upgrade – Network fix

If after a upgrade from Ubuntu 14.04 to 16.04 you notice that networking did not come back online please reference the steps below: systemctl enable systemd-networkd systemctl enable systemd-resolved systemctl start systemd-resolved rm /etc/resolv.conf ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf vi /etc/systemd/network/20-dhcp.network  Add the following: After this is completed restart the server and networking should be back…

Fix Bug Phpmyadmin [sql.lib.php]

Warning in ./libraries/sql.lib.php#<line number>count(): Parameter must be an array or an object that implements Countable Couse of phpmyadmin’s library try to counting some parameter but got wrong a code. That’s missing close bracket ‘)’ before operation with 1. So you need to change it to: remove last close bracket ‘)’ at this line like this,…

Centos 7 w/WHM cpanel running CSF firewall (SSHD non-standard port) – Unable to create cpanel users & postgres failing to start

After modifying SSHD.conf to the new port, and restarting SSHD, per other documentation… Some errors after doing the above… (XID 4f29va) The PostgreSQL service is down. at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1226 Failed to start PostgreSQL database server. Unit postgresql.service entered failed state. postgresql.service failed. postgresql has failed. Contact your system administrator if the service does not…

Quick guide for .htaccess redirects

Redirect HTTPS traffic to HTTP: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Redirect HTTP traffic to HTTPS: RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] Redirect both HTTPS and HTTP to HTTPS without www: RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www. [NC] RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC] RewriteRule ^(.*)$ https://google.com/$1 [R=301,L] Redirect both HTTPS and…

Mounting a Software Raid drive attached with USB in Linux rescue

1). Remake the raid mount points: 2). mount /dev/md10 /mnt/backup 3). Check for the USB volumes: vgdisplay lvscan 4). Use the UUID to rename the volume: vgrename TdDMzM-Q05M-MLaO-ylQb-tBkn-Xqpo-jgQ5vX usb1 5). Activate it:vgchange -a y usb1 6). Mount everything on /dev/usb1 like normal:mount /dev/usb1/home /mnt/backup/homemount /dev/usb1/usr /mnt/backup/usrmount /dev/usb1/var /mnt/backup/var