Tag Archives: linux

Recommended Linux

How to Restart Networking on Linux!

Here’s how to restart networking services on your linux webserver.  I find that especially with VPS web servers, there are times where your network gets blocked completely.

To reset, get into SSH via console on your VPS web server company’s control panel.

Type:

service network stop

then

service network start

For some web servers, you might have to use:

/sbin/service network stop

and

/sbin/service network start

Wait like 5 seconds and see if you can ping the outside world:

ping google.com

If you

Click Here to Read Full Article

Leave a comment

Simple Firewall for CentOS Linux!

For those of you who are getting DoS attacks and whatnot on your CentOS server, you might want to first make sure you have only WWW (port 80) and SSH (port 22) open.

You can do this with iptables (which is pain is the a**) or just use this: yum install system-config-securitylevel Then do: /usr/bin/system-config-securitylevel-tui

And there’s a “Customize” menu where you can set WWW and SSH open.

Click Here to Read Full Article

Leave a comment

[apt-get] How to See all Installed Packages!

To see all the installed packaged on your linux servers, you can do:

dpkg -l

which will list all installed packages on your web server.

Click Here to Read Full Article

Leave a comment

How to Install DNS Cache on Your Linux Web Server!

If your website does a lot of queries via domain names such as aggregating RSS feeds or even a Twitter app site that accesses Twitter API, you might benefit from installing DNS cache on your linux web server.

For most, you would benefit from installing DNS cache because it will save you a ton of time for your server to fetch IP addreses. (could be anywhere between 5 to 500ms).

I’ve actually found a great article showing you how to do this on a Linux desktop computer. It actually works fine on web servers too.

Click Here to Read Full Article

Leave a comment