.htaccess
http://www.webweaver.nu/html-tips/web-redirection.shtml
http://www.htaccesstools.com/
http://www.webweaver.nu/html-tips/web-redirection.shtml
http://www.htaccesstools.com/
Warning the following guide will teach you how to completely delete files from your server. This needs to be run as root so be EXTRA careful before running any command and double check the files that you delete, these will be non-recoverable. If you are working on a small VPS it is not uncommon to…
http://www.wikihow.com/Find-a-File-in-Linux find / -type f -iname “libphp5.so” find / -type d -iname “ibdata1” find / -type f -iname “*arcconf” grep -R ‘AllowNoPassword’ / egrep ‘User’ /etc/apache2/apache2.conf grep DocumentRoot /etc/apache2/apache2.conf To find files larger than 100MB, use this command: find / -type f -size +100000k -exec du -h {} \; Search within files for specific text:…
FirstĀ access the server command line. I used SSH over Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/) But you can use the terminal/console if supported by your host, ftp or winSCP (https://winscp.net/eng/docs/guide_install) which may be easier. then access the file /etc/ips.remotedns For SSH I used the command: nano /etc/ips.remotedns you will need to know the nameservers for your domain I…
############ Creating Users ############ useradd————— create a user with default home directory useradd -m <username> Create a user with different home directory useradd -m -d <directoy> <username> Create A User With An Expiry Date useradd -e 2016-02-05 <username> ###note The date must be specified in the format YYYY-MM-DD How To Create A User And Assign…
The output of the ‘df’ command will show you overall disk usage. To find out how much space a give directory is used us the ‘du -s ‘ command. Once you are connected to the server via SSH, run the following command: # df -h This will output the usage of each partition in the…
You can set your SSH port through the command line by editing the ssh configuration file ( /etc/ssh/sshd_config ) with this command. Note: if you are runnning a firewall on the server you will want to open the desired port before proceeding. nano /etc/ssh/sshd_config You can now edit the configuration file. It will start something…