How to find a line of code
I had written a line of code in a file redirecting my blog to my website and I can't find it, I have looked in all the htaccess files and there are no rewrites or redirects in them, is there a way to search the whole cpanel site for this, as I seem to recall I made some changes to a php file
-
Hello :) Do you have SSH access to the account? If so, you could use the "grep" command. EX: grep $search-term /home/$username/public_html/file.php
Thank you.0 -
]Hello :) Do you have SSH access to the account? If so, you could use the "grep" command. EX:
grep $search-term /home/$username/public_html/file.php
Thank you.
I have SSH/Shell Access. It shows me "Manage SSH keys Can you tell me how I use the code you gave me? Do I create a new key, in the "Generate a new key" field? Many Thanks Peter0 -
Are you sure a key is required? Simply enter your account username/password via a SSH client (e.g. Putty) and use the referenced command. Note that if you have no experience with SSH then it might be a better idea to consult with a system administrator or your hosting provider for assistance. This document should help you get connected: Accessing your server via SSH Thank you. 0
Please sign in to leave a comment.
Comments
3 comments