Problem locating php file on account

dxvvid

Registered
Feb 15, 2018
1
0
1
Australia
cPanel Access Level
Website Owner
Hi, I had a .php file that is used for my Contact page for my website. I'm trying to edit the text however I cannot find the .php file anywhere in File Manager to edit it. I tried using greg but it doesn't show the Contact script. Is there another way to locate the .php file thanks!

My greg php:
Code:
<?php
$command = "grep -ri 'code' ./*";
$output = shell_exec($command);
echo "$output";
echo "Complete.";
?>
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
Hello,

The default document root for the primary domain name on the cPanel account is:

/home/username/public_html/

Thus, if the PHP script you are using is accessed at domain.tld/contact.php, you should find it at /home/username/public_html/contact.php. Note that "username" represents the cPanel username.

Thank you.