Block FTP access using the IPtables(Default system firewall) 1) If you want to completely disable the FTP access on the server then run the command : root@server[#] iptables -A INPUT -p tcp –dport 21 -j DROP 2) If you want to block FTP access for a Specific IP then run the below command : root@server[#] […]
See MoreTag: command
Restart Ruby and Rails application
How to Restart Ruby and Rails application by using ssh ? Ans : You can restart your ruby and rails application by using following command. Syntax : /usr/bin/ruby -I /home/USERNAME/ruby /usr/bin/mongrel_rails start -p PORT -d -e ENVIRONMENT -P log/mongrel.pid This should be executed in the root directory of the Rails app you wish to run on Mongrel. […]
See MoreDelete php.ini file from all directories
Command for to Delete php.ini file from all directories find -name php.ini -exec rm -f {} \;
See More