Category: Linux, Windows, Mac
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
Installing Perl Modules – Ubuntu
Execute this command on a command line: sudo perl -MCPAN -e shell It will install CPAN if not already installed. Then it will take you to CPAN prompt. On CPAN prompt, execute this command to install Perl module: CPAN> install
apt-get install subversion – Package subversion is not available
On Ubuntu: $apt-get install subversion Reading package lists… Done Building dependency tree Reading state information… Done Package subversion is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or