Author Archives: admin

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.

Leave a comment

How to Fix One PHP-CGI Running!

The other day I had a problem with one of my newest servers, upon which I had installed new version of Nginx and Spawn-fcgi.

Well, my Nginx kept crashing, actually my PHP-cgi processes started crashing after the server ran for a bit. The weird thing was, the server had no load.

Upon carefully watching my “top” status in linux for awhile, I realized there’s only one PHP-CGI process running, whereas all my other Nginx web servers ran multiple (around 5-6 at any given time).

I compared out the versions of the Spawn-cgi and realized the new Spawn-cgi I ha

Click Here to Read Full Article

69 Comments

How to Reset WordPress Password via MySQL Command Line!

For those of you wondering how to reset your WordPress admin password via MySQL command line, here’s how to do it:

Enter your MySQL command line with something like:

mysql -uroot -p

Then enter your password.

Once inside the MySQL command line do:

show databases;

and then find your database for the WordPress blog that you want to change password.

use mydatabase;

where mydatabase should be “your” database.

Then do:

update wp_users set user_pass =MD5(’typenewpasswordhere’) where id=1;

Click Here to Read Full Article

Leave a comment

How to Run as Root on Ubuntu/Debian – Avoid Annoying SUDO!

If you are installing many programs using apt-get command in Ubuntu/Debian, you will want to avoid using sudo in front of every command.

To do that it’s rather simple, just type:

sudo /bin/bash

to enter root for good and you won’t have to type sudo in front of every command.

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

Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!

For those of you having trouble starting your MySQL server, try this to log your errors:

mysqld_safe --log-error=/var/log/mysql.err

Then do:

cat /var/log/mysql.err

to read what went wrong.

Click Here to Read Full Article

Leave a comment

List Users in Linux!

You can use the command:

cat /etc/passwd

to list all the users in your linux system.

Click Here to Read Full Article

Leave a comment

How to Add DNS Caching to Your Web Server!

If you have a website that uses a lot of API requests (such as dealing with Twitter), you can save a lot of server load/costs simply by installing DNS caching to your web server.

Each DNS request (every time you request from any domain name using an API) takes anywhere between 0 to 500 miliseconds. Sometimes, adding DNS caching to your web server can make your website load in 1 second versus 10 seconds.

Anyways, it’s easy to do and here’s how to do it on CentOS/Fedora linux servers: (Ubuntu should be similar, just use apt-get install of yum)

First install

Click Here to Read Full Article

Leave a comment

How to Ping Your Website Worldwide!

Just Ping is a service that will ping your website from various different locations in the world. If you want to optimize your site and also wonder how fast it would load in other parts of the world, you can use Just Ping to do just that.

Another great feature is that you can also check the IP address being reported by various different points in the world. What this does is helps you check DNS delegation status of your website during a DNS move.

Click Here to Read Full Article

1 Comment

How to Check Your Website During DNS Delegation!

When you change your DNS records, your DNS delegation will usually take more than 12-24 hours on average. This means that during that time, it might be impossible to check your website.

This can be a big problem if you are moving a website to a new server and you can’t check if you’ve moved everything right.

So, how do you check your website on the new server during DNS delegation?

You can easily do this by changing the DNS servers on your computer.

For Windows, you can go into your network adaptor settings, then right-click on your adaptor, then sel

Click Here to Read Full Article

Leave a comment