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.

Best apache setup?

Discussion in 'EasyApache' started by mitk, Sep 17, 2009.

  1. mitk

    mitk Well-Known Member

    Joined:
    May 14, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    I am starting out with a VPS and then hopefully will move to a dedicated server as things pickup.

    Some of my future clients do almost every, E-com, Movies, Pictures etc etc I am wondering if anyone knows of a very good apache setup that will allow a wide range of services on the vps while keeping things secure and fast.

    Any suggestions?
     
  2. mitk

    mitk Well-Known Member

    Joined:
    May 14, 2003
    Messages:
    72
    Likes Received:
    0
    Trophy Points:
    6
    Any suggestions?
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    There are lots of stuffs available to make server secure. suPHP and mod_security are two good options to keep your server secure. Also, you may wish to install CSF firewall. We are using it and very happy with it's services.
     
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Movies, E-Commerce, on a VPS Server? ROFL LMAO! :D

    (Sorry after many years of personal fighting the inherent problems with traditional VPS servers for thousands of clients all over the world, I cannot help but to spit my coffee all over the screen when you mention E-commerce and Movies) ;)

    Traditional VPS servers are by their design inherently vulnerable to security and performance problems and though if pushed hard can be made to do some of these things, they'll never have even close to the performance of dedicated servers. Plus traditional VPS servers are EXTREMELY unreliable!

    Dedicated servers can, if setup correctly, solve many of the security and performance problems and allow you to get into more resource consumptive content such as multimedia streaming, file downloads, higher level e-commerce, etc but can be very expensive starting out and still doesn't solve the "reliability" issues unless you spend even more money to get RAID drives, extra servers for clustering / mirroring, external DNS servers, etc.

    So, you need something very powerful but can only afford to pay for a VPS server?

    Fortunately, you do have other options available to you ....

    Cloud Servers, a little bit confusing because sometimes marketed as "VPS Servers" by some cloud providers (us included sometimes) to try to target support from the less aware public who generally doesn't yet understand the actual differences in the technology.

    In a basic nutshell, where VPS servers partition the resources of a single machine and share CPU, Memory, and Hard Drive space which can often be overloaded and thus create stability issues, the base of cloud technology extends the underlying principle to multiple machines where huge networks of machines are effectively combined together to create an ultimate fault tolerant super computer in effect from which resources are allocated to virtualized servers. If implemented properly, a Cloud server suffers from none of the problems of either VPS servers or Dedicated Servers and is by design vastly superior to both of these technologies which is why the internal driving force in the hosting world is starting to shift more towards a cloud technology paradigm as more and more of the public becomes aware of the benefits of cloud technology.

    I mentioned that Cloud Servers are sometimes marketed as "VPS Servers" so it can get a little confusing knowing which providers have real cloud technology and which are actually using traditional VPS servers. The larger point to note is that Cloud technology can be easily priced competitive to that of traditional VPS servers and subsequently the VPS customer market is the primary target customer market generally being addressed. This is good because this gives a "better than dedicated" option to consumers within the pricing range and structures of traditional VPS servers!

    Incidentally, and also to more vividly illustrate the point more clearly how this technology is moving forward ...

    Here at my company, and where I am typing from now, we recently left dedicated entirely behind and in fact are still updating our web site to reflect the recent changes. It should tell you something because we recently got rid of all of our dedicated servers entirely, converted our own hosting networks to a cloud architecture, and also aligned ourselves with some of the best cloud network providers and data centers all over the world to be able to vastly extend our own cloud capabilities and resources and then combined that with some of the best security, management, and support services found anywhere to try to give our clients more "complete" all inclusive packages including things like instantly deplorable fully configured and security hardened cpanel servers that can upgrade live in real time without taking the server offline and handle many times the traffic loads of normal traditional VPS or Dedicated servers -- only a few of the many benefits of real cloud technology which are far too numerous to list in a single post but would probably blow the minds of most server administrators who all love to be able to do the things you can do with cloud servers that are not possible on any other server technology platform or architecture.

    Aside from our own company fully adopting cloud technology, there are a number of cloud providers out there and that number is growing exponentially as many of the data centers around the world are awaking to see the real tangible benefits in adopting cloud technology and the the ever increasing demand for cloud technology! Most data centers have either already begun conversion or are planning for it very shortly to adopt cloud computing into their service offerings as is many more hosting providers and the public will continue to see more and more of this type of computing emerging as it more and more becomes the standard platform for all server computing out there.

    So back to the original poster's question? :D

    Type of server --- Cloud Server (AKA: Cloud VPS)

    Apache and other software recommendations ---

    Apache 2.2.13 with MPM Worker or MPM Prefork, SuPHP with PHP 5.2.11 on CentOS 5.3 64 bit, MySQL 5, Cpanel, SuPHP, Chirpy's CSF Firewall, Mod_Security w/GotRoot.Com ruleset, Tripwire, Mod_Evasive, RkHunter, SuHosin.

    The above should be your basic underlying platform that you should be able to extend to whatever purpose you choose.

    Make sure you have the latest updates, patches, and standard required prerequisite files installed
    as this will help a lot when loading other applications and tools that you will need later:
    Code:
    # yum install make coreutils binutils dialog gcc gcc-* 
    # yum install libexi* libpn* libjpe* libgcryp* libmcryp* giflib* xmlrpc glib* netpbm netpbm-* ImageMagic* curl*
    # yum update kernel
    # yum upgrade
    
    Once you have Cpanel installed, you should probably run /scripts/checkperlmodules a couple of times till it runs clean
    to make sure you get all your necessary missing perl modules and CPAN may need to be updated on your server:
    Code:
    # cpan 
    > install CPAN
    > reload CPAN
    > quit
    
    That should get your server setup with the basics ...

    Hope that helps ;)
     
    #4 Spiral, Sep 20, 2009
    Last edited: Sep 20, 2009
Loading...

Share This Page