The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Finding a file in cPanel

Discussion in 'General Discussion' started by Beer HQ, Nov 13, 2012.

  1. Beer HQ

    Beer HQ Registered

    Joined:
    Nov 13, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,
    I am looking to change a link on my website but I don't know what file has the code that I need to change it in, is there any easy way to track down what folder/file the code is in that I need to change? I have tried to view the web source and inspect element on the page itself but it does not have the location, if I knew what file it was in I can change in cPanel no problems, we last web developer has left and there is so many files in there, gonna be a nightmare going through 1 by 1, hope there is a simpler way..

    Thanks in advance :)
     
  2. MilesWeb

    MilesWeb Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2012
    Messages:
    174
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Are you hosted on a shared server ? OR do you own a VPS OR dedicated server ? If you are on a shared server, contact your webhost and ask them to find the file. Via command prompt it is a simple job. If you have your own server, you can use commands like find and grep to locate the file.
     
  3. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    milesgeek gave you good advice. It sounds like you have shared hosting, and your host would be able to help you with this by using shell commands like grep that are not available without shell access.
     
  4. Beer HQ

    Beer HQ Registered

    Joined:
    Nov 13, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Great thanks heaps guys, Glad there is an easy solution. Yes it is a shared server. So do I just send them the script exert that I am looking for?
     
  5. PlotHost

    PlotHost Well-Known Member

    Joined:
    Apr 29, 2011
    Messages:
    253
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Twitter:
    Yes, contact them and let know what are you looking for.

    You can also copy the files on your computer and do a normal search.
     
  6. MilesWeb

    MilesWeb Well-Known Member
    PartnerNOC

    Joined:
    May 23, 2012
    Messages:
    174
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    That's right. Name the file OR the content in it. They will do the search for you :)
     
Loading...

Share This Page