CentOS – Install Nginx And PHP-FPM using yum

centos6

In this article, I’m going to show you how to install Nginx with PHP-FPM via yum on CentOS (actually, steps are similar on another operating sytems). Before starting to install Nginx and PHP-FPM, you must uninstall all previous Apache and PHP related RPMs installed on your system or you’ll have to disable Apache or httpd on your system. Login as root and type the following command

Continue reading

Tips for optimizing LAMP stack & Linux server

performance_banner
1. Get a dedicated server
Advantages– Whole server power for you
– You are very flexible in terms of new versions for webserver, database, php …
– There are not other customers which run “bad” scripts which slow down the shop
– You don’t share the same ip, very important for SEO.
If one customer makes a “bad business”, the ip can be blocked by google which affects your search ranking.
My recommendation:I am a big fan of the Amazon EC2 cloud which gives you everything you need (flexibility, scalability, security).
Continue reading

Unix – Worst way to disable annoyance from auto execute or startup program

Banner-Gears

Is there any programs that you don’t want it to be triggered by any reason ? if so, this article will show you how to deal with it.
There’re many ways and tools that help you to disable programs from startup or auto triggered by other applications in Windows enviroment, and they’re efficient!
Using Unix-based systems, you have less choices to do such thing, and sometime you find it hard and confusing. And, if you hate some annoying programs like me, there’s a dirty method that will free you from annoyance :). All you have to do is to remove execute permission for bin file.
Open your termial and execute the following command :

chmod -x /path/to/file

may be you’ll need to use sudo because some programs require root permissions

Password protection for you domain using .htaccess

What You Need
You will be executing commands directly on the web server, and the only way to do that is via SSH. SSH is basically a secure form of telnet, and you can use SSH to do anything you might typically do with telnet. So, you must have a SSH client to connect to the web server via SSH.

You will also need a FTP client if you want to create your .htaccess file on your own system, then upload it to the web server.

The only other thing you need is a web hosting account from Anchor. This would simply be your FTP account information that you received when your service started. To connect via SSH you would just use the same hostname, username, and password as your FTP account Continue reading