Where to use command line in shared webhosting with cpanel 10?

Posted on 2009-12-25
Last Modified: 2013-11-08
anyone here could tell me where to use this kind of command on a normal shared webhosting account with Cpanel 10?

Demo of Cpanel 10 -

where would i input the following codes?

If i can't do this in a shared webhost account, what do I need?

sample codes that i need to use:
cd /usr/local/src/subversion


tar -xvjf subversion-deps-1.5.0.tar.bz2

cd subversion-1.5.0



make clean

Open in new window

Question by:Bandai2
    LVL 35

    Expert Comment

    This is not for shared webhosting. You need full root access to a remote server in order to install packages like that.

    I cannot quite say from the demo whether or not you have this kind of access, but I think you don't.

    In order to open a command terminal on your server, you would connect to it (see 'Dedicated IP address' in your hosting panel) via a SSH client; in Windows, the best SSH client is PuttY ( You would then login as the root user with the root user password, and end up on a text shell where you can input those commands.

    Please give me a link to your hoster and name the hosting product. In case of doubt, I shall be able to tell you whether or not you have the required kind of access and permissions, and if not, what product you'd need to upgrade to.


    Author Comment

    Actually the server where the cpanel account that I was given is from

    I'm not the owner of that server and was only given a cpanel account which I believe is one of the shared hosting account created by the owner. The owner is asking me to create a repository and accounts to access the repository.

    The owner told me that he already asked to install subversion into the dedicated server that he is renting. And now that it is installed, he gave me a username and password to access one of the cpanel account in the server and told me to create a repository and the accounts needed to access the repository.

    This is the first time i'll be doing this, and I want to learn how to do this. What do I need to get from the owner so that I could accomplish the task given which is create a repository in one of the shared accounts then the users to access it?
    LVL 35

    Expert Comment

    If the owner of this server knows what he is doing, then he will have given you an account that has sufficient permissions to do what he asked you to do.

    However, the one link/icon out of all that will take you to a terminal prompt is missing in the demo you posted.
    I went to the CPanel site and looked through the demos myself: they all have that link/icon. Don't know why your demo doesn't.
    Check out this page:

    The link you need to follow is called "SSH/Shell access"; you find it in the third row, between "MYSQL Databases" and "Redirects". Search for that link in your Panel, click it, then follow the link "Connect using SSH Term".
    Note: This shortcut will only work if you have Java installed and enabled in your browser. If it won't work, just install PuTTY (I posted a link above), enter the server IP, select SSH, and connect. Then login with your username and pass.

    Via both methods you will end up on a text screen prompt where you are able to perform the commands you posted.

    (But mind you: this is Linux administration; if you do not know anything about Linux, you may soon go lost.)
    LVL 35

    Expert Comment

    Just an idea:
    The fact that you do not have the "Shell access" icon in your panel may mean that the owner has configured the server in a way to deny shell access to users. In this case you need to tell him that it isn't possible for you to perform shell commands without having shell access.

    Author Comment

    You're been very helpful torimar!

    I've found the button/link to "SSH/Shell Access" and accessed the link to "Connect using SSH Term" and it gave me this message:
    SSH/Shell AccessShell LoginFor security reasons, shell access is not enabled by default. In order to activate shell access on your account, you will need to fax or mail a copy of your driver's license, passport or other photo id to customer service.Your session wll be logged. Any attempt to copy/delete/view files not belonging to you, will result to your hosting account being terminated!

    I've tried connecting to the server using Putty as well and it's just timing out.

    What do I say to the owner? I can't do it because the account he gave me has no access to SSH?

    Here's the account btw just remove the space ( color cd . com ) maybe you could try to connect and see if it ask for a password, cause I can't even get to that stage.

    LVL 35

    Expert Comment

    Connection times out for me as well, no matter if I use the domain name or the IP address (found via
    Yes, you will have to tell them that you need shell access in order to do what you are asked to do.
    Unless there is a misunderstanding: Didn't you say that the hosting company already installed SVN? So you don't have to reinstall it, or do you? Maybe just configure? Last but not least: Are you sure there isn't a "Subversion" or "SVN" link on your type of panel? In which case you wopuld be able to configure it via the Panel without needing SSH access.

    But there are still a lot of things I don't understand about this project:

    1. "XYZ" and "XYZ1" are two domains hosted on two very different servers that have nothing much in common

    2. "XYZ1" is hosted on one server together with ~60 other domains. Who is the "owner" you are talking about? The one who owns XYZ1, or the one who owns the server that hosts XYZ1 among other domains? If the one who gave you the task isn't the one who has complete control over the server, then you will not get anywhere.

    3. Even if you got shell access to that server, please read the warning again: "Any attempt to copy/delete/view files not belonging to you, will result to your hosting account being terminated!" -- Whoever gets root access to that server will be in the position to completely ruin everything for the server owner, and for 60 fellow customers, just by messing up what he is doing. Considering the fact that you aren't very experienced in Linux administration, do you even want to run this risk? I wouldn't if I were you.

    4. In addition to the point above: If the owner of the server takes good care of his own business, I think your chances of getting root SSH access to this server will be very minimal. You may get restricted access, but that will let you run into permission issues almost every time you execute a command.

    5. Why do you or your client even need Subversion running on this server? Is it just for the sake of trying it out? Then maybe a free subversion hoster (check Google here, or Sourceforge, if your project is OpenSource) may be all you need. It would save you really a lot of hassle. Getting Subversion to work well is not an easy task.

    6. If you really need your own server running Subversion, consider suggesting to your client to rent one; I still think that neither you nor your client have sufficient permissions on the present hosting solution. Virtual Private Servers are very low in cost these days (starting at ~13 Euro/19 $ p. month). There you may experiment until you get it working, and if you mess up, nobody else is damaged, and the OS is reinstalled by simply pressing a button, so you could restart over from scratch.

    Author Comment

    There is no subversion / svn link in the cpanel. But subversion is already installed as I was able to verify using SSH and typing the ff command: 'svn help' and it returned the list of commands available for svn.

    1. XYZ is the service provider like (host gator, 1 and 1, etc.) while XYZ1 is one of the shared account hosted in one of the dedicated server of Layeredtech.

    2. The owner that i'm talking about is the one who rented the dedicated server from XYZ.

    3. As for the rest of the questions, the port to connect to c0l0r cd via ssh was wrong that's why we are timing out. I got the correct port now and was able to connect to the server via ssh. Since this is a dedicated server the owner wants to host the subversion repository here as well.

    Now that I was able to verify that I have access to SSH and subversion is already installed, I want to create a repository that is accessible via browser as well. How do I check if trac is installed btw? And how can I connect trac to the repository that I will create?
    LVL 35

    Expert Comment

    Good job.

    So now we know
    a) it's Red Hat
    b) you have SSH access, but no root permissions

    Point #b will seriously limit down the range of options you have. Linux is a server OS through and through; it tries very hard to not give out any system information that might be exploited by malicious users. You most likely will neither be able to install programmes on the system nor start system services, you also may not be able to request information on installed packages.

    Try this:
    yum list installed | grep trac

    ps ax | grep tracd

    This will show you whether trac is installed and/or whether the trac daemon is running (which means that it will be installed). Both commands should be executable without elevated permissions, if you run into permission issues here already that would be a bad sign.
    If you find it isn't installed, you will most likely not be able to do so.
    In principle, it's an easy:
    # yum install trac

    but 'yum' requires root privileges.
    So in that case I'd check if there is any way you could configure SVN with the means at your disposition, i.e. via a web-application runninng in your public_html using PHP, html, mysql etc. and possibly SSH. Because that's what you can ues, whereas tools that rewuire installation on the service (and outside your client context) will not be feasible.
    Check out this guide which talks about several ways to create SVN repositories and access them; it also talks about Trac:

    Author Comment

    i tried yum list installed | grep trac and output is this:

    Repository update is listed more than once in the configuration
    Repository base is listed more than once in the configuration
    Repository addons is listed more than once in the configuration
    Repository extras is listed more than once in the configuration
    strace.i386                              4.5.16-1.el4_8.6       installed
    traceroute.i386                          1.4a12-27.EL4.1        installed

    and ps ax | grep tracd:

    19834 pts/1    S+     0:00 grep tracd

    that means trac is installed right?

    before we go into trac i would like to finish creating the repository and the users to access it.

    I got this command from another website:

    Create the repository

    mkdir /home/XYZ1/public_html/svn
    chown -R apache.apache /home/XYZ1/public_html/svn
    cd /home/XYZ1/public_html/svn
    svnadmin create SVN-REPO

    I have a question regarding this commands:

    * what does this line do? chown -R apache.apache /home/XYZ1/public_html/svn
    * is it okay to create the repository inside 'public_html'? is it a security risk?
    * after that SVN-REPO is craeted and that's the repository?

    Author Comment

    I want to add that I was able to create a repository and assign users that can access the repository using svnserve.

    But my problem now is that I can't get my local computer to checkout the repository using tortoisesvn, I always get this message:

    Checkout from svn://, revision HEAD, Fully recursive, Externals included
    Can't connect to host '': A connection attempt failed because the
    connected party did not properly respond after a period of time, or established
    connection failed because connected host has failed to respond.

    steps that I do to arrive to this:

    * mkdir svn/repo

    * cd svn/repo

    * svnadmin create sssssss

    * chmod -R 777 svn/repo/sssssss

    * svnserve -d --listen-host -r svn/repo

    * edited conf/svnserve.conf file to deny access to anonymous users and to allow read / write for authorized users, then setup the username and password.

    * return back to home directory and mkdir proj to try a checkout of the newly created repository, then cd proj

    * svn co svn:// --username my_user_name_here

    * then it prompts for a password and I entered it then it gave me this message: Checked out revision 0.

    * i tried committing a newly created file to the repository and it work without any problem.

    Now when I tried checkout using tortoisesvn using my local machine, it won't connect to the server. here are the address i tried to checkout:


    It just gave me the same error message above. disabled firewall, portforward the port 3690 in my router and modem and still the same. What am I doing wrong here? Am i giving the wrong address to the local client?
    LVL 35

    Accepted Solution

    @ your first post:

    - Yes, that means 'trac' is installed, which is good news.
    - The "chown" command makes the Apache webserver the owner of your 'svn' repo and of everything inside. This is necessary for security reasons: the owner of a file can have permissions on it differing from those that the rest of the world has, and the owner is able to set those permissions.
    - If you plan to access your repos via web protocols, they have to be created inside the public-html; Linux file and folder permission are still able to prevent a security risk.

    As to the rest of your questions:
    I'm sorry, but I am no subversion expert and I should leave those to be answered by the colleagues who are. Please scroll up to the first post; this was the question asked: "anyone here could tell me where to use this kind of command on a normal shared webhosting account with Cpanel 10?" And that is what I responded to.

    I checked your new question, but did not answer to it. It's in the Subversion zone, thus should attract attention by specialists. Should you not receive any answers at all within 24 hours, feel free to click the "Request attention" link and ask moderators to send out an expert alert. If that does not help you can also ask the moderators to add your question to several additional zones (up to 5 are possible).

    Good luck.

    I suggest you repost your last comment in the new question.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    The viewer will learn how to dynamically set the form action using jQuery.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now