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.

index.html missing

Discussion in 'General Discussion' started by TonyKa, Feb 22, 2015.

  1. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Hi, everyone

    I'm new here, I have a problem with my index.html four days a go I worked on my site the next day the index.html it was missing I replaced it thinking that I did something wrong the but the next it was missing again so I change the cpanel password and replaced the missing file again next morning the same thing four times now. Do you have any ideas as to what is happening and what to do!!

    Thanks
    Tony
     
  2. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    When you upload index.html, do you see it working. ?
    what file permissions have you given it ?
    I think 644 is the norm.
     
  3. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Yes it is and the permission is set to 444
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you have any cron jobs active on this account that are deleting the file? Do you have root access to this server to review the cPanel access log?

    Thank you.
     
  5. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    No I don't have any cron jobs and Yes I do have root access to cpanel access log
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Try searching for the account username in the cPanel access log (/usr/local/cpanel/logs/access_log) to see if any other IP addresses are accessing cPanel and removing that file. EX:

    Code:
    grep $username /usr/local/cpanel/logs/access_log
    You can also search /var/log/messages for FTP activity.

    Thank you.
     
  7. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Sorry I'm not that good with cpanel I manage to check the FTP logs no activity I checked Raw Access Logs but I can't find any user names there
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You might want to contact your Hosting Provider about this. There's not enough details in your post for anyone to be able to guess what the issue might be.
     
  9. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I know is hard to help me! I just would like to know is there any program or script at cpanel that can remove my index.html every morning I checked all the logs no FTP activate I changed the passwords two times now on WHM and cpanel I disable the FTP so now what to I do!

    Can you at list tell me is there a program or script at cpanel that I miss configure and is deleting my index.html (passwords on WHM & Cpanel are changed two times now, FTP disabled)
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    There is nothing in cPanel that would be removing your index.html and changing your password every morning.
     
  11. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    No not the password just my index.html and this time I had a redirect to a page called home.html and at 10am I checked my site both pages ware missing by the way I change the passwords every day so how do they get in the site???
     
    #11 TonyKa, Mar 3, 2015
    Last edited: Mar 3, 2015
  12. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Why?

    You might want to check your own computer for some sort of issues. As already suggested you should contact your Hosting Provider as well. They have logs you might not be able to access that could be of use.
     
  13. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I'm intrigued if nothing else.
    Does the home.html contain anything naughty?
     
  14. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    This is the best answer I got Thanks!!
     
  15. TonyKa

    TonyKa Member

    Joined:
    Feb 22, 2015
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I did check my computer with two different programs and I did contact my Provider they recommended to update all of my sites scripts to their latest versions as soon as possible can I do this???.
    Can you please tell me the logs they can check for me so I know what to ask for
    Thanks

    Tony
     
  16. keat63

    keat63 Well-Known Member

    Joined:
    Nov 20, 2014
    Messages:
    765
    Likes Received:
    20
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Tony.

    You mention you have WHM, so I assume that you have full access, and it's not just a hosting plan you have ?
    If this is the case, do you have CSF firewall installed.?
    Also do you have anything configured in "Host Access Control"
    I'm still new and learning, but these would be my first plan of attack at keeping the hackers out until you can ascertain how they are getting in.

    With Host Access Control, you can assign IP addresses or a range of Addresses and allocate what they are allowed to do.
    https://documentation.cpanel.net/display/ALD/Host+Access+Control



    If you are using static IP then add: ALL>> YourIP >> Allow
    If using dynamic IP then add: ALL >> xxx.xxx.0.0/255.255.0.0 >> Allow

    And then at the end (always at the end)

    All >> All >> Deny
    This might help keep them out for a while.



    Important Note:
    If your dynamic IP address changes octects frequently, you might want to add multiple entries

    ie:
    192.168.0.0/255.255.0.0
    192.456.0.0/255.255.0.0
    192.666.0.0/255.255.0.0

    or if your'e feeling really brave then

    192.0.0.0/255.0.0.0

    You will need to make sure that you have all bases covered, otherwise you could lock yourself out.
     
    #17 keat63, Mar 4, 2015
    Last edited: Mar 4, 2015
Loading...

Share This Page