+ Reply to Thread
Results 1 to 5 of 5
Like Tree2Likes
  • 1 Post By high6
  • 1 Post By sezertrk76

Thread: Secure a vps?

  1. #1
    high6 is offline x10Hosting Member high6 is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    11

    Secure a vps?

    Just wondering what needs to be done to secure a vps. I know that for example even if someone has shell access they can't do much because of file permissions. But my major concern is that some php scripts require you to edit in mysql details into it. The permissions are 755, so can't any user account read that file and then have the mysql info?

    Using centos btw.
    karimirt47 likes this.

  2. #2
    masshuu's Avatar
    masshuu is offline Head of the Geese masshuu has a spectacular aura about
    Join Date
    Oct 2007
    Location
    Las Colinas, Tx
    Posts
    2,262

    Re: Secure a vps?

    If you use Suexec, you could change the permissions to 700, so only the user owning that site can read the files.
    Also using stuff like jailshell, you should have the ability to lock a user out of other directories(though i have never tested this)
    For the most part, a stock server without much running on it is secure. The only thing i can say is keep it updated, check for updates once a week or something like that.
    You can change default ports, like for ssh, to prevent automated attacks, but as long as you use and enforce secure passwords, you should't worry about it.
    Just leading the flock.
    Livewire
    Masshuu ------ carl6969
    descalzo ------------------- Smith6612
    Bryon--------------------------------- Corey
    If you find any post helpful or useful, duck
    \ / This for that post and rep it up.

  3. #3
    high6 is offline x10Hosting Member high6 is an unknown quantity at this point
    Join Date
    May 2008
    Posts
    11

    Re: Secure a vps?

    Well I am using cpanel so there are a bunch of different accounts and I tried setting the owner to the websites account but apparently other accounts access the site too when loading pages/etc.

  4. #4
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: Secure a vps?

    Running cPanel, I would make sure you are running PHP as a CGI or Suexec, not as mod_php.

    Also take a look at configserver firewall: http://www.configserver.com/cp/csf.html

    A lot can be done to secure a cPanel server. First I would install CSF and follow what is in under 'Check Server Security'.
    Thanks,
    Brandon Long

  5. #5
    Join Date
    Jun 2010
    Posts
    1

    Re: Secure a vps?

    thanks
    dinomirt96 likes this.

+ Reply to Thread

Similar Threads

  1. SMF - Is it secure?
    By Fearghal in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 11-25-2009, 06:18 PM
  2. Secure FTP
    By gustavoc in forum Free Hosting
    Replies: 1
    Last Post: 11-13-2009, 06:39 AM
  3. secure
    By galaxyAbstractor in forum Programming Help
    Replies: 3
    Last Post: 02-07-2009, 10:07 AM
  4. Just how secure is MD5?
    By KentonBomb in forum Scripts & 3rd Party Apps
    Replies: 5
    Last Post: 02-22-2008, 02:32 AM
  5. How secure is this?
    By Sheepoholics in forum Graphics & Webdesign
    Replies: 3
    Last Post: 04-22-2006, 01:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers