RSS Feed
Knowledgebase : Using Shell (SSH)
Attention developers! We fully support the usage of Git [1] on all Shared, Reseller, VPS, and Dedicated servers. For Shared and Reseller clients (with the exception of resold clients under your Reseller package), you will need to fill out the SSH Access Request [2] form before we can allow Git over SSH (we do not yet support git:// on Shared/Reseller servers). Once you do this, we will reply with the port information for access to SSH, and the Git configuration you'll need to setup a re...
ln (redirecting file access) Type ln -s fred.html index.html to redirect all file accesses from index.html to the file fred.html. passwd (changing your password) Type passwd to change your password. You may also use Brain to change your password. zip/unzip Type zip to zip files and unzip to unzip files. This program is compatible with the zip program for DOS. For example: zip myzip file1 file2 file3 This puts the files file1, file2, and file3 into a new zip archive called myzip.zip. On th...
As root via SSH: rpm -ivh http://nginx.org/packages/centos/5/x86_64/RPMS/nginx-1.2.2-1.el5.ngx.x86_64.rpm cd /etc/nginx/ Configure to your liking in /etc/nginx/nginx.conf Here [1] is a handy guide on how to setup nginx with PHP FPM from scratch. It is generally not recommended to run this on cPanel servers as it will conflict. There are applications that will handle the VirtualHost translations, but we do not support them yet. We have awesome documentation on NGINX, so if you h...
What to do if you come across the Semaphores issues on servers: You can add following lines in "/ETC/SYSCTL.CONF" to get this issue fixed permanently. These values will increase the limits of Semaphores on the Server. kernel.msgmni = 1024 kernel.sem = 250 256000 32 1024 After you save "/ETC/SYSCTL.CONF" run "SYSCTL -P" to reload the sysctl.conf file.
If you have a VPS or Dedicated Server you ALREADY have SSH access and do not need to fill out this form, read your login information email for more details. This is not available on our shared hosting plan due to security concerns.
CREATING THE KEY * create an ssh key in cPanel if you haven't already. * REMEMBER your passphrase * view the private key (you will need to put in the passphrase to do this) * select the entire key. * open a new text file on your desktop, named username.txt * paste the private key in to the text file * change the name of the file to username.ppk CONFIGURING PUTTY * download both putty and psftp here: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html [1] * fi...
For security purposes, we do not enable Telnet at all and we only enable SSH access by request. You must contact our support department or open a support ticket to enable this feature. SSH is a powerful service which allows you to log into the server remotely to perform specific tasks. Common tasks include modifying file permissions, using compression utilities (tar and zip), and using editors (such as pico or vi) to modify files on the server side.
Scp and sftp are both part of OpenSSH, the secure shell server we run. Do note that you cannot use sftp with an FTP only user - despite the name, sftp has fairly little in common with FTP. In other words, you must enable shell access for a user before you can use sftp (or scp) with that account. For some suggestions, check out http://freessh.org/ [1]. Links: ------ [1] http://freessh.org/
mv fred wilma This moves fred to a file named wilma. This is the Unix way of renaming a file. mv fred flintstones/fred This moves fred to a file named fred in the subdirectory flintstones. This example could have been written mv fred flintstones/ as well, and the filename fred would have been retained in the new directory. After executing this command, there will no longer be a fred file in the current directory. cp cp fred wilma This copies fred to a file named wilma. cp fred flintsto...
SSH is secure shell that gives you command prompt access on the linux server. You need an SSH client software on your computer to login to the server. Here is one free client available called Putty: http://www.chiark.greenend.org.uk/~sgtatham/putty/ [1] Here is the direct link to download for Windows PC (95, 98, ME, NT, 2000, XP and Vista): http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe [2] Just download this program and save it anywhere on your computer. Double click on putty.exe...
There are far more commands than these but here are a few to get your started: In order to keep track of the possibly millions of files on-line, Unix systems have a directory tree, which enables meaningful classification of files. For example, the most essential system programs are kept in /bin/, user home directories are all under /home/, and everything having to do with the WWW is under /www/. More specifically, your home directory is /home/you/ and the directory for your WWW files is /home/y...
From the Unix prompt, typing the following: du -s /home/youruser This will give you a report back of the number of kilobytes (k) all files in your www directory add up to. You can also use -h switch like this to see human readable number in size: du -sh /home/youruser If you want to see the size of each folder under the current directory: du -ah --max-depth=1 For example to check the usage of each folder in public_html: cd ~/public_html du -ah --max-depth=1
To backup complete site files, login via ssh. While in you are in main dir type: tar -zcf site_backup.tar.gz public_html This will create a file named site_backup.tar.gz in your main dir. To restore this file as a site type: gunzip site_backup.tar.gz hit enter, then type: tar -xvf site_backup.tar hit enter and your all done. If you need to archive your emails stored in your account, you can do the same with "mail" folder. This does not include MySQL database backup if you use one. Pleas...
The following is a breakdown of the most commonly used commands and the most commonly used arguments for them. PLEASE REMEMBER THAT WE DO NOT SUPPORT LINUX COMMAND LINE VIA PHONE NOR LIVE CHAT. YOU CAN ASK FOR SHELL HELP VIA EMAIL TO SUPPORT@PACIFICHOST.COM OR USE ONE OF THE NUMEROUS WEBSITES WHICH OFFER TO TEACH SHELL. ls : list files/directories in a directory, comparable to dir in windows/dos. ls -al : shows all files (including ones that start with a period), directories, and det...