Website security: Basic steps needed for cPanel, WordPress, MySQL etc. What is important??

14 replies
Hi

I registered my domain and I changed to my hosts nameserver, very basic steps I know, but it is all new to me. Now I worry about security - how do I know that my site is secure and stays secure? Right now I see the HostGator default site if I google my domain name, but is that default site secure enough until I have my own website designed? (I will use WordPress).

cPanel/Statistics shows that my site have had a couple of visitors already from US and China - WhoIs is not much of a help for identifying the IP's. One of the IP's apparently belongs to Amazon. 2 others are robots/spiders, but what about the rest? Is it normal that visitors who just visit my site shortly (right now it is only one page and nothing to be downloaded) use bandwidth? Total is 12 kb - sounds like nothing, but I really don't have a clue. People could remove, add and change files in my public_html and www folders and I wouldn't notice anything... that worries me.

I know my questions are stupid and very basic to most of you - I have spend time searching, but I need someone who knows all this stuff to tell me what is important and what I should do to keep my website secure. THE MOST BASIC BUT IMPORTANT STEPS (I know it is a big subject). What I should pay attention to and perhaps change (in cPanel, WordPress, MySQL etc.) and what I shouldn't worry about. What do you guys do? How do you know if your site is secure and what tools do you use? :confused:

Hope someone can help me! Thanks
#basic #cpanel #important #mysql #needed #security #steps #website #wordpress
  • if you are worried about security and don't know about security stay far away from wordpress

    it's opensource, everyone can see the code, it has security updates all the time, and tons of hacks happen.

    your best bet is to go with something hosted like wordpress.com or typepad or something.

    even the best get hacked sometimes, backup often
    Signature


    {{ DiscussionBoard.errors[3163803].message }}
  • Profile picture of the author ntemple
    First, don't let open source scare you off. When everyone can read the code, it also means that 10's of thousands of people smarter than you or I are looking for - and patching - security holes.

    That said, some basic things you can do:
    - #1: use strong passwords. Google "GRC Ultra High Security Password" for a some ideas. Don't give out your passwords to untrusted ppl, and don't send them in email or insecure documents.

    - #2: Change the defaults. WordPress security is through obscurity. Don't use the default usernames, change the "prefix" from wp_etc. Many large-scale hacks depend on your site having been setup the standard way. Changing these defaults can help.

    - #3: Use as few "plugins" as you can get away with, and only from trusted sources. Many hacks come from plugins that aren't as secure as they could be. That said, plugins are valuable - I run 40+ on one site. Just pay attention to the source, uninstall (and delete) the ones you don't use, and keep them updated.

    - #4: KEEP UPDATED!!! WordPress has a very easy auto-update feature for both the core and plugins, and keeping patched (updated) is trivial. Do it. Daily.

    - #5: Keep local backups. Hostgator does a dismal job of keeping backups, so don't trust them there. There are some great WordPress plugins for this, find one, configure it and test it.

    - #6: If your host has it (hostgator does not, host9 does), use apache "mod_security". This looks for potential "bad" requests, then blocks them. It usually needs to be tweaked for each site, because it can also break "legitimate" requests, like updating your blog. Tweaking required, but it's a great tool if you can set it up.

    Finally, do not be overly concerned unless you have mission critical data - in which case, you should be on your own dedicated server.

    If you do everything above, and still get hacked, you can easily restore from a backup. BUT, if you do everything above, you should be relatively secure - or at least as secure as you can get while sharing your server space with a gadzillion other people.
    {{ DiscussionBoard.errors[3163880].message }}
  • Profile picture of the author Istvan Horvath
    I wouldn't worry about any of those visitors. Especially with an "empty" site - there is nothing they can do: unless they know your cPanel login info they are not able to put anything in your public_html.

    Spend your time with more useful stuff: learning how to set up your first website

    As for WP being unsecure in general (response to digitalproductreporter) - I don't think that is more unsecure than other OpenSource PHP+MySQL driven scripts.

    Why would you sell a WP related product if it is THAT bad...?

    I am not saying there haven't been major security leaks in earlier WP versions, making it vulnerable to MySQL injection and similar threats. However, in my almost seven years of experience with WP most sites were hacked because of week passwords, keylogger malware on the user's computer, files left wide open writable (aka chmod 666) to be able to use the idiotic online theme editor and things like that.
    Signature

    {{ DiscussionBoard.errors[3163906].message }}
    • Profile picture of the author WGarden
      Wow, that was fast - thanks guys! I really appreciate your help.

      I do need all the help I can get because right now my head is spinning from all the information I already read, and from all the things I still need to know.

      So the standard configuration in cPanel, WordPress (when updated), mySQL (chmod) - and all the other things that is including from HostGator - are they secure enough or do I need to change anything?

      I have already changed the password for cPanel. What about .htaccess? I think I read somewhere that it contains my password for WordPress so it must be important that no one can view or change that file. I am just not sure how to check if it secured.... just one of many questions and what about all the stuff I don't know anything about?

      ntemple and Istvan Horvath, your specific advices are just the kind I need, please post again if you find other issues that needs attention - I am so afraid that I am going to do something wrong or forget something. Thank you once again! (I will thank you once I get that option - not sure when that happens...?)
      {{ DiscussionBoard.errors[3164144].message }}
  • Profile picture of the author Istvan Horvath
    1. Stop reading all the BS from the net. You don't need it now. And you just get more and more confused + mixing things that you don't understand. Like that idiotic statement you allegedly read somewhere that your WP password is in the .htaccess file. That's a lie, even if you saw it on the web. Which I doubt...

    2. If you don't make stupid things... chances are you are safe. So, at this stage you don't need to do anything. Period. Stop worrying.
    (And if you are on the paranoid side a bit - see a shrink. Seriously, this is not a joke: I live with a shrink, so I know all that stuff, LOL)
    Signature

    {{ DiscussionBoard.errors[3164527].message }}
  • @Istvan Horvath i sell wp plugins because that's what customers want and ask for, when I did standalone versions they would ask for a wordpress version

    i like wordpress, and I use wordpress sometimes, however my recommendation is for someone new, a non programmer, and worried about security, to go with a hosted version of typepad, wordpress, or some other. hosted solutions are hacked about 1/1000000 of the time open source and self hosted versions are.

    if you are hellbent on using wordpress, reread @ntemple post above has some good steps
    Signature


    {{ DiscussionBoard.errors[3164801].message }}
    • Profile picture of the author ntemple
      .htaccess doesn't contain secure information, and can't normally be read (apache disallows access to that file).

      There is very little you can actually do from a security standpoint on a shared server, and what can be done, Hostgator has already done.

      Just keep your software updated, use secure passwords, and keep backups - you should be fine.

      Nick
      {{ DiscussionBoard.errors[3169962].message }}
    • Profile picture of the author Istvan Horvath
      Originally Posted by digitalproductreporter View Post

      if you are hellbent on using wordpress, reread @ntemple post above has some good steps
      1. Not really hellbent... see this post
      2. I agreed with everything what ntemple wrote!
      3. I didn't agree with what you said
      Signature

      {{ DiscussionBoard.errors[3170023].message }}
  • Profile picture of the author WGarden
    Thanks everyone once again and I am very sorry about my late reply!
    Istvan Horvath; guess I am paranoid - must be fun to live together with a shrink

    So chmod is set at a secure level in mysql and doesn't need to be changed before my site goes online? Is that correct?

    Another last question this time - can people somehow see my WordPress username and would it be a good idea to make that one just as long and cryptic as my password? (instead of "admin". Of course I won't use the same phrase for username/password). It wouldn't bother me because I use a password manager, but I don't want to use a long, cryptic username if it can be found/read somehow.

    Thanks and have a great day!
    {{ DiscussionBoard.errors[3203584].message }}
  • Profile picture of the author iwantmore
    this "security issues" is a recuring theme with non-wordpress users.

    the fact is given enough time and pacience a hacker can get into anything, no matter what security is in place.

    yes there have been, and will always be security issues with anything on the web including wordpress.

    but there are steps you take to reduce this to a bear minimum.

    for starters you should have a very secure htaccess file that explicitly sets rules for vunerable files. (for wordpress there are a few files that need protecting)

    then you should have functions in place that block malicious urls

    all your folder permissions should be set accordingly (never chmod 777!)

    you should also consider removing login errors from your database.

    plus a million other things can be done to protect your site and hosting.

    all of these and more can be found just by using google and searching for "wordpress protection"

    or...... (and here comes the shamefull plug.)

    you could consider purchasing my plugin which is designed to these tasks and many more without you needing to know anything about code or protection.

    check it out here

    http://www.warriorforum.com/warrior-...tsourcing.html


    like i said above all of this can be done with a little research and some time.

    and if you are not in the market for purchashing plugins there are plugins in the wordpress.org directory, that if you conbine enough of them can do some of the security tweaks mentioned.

    hope this helps you out a bit
    Signature
    No Half Pixels
    Creative Web Development and Design, NOT A FIXED PRICE SERVICE, if you want the best don't settle for an off the shelf solution.

    We provide cutting edge design, web development with WordPress, WHMCS, PHP, HTML, CSS, jQuery, and personalised hosting solutions to suit any needs.
    {{ DiscussionBoard.errors[3271936].message }}
  • Profile picture of the author iwantmore
    sorry forgot to mention in the last post about this.

    if you installed wordpress with the name "admin" you will have to manually access mysql to change the user name.

    (or use my plugin mentioned above that has an option to change it for you.)
    Signature
    No Half Pixels
    Creative Web Development and Design, NOT A FIXED PRICE SERVICE, if you want the best don't settle for an off the shelf solution.

    We provide cutting edge design, web development with WordPress, WHMCS, PHP, HTML, CSS, jQuery, and personalised hosting solutions to suit any needs.
    {{ DiscussionBoard.errors[3271943].message }}
  • Profile picture of the author WGarden
    @iwantmore - Thanks for your help, I will take a closer look at your plugin - it looks interesting.
    {{ DiscussionBoard.errors[3272289].message }}
  • Profile picture of the author WGarden
    Hmmm.... Not to sure I don't need to worry about security after all. :rolleyes: I have only had my website for one day and it has already been hacked or something - I think it is called iframe injection... see my other thread if you are interested [thread]warriorforum.com/main-internet-marketing-discussion-forum/323686-does-mean-my-site-has-been-hacked.html[/thread] (can't link properly because of too few posts)

    What kind of lowlife makes such malicious crap? They could use a big hug... from a grizzly bear.
    {{ DiscussionBoard.errors[3277692].message }}
    • Profile picture of the author deedonkee
      i've had my site hacked a good few times and while its very frustrating i found it to be an opertunity to learn.

      what i tend to do is keep a copy of the theme i use on my computer.That way if any of my theme files get changed i just upload a replacement.

      also in cPanel i've made sure Anonymous FTP is set to not allow access.

      also Andrew! recomended a good wp security plug in to me(Thanks andrew!)

      I hope i`ve helped

      All the best.
      {{ DiscussionBoard.errors[4232474].message }}

Trending Topics