Category: Linux, Windows, Mac
Ubuntu – GPG Error while running apt-get update
While running update command after some time we were getting GPG error. It was showing an error message with public key => EAA903E3A2F4C039 not found.
Windows over AWS EC2 | Really slow remote server
On one of the AWS Windows EC2 machine we faced frequent problem of low disk space issue in C Drive. We figured out that a lot of user accounts were created on the server and from time to time those
Error Code: 3. Error writing file ‘/tmp/MYMI5iqH’ (Errcode: 28)
Problem Recently in a website we were developing in Codeigniter PHP Framework, some of the urls stopped working and started throwing 500 internal server error. On investigation we found a MySQL query which was causing the problem .Query is simple
Salesforce – Using dataloader on Linux
If you work on Linux and you want to upload data to Salesforce from a Linux machine, you cannot use dataloader as it is Windows based program. Besides you need to install it on your machine and you also need
Shared Hosting | Absolute location of a file
If you want to access a file on a shared hosting server by specifying its absolute location it may not work. The reason is what we see on shared hosting as root folder actually may have more before it that
PHP Code | Connect to remote SFTP location on Windows
We need to use the phpseclib library to connect to SFTP server: $sftp = new Net_SFTP(‘www.webnersolutions.com’); if (!$sftp->login(‘user_name’, ‘password’)) { exit(‘Login Failed’); } $this->downloadfiles($sftp->nlist()); //to download all files on remote root folder
Apache – Use a custom domain name instead of localhost
By following these steps you can run your local machine’s website using a custom domain name instead of localhost: 1. Edit apache configuration file: sudo gedit /etc/apache2/sites-available/000-default.conf add ServerName property as follows (you can add it just below DocumentRoot,
Apache Config Steps – Run multiple domains on same ip
Suppose you want to point abc.mydomain.com and mydomain.com to same machine/ip, but to different applications. There are multiple ways to achieve this (basically with same config settings but in different files). I am giving one way here that worked for me: * Go to
Generating ssh keys – steps
These are the steps: Suppose you want to connect from machine X to machine Y as userme. * login to X as userme * At /home/userme run this command: ssh-keygen -t rsa This will generate 2 files in /home/userme/.ssh folder
