Recent Posts

Adding a Self Signed Certificate to Trusted Certificate on Linux

Naveen Nayak January 14, 2016 No Comments Linux, Web Development , ,

Some times, when we generate self signed certificates, some libraries need it to be a part of the operating systems trusted certificates I am doing this on CentOS 7 and for openSSL This will only work for apps/libraries that use OpenSSLs trusted certificate list I already have my self signed certificate in /etc/pki/tls/certs/my-self-signed-cert.crt cp /etc/pki/tls/certs/devinviteright.crt […]

Better Putty Color Scheme for existing Sessions on Windows

Naveen Nayak December 18, 2015 No Comments Tips and Tricks ,

Putty is a versatile tool for remote SSH access – however the color schemes are not too impressive. The blue especially is really bad. You can change the blue color in the settings but what if you already have a ton of putty Saved Sessions. You will have to painfully modify each. There is a […]

PHP 5.6 and Self Signed Certificates for Soap, file_get_contents

Naveen Nayak November 18, 2015 No Comments LAMP, Web Development ,

Operating System: CentOS 7 PHP: 5.6 This is only for local machine and local development – use at your own risk I a using a self signed SSL certificate on my local development machine and many functions in PHP refuse to work with self signed certificates. Some of the functions are file_get_contents() fopen() SoapClient() my […]

Increasing File Descriptors and Open Files Limit CentOS 7

Naveen Nayak September 17, 2015 4 Comments Linux, MySQL , ,

PS: See Andy Dyrcz¬†answer in the comments for a better way to do this Some programs like Apache and MySQL require a higher number of file descriptors. This is how you can increase that limit for all users in CentOS 7 Commands require root access # Find the default limit – check the open files […]

Changing SSH Ports CentOS 7

Naveen Nayak September 17, 2015 No Comments Linux

Here is how to change the SSH port in CentOS 7 All commands require root privileges SSH into the server with the default SSH port 22 edit /etc/ssh/sshd_config¬† un-comment #Port and put your new SSH port number there for example, if you choose 9898 as your new port, the file should look like # If […]

Linux Cron not running ?

Naveen Nayak April 13, 2015 No Comments Linux, Tips and Tricks

There are 2 ways to set up periodic cron jobs in linux Put them directly in the crontab Put them in one of the cron directories – below are available /etc/cron.hourly /etc/cron.daily /etc/cron.weekly /etc/cron.monthly So you can create a script and put it in one of the directories and they will run according to schedule […]

Ajax File Upload without iframe

Naveen Nayak February 10, 2015 No Comments Jquery, LAMP, Web Development

The Invisible I-frame File Upload method works in almost all browsers. This post explains using FormData to submit forms that is supported by most new browsers. <? if( isset($_POST) && ! empty($_POST) ) { $file = $_FILES[‘myfile’]; $output =”Response From the Server\n”; $output .= “myInput = “.$_POST[‘myInput’]; $output .= “\n”.’File Name: ‘.$file[‘name’]; $output .= “\n”.’File […]

Page 2 of 13