PhpMyadmin is a fantastic tool that gives you an easy to use web interface that lets you manage a MySQL database. You can install PhpMyAdmin by downloading the source files from the official website and placing them onto your web server following the config. Better news is that there is actually a package on Centos…
When running a web server it’s vital that you have you important that you have applications like apache and mysql start when the system does. Who knows what might trigger a reboot and even more, you don’t want to perform a quick restart and have the entire server crumble. Well fear not, it is very…
Installing LAMP is very simple. If you are using putty to SSH into a server or VPS you can copy and paste the commands then right click in putty and the command will be put into terminal. The following code was used to install LAMP on CentOS but the commands should be the same for…
The grep command can be used to display the contents of a file and ignore the lines that are commented. This can be useful when quickly checking what options are enabled for certain applications without having to look through large amounts of commented text. For this example we will use grep to ignore all lines…
First you will need to install cron on the system. Type the following to install cron in CentOS 6. [crayon-5d2cefa96054a842893401/] Set cron to start when the system starts by executing chkconfig. [crayon-5d2cefa960555144425583/] Now that cron has been installed on the system you can add tasks to your cron tab. The crontab file is located in…
This tutorial will show you how to zip up a folder as a tar.gz then extract the contents of a tar.gz. First start by going to the directory that contains the file that you want to compress. For demonstration purposes I will create a new folder and zip it up. Then delete the folder and…
The "find" command can be used to locate files and folders that are stored on your file system. You do not need to be in a sub directory to locate the file. e.g. You can be in /var and the find command will be able to locate a file that is in /etc. For this…
There are several ways to protect a directory from URL access but most of these will also block your website from being able to access them. Heres what you do to protect a directory from being accessed by a URL but still let your website access the contents of the directory. Open the directory you…
When using SVN via command line you can view the details of previous revisions by viewing the SVN log. Call the log along with the number of revisions you want to have returned to you will display the message left when the file was committed, number of lines changed, user, date and a few other details. Ideally you…
By default a new user will have a directory created in the "/home" folder. This is the default home directory. Changing this is very simple. If you create a new user called "test" there will be a directory created as the default home folder. e.g. "/home/test". To change this to a different directory you will…