Category: Linux

  • CentOS 7 – check version and install updates

    Check Linux version and other system info: hostnamectl Check CentOS version: rpm –query centos-release

  • Installing VMware Tools on Ubuntu Desktop – what is the location of the “ifconfig”

    Issue Installing VMware Tools (vmware-install.pl) on Ubuntu Desktop 17.04. Installation gets stuck with the following prompt: What is the location of the “ifconfig” program on your machine?

  • Plesk Onyx – FTP users can’t write to some subfolder inside httpdocs

    Issue FTP users created in Plesk Onyx control panel cannot upload files to some sub-folders inside httpdocs. Permission denied. Critical file transfer error.

  • Upgrading Netgear ReadyNAS Pro 6 from RAIDiator 4.X to ReadyNAS OS 6.X

    Legacy Netgear ReadyNAS models do not officially support the new ReadyNAS OS 6. Luckily is pretty straightforward to upgrade most of X86 based legacy ReadyNAS devices from RAIDiator 4.2 to ReadyNAS OS 6 unofficially. Needless to say, this is completely unsupported by Netgear and proceed at your own risk. There are bunch of threads about…

  • LinScsi: SCSILinuxAbortCommands: 1843: Failed, Driver MPT SAS Host, for vmhba2

    Issue Some of the VMs hosted on VMware ESXi 5.5 (DELL PowerEdge T310 host) occasionally become unresponsive.All attempts to login to the host via VMware vSphere Client fails with following error: Could Not ConnectvSphere Client could not connect to “10.5.5.25”. An unknown connection error occurred. (The request failed because the remote server took too long to respond. (The operation…

  • 7-ZIP – There are data after end of archive (Plesk tar backups)

    Tar archive files generated by Plesk web server backups generate following errors when trying to open them with 7-ZIP (v7.90): Error opening .tar archive – There are data after end of archive.

  • Installing and enabling PEAR Mail on 1&1 Plesk VPS

    PHP PEAR was not installed on my 1&1 VPS (CentOS 7) at all, so the first step was to to install it:  yum install php-pear

  • Plesk on CentOS – FTP server (ProFTPd) not working in passive mode

    Issue FTP clients fail to connect to Plesk FTP Server (ProFTPd) hosted on CentOS. FTP login actually succeeds, but directory listing command times out. Error: Connection timed out after 20 seconds of inactivity.Error: Failed to retrieve directly listing. Resolution The issue occurred because ProFTPd passive mode was not configured on the server.

  • Backup MySQL database using cron and php

    Here is a little PHP script that I use to backup MySQL databases on Hostgator Linux web servers. Simply save the .php file to a non publicly accessible part of the server and run regularly using crontab: /usr/bin/php /home4/username/my-backups/site-name/backup-task.php <?php$DATABASE=”db_name”;$DBUSER=”db_user”;$DBPASSWD=”db_password”;$PATH=”/home4/username/my-backups/site-name/”;$FILE_NAME=”site-name-backup-” . date(“Y-m-d”) . “.sql.gz”;exec(‘/usr/bin/mysqldump -u ‘.$DBUSER.’ -p’.$DBPASSWD.’ ‘.$DATABASE.’ | gzip –best > ‘.$PATH.$FILE_NAME);echo “Database(“.$DATABASE.”) backup…

  • Edit Subversion (SVN) commit comments (Synology NAS SVN server)

    When trying to edit commit log message using Tortoise SVN, following error is displayed: Subversion reported an error:Repository has not been enabled to accept revision propchanges;ask the administrator to create a pre-revprop-change hook

  • DELL iDRAC goes down during LiveDVD firmware update

    Last weekend I had a small task to update BIOS and other firmware on a non-mission critical DELL PowerEdge T310 server. To safe myself a site visit I decided to to do this remotely via iDRAC. I initially planned to run the updates from DELL Lifecycle Controller, but this was failing with error “The updates you are tying to apply are…

  • Update DELL iDRAC 6 Firmware via Web GUI

      Download Windows (.exe) version of iDRAC update utility from DELL. Extract the downloaded .exe file (with 7-zip or something similar).