Category Archives: Server
Permissions 0755 for ‘certificate.pem’ are too open
You may experience bad permission error and ignoring operation while running a command with AWS. It’s because a AWS are concern about your security and make sure the certificate are only accessible by you, not even to read them or discover their names. That’s basic sensible security and it means no permissions whatsoever for group…
Using multiple AWS Accounts from command line
A common mistake like launching and creating an app to different account can be happen when anyone managing multiple AWS account at a time. You can easily manage that by configuring command line interface to interact with AWS such as your security credentials and the default region, profile name. To overcome the difficulty, Create a…
SMTP, IMAP and POP server settings
GMAIL POP SMTP IMAP Host pop.gmail.com smtp.gmail.com imap.gmail.com Port 995 25 993 SSL Required Yes Yes Yes YAHOO POP SMTP IMAP Host pop.mail.yahoo.com smtp.mail.yahoo.com NA Port 110 25 NA SSL Required Yes Yes NA YAHOO PLUS POP SMTP IMAP Host plus.pop.mail.yahoo.com plus.smtp.mail.yahoo.com NA Port 995 465 NA SSL Required Yes Yes NA Windows Live POP…
Javascript not working – NetworkError: 404 Not Found
Yesterday, I have deployed an application on Ubuntu server but the javascript was no longer working after configuring the virtual host. I have taken following steps to find the problem: Viewed the HTML source code using firebug and found page not found error Checked the .htaccess file, but there were no problem Tried a test…
HTTP basic authentication using email address
In my previous article, I have written about HTTP basic authentication in rails using a plain user access YML. Last few days ago, I have modified the logic to log-in using email address and password. So that anyone don’t need to remember another new password. Hope it might help you… Written a news private method…
HTTP basic authentication in rails to protect staging server
Sometimes, you may need to protect your staging server from outside world. It can be done easily by using http basic authentication in rails3. I did following things to use HTTP basic authentication to protect my staging server: YML file with username and password pair: devuser: devpasstestuser: testuserpass Loaded YML data from application initializer: HTTP_AUTH_USERS…
Rails application deployment using shell script
I have used following shell script to deploy one of my Ruby on Rails applications: DATES=`date +%Y%m%d%H%I%S`service apache2 stop &&mysqldump -u[user] -p[pass] [yourdbname] > “your backup directory”[yourdbname]_${DATES}.sqlgit pull &&bundle install –path [your bundle path] &&bundle exec rake db:migrate RAILS_ENV=production &&mv [your application’s production log file] [your application’s production log backup path]/production_${DATES}.log &&touch [your application’s production…
Disable a user account in Linux
There are some different approaches to do that. The easy way to disable a user account is to alter stored password which is stored to /etc/shadow. In that case password will be lost unless you save save the password in different file. You can alter the password by using following command: passwd {username} {new password}…
Memory overflow issue
I am writing this one to share my experience to you. In the very beginning of my professional career, I have developed an web application for Shylhet Chamber of Commerce using LAMP and delivered it successfully. Almost three months(Couldn’t remind exactly) later we have notified from client that they couldn’t log into the application. Then…