Beer HQ

Registered
Nov 13, 2012
2
0
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 :)
 

MilesWeb

Well-Known Member
PartnerNOC
May 23, 2012
173
2
68
India
cPanel Access Level
Root Administrator
Twitter
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.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
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.
 

Beer HQ

Registered
Nov 13, 2012
2
0
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?
 

PlotHost

Well-Known Member
Apr 29, 2011
292
15
68
US
cPanel Access Level
Root Administrator
Twitter
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?
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.
 

MilesWeb

Well-Known Member
PartnerNOC
May 23, 2012
173
2
68
India
cPanel Access Level
Root Administrator
Twitter
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?
That's right. Name the file OR the content in it. They will do the search for you :)