Post by admin

7 Tasks You Shouldn’t Use a GUI For

Sometimes the GUI is just too slow. Learn how to resize images, add drop shadows, splice mp3s, clone hard drives and more with the command line. Here are a few tasks that you might want to consider using the command line for. 1. Resizing images Unless you are doing some sort of cropping there is [...]

When To Use Indexes In MySQL

This comes up in discussions almost every new project I work on, because it’s a very important thing to consider when designing a database. When deciding when and how to create an index in your MySQL database, it’s important to consider how the data is being used. Let’s say you have a database of employees. [...]

Transfer backup files from server to server in command line!

i have been struggling to find some way or another to transfer my file from one linux server to another using commandline. Before this i was just using cpanel to do backups. Here is an easy way to accomplish transferring backup files from one server to another in linux. Just simple command using SCP (secure [...]

Corrupted or Missing \WINDOWS\SYSTEM32\CONFIG

If you get the error: Windows could not start because the following files is missing or corrupt \WINDOWS\SYSTEM32\CONFIG\SYSTEM or \WINDOWS\SYSTEM32\CONFIG\SOFTWARE Insert and boot from your WindowsXP CD. At the first R=Repair option, press the R key Press the number that corresponds to the correct location for the installation of Windows you want to repair. Typically [...]

How to find out what ports are listening on your server

There are several ways to do this and the best way is to install a utility called “lsof” which you can find in /usr/ports/sysutils/lsof. Once you install this you will type: # lsof -i This will list out all the ports / ips / hostnames that are listening on your server. Another way would be [...]

How to Enable IP Routing in Windows

Routing between subnets is disabled by default for the TCP/IP protocol in Windows NT. To enable routing, following these steps: WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can [...]

Reinstall the Boot Loader on Redhat

In many cases, the GRUB boot loader can mistakenly be deleted, corrupted, or replaced by other operating systems. The following steps detail the process on how GRUB is reinstalled on the master boot record: Boot the system from an installation boot medium. Type linux rescue at the installation boot prompt to enter the rescue environment. Type chroot [...]

version.c:30:16: error: db.h: No such file or directory

version.c:30:16: error: db.h: No such file or directory make: *** [version.o] Error 1 If you receive the db.h error message while installaing a package, you are surely missing db and db-devel packages. You need to install the db and db-devel packages using yum. First search the package using yum. yum search db It will list [...]

How to secure the SSHD service?

SSH service can be secured in various ways like changing the SSH port, changing the ssh protocol,  ssh ListenAddress, disable root login with the PermitRootLogin parameter, allowing ssh access to specific users, restricting SSH access to specific IPs etc. These steps will make sure SSH service on your server is secure. Edit the SSHD configuration [...]

Cannot start Web server from Plesk panel, No such file ‘/usr/local/etc/rc.d/apache2.sh’ error appears

Attempts to start or stop apache web service on Server > Services page fail with error ERROR: PleskFatalException Unable to make action: Unable to manage service by websrvmng: websrvmng: No such file ‘/usr/local/etc/rc.d/apache2.sh’: No such file or directory System error 2: No such file or directory   Apache startup script name is specified with the [...]