Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Best cPanel PHP Setup

patpat Member
edited July 2013 in Help

I am running cPanel on a solid and fairly high-performance VPS. I have 2gb of Ram along with 512 mb of vSwap along with 4 strong cores.

I am running apache + nginx via http://nginxcp.com/. I am also running eAccelerator. (good/bad)?

I am looking for the best php setup for the VPS. Ruid2? FastCGI? suPHP? DSO? CGI? SuEXEC on or off?

I know many providers offer some shared or reseller hosting so I'm looking for feedback based on cPanel experience.

Thanks :-)

Comments

  • natestammnatestamm Member
    edited July 2013

    I think you can get away using some of the profile selections in WHM-here is a good example that I use a lot.




    --- 
    Apache: 
      optmods: 
        Access: 1
        Actions: 1
        Alias: 1
        Asis: 0
        AuthAnon: 0
        AuthDB: 0
        AuthDBM: 0
        AuthDigest: 0
        AuthLDAP: 0
        AuthnAlias: 0
        AuthnAnon: 0
        AuthnDBD: 0
        AuthnDBM: 0
        AuthnDefault: 0
        AuthnzLDAP: 0
        AuthzDBM: 0
        AuthzHost: 1
        AuthzOwner: 0
        Autoindex: 1
        Bucketeer: 0
        Cache: 0
        CaseFilter: 0
        CaseFilterIn: 0
        CernMeta: 0
        CharsetLite: 0
        DAVFs: 0
        DAVLock: 0
        DBD: 0
        DIR: 1
        Dav: 0
        Deflate: 0
        DiskCache: 0
        Distcache: 0
        Dumpio: 0
        Echo: 0
        Env: 0
        Expires: 1
        ExtFilter: 0
        Fastcgi: 0
        FileCache: 0
        Fileprotect: 1
        Frontpage: 1
        Headers: 1
        Ident: 0
        Imagemap: 0
        LDAP: 0
        LogAgent: 0
        LogConfig: 1
        LogForensic: 0
        LogReferer: 0
        MPMEvent: 0
        MPMLeader: 0
        MPMPerchild: 0
        MPMPrefork: 0
        MPMThreadpool: 0
        MPMWorker: 0
        MemCache: 0
        Mime: 1
        MimeMagic: 0
        MmapStatic: 0
        Negotiation: 1
        OptionalFnExport: 0
        OptionalFnImport: 0
        OptionalHookExport: 0
        OptionalHookImport: 0
        PHPAsUser: 1
        Proxy: 1
        RaiseFDSetsize: 0
        RaiseHardServerLimit: 0
        Rewrite: 0
        Setenvif: 1
        Speling: 0
        Status: 1
        SymlinkProtection: 0
        UniqueId: 0
        Userdir: 1
        Usertrack: 0
        Version: 0
        VhostAlias: 0
        Watchdog: 0
      version: 2_2
    Cpanel::Easy::EAccelerator: 0
    Cpanel::Easy::IonCubeLoader: 0
    Cpanel::Easy::ModBandwidth: 0
    Cpanel::Easy::ModGzip: 0
    Cpanel::Easy::ModJk5: 0
    Cpanel::Easy::ModMono: 0
    Cpanel::Easy::ModMono2: 0
    Cpanel::Easy::ModPerl: 0
    Cpanel::Easy::ModQos: 0
    Cpanel::Easy::ModRuid2: 0
    Cpanel::Easy::ModSec: 0
    Cpanel::Easy::PHP5: 1
    Cpanel::Easy::PHP5::2_17: 0
    Cpanel::Easy::PHP5::2_9: 0
    Cpanel::Easy::PHP5::3_23: 1
    Cpanel::Easy::PHP5::3_24: 0
    Cpanel::Easy::PHP5::4_14: 0
    Cpanel::Easy::PHP5::Bcmath: 1
    Cpanel::Easy::PHP5::Bz2: 0
    Cpanel::Easy::PHP5::CGI: 0
    Cpanel::Easy::PHP5::Calendar: 1
    Cpanel::Easy::PHP5::Curl: 0
    Cpanel::Easy::PHP5::CurlSSL: 1
    Cpanel::Easy::PHP5::Curlwrappers: 0
    Cpanel::Easy::PHP5::DBX: 0
    Cpanel::Easy::PHP5::Dbase: 0
    Cpanel::Easy::PHP5::DiscardPath: 0
    Cpanel::Easy::PHP5::Enchant: 0
    Cpanel::Easy::PHP5::Exif: 0
    Cpanel::Easy::PHP5::Expat: 0
    Cpanel::Easy::PHP5::FTP: 1
    Cpanel::Easy::PHP5::Fastcgi: 0
    Cpanel::Easy::PHP5::FileInfo: 0
    Cpanel::Easy::PHP5::ForceCGIRedirect: 0
    Cpanel::Easy::PHP5::GD: 1
    Cpanel::Easy::PHP5::Gettext: 0
    Cpanel::Easy::PHP5::HardPHP: 0
    Cpanel::Easy::PHP5::Iconv: 0
    Cpanel::Easy::PHP5::Imap: 1
    Cpanel::Easy::PHP5::Intl: 0
    Cpanel::Easy::PHP5::Java: 0
    Cpanel::Easy::PHP5::MM: 0
    Cpanel::Easy::PHP5::MagicQuotes: 1
    Cpanel::Easy::PHP5::MailHeaders: 1
    Cpanel::Easy::PHP5::Mbregex: 0
    Cpanel::Easy::PHP5::Mbstring: 1
    Cpanel::Easy::PHP5::Mcrypt: 0
    Cpanel::Easy::PHP5::MemoryLimit: 0
    Cpanel::Easy::PHP5::Mhash: 0
    Cpanel::Easy::PHP5::MimeMagic: 0
    Cpanel::Easy::PHP5::Ming: 0
    Cpanel::Easy::PHP5::Mysql: 1
    Cpanel::Easy::PHP5::MysqlOfSystem: 1
    Cpanel::Easy::PHP5::Mysqli: 0
    Cpanel::Easy::PHP5::Openssl: 1
    Cpanel::Easy::PHP5::PDFLib: 0
    Cpanel::Easy::PHP5::PDO: 0
    Cpanel::Easy::PHP5::PDOMySQL: 0
    Cpanel::Easy::PHP5::POSIX: 0
    Cpanel::Easy::PHP5::PathInfoCheck: 0
    Cpanel::Easy::PHP5::Pear: 0
    Cpanel::Easy::PHP5::Pgsql: 0
    Cpanel::Easy::PHP5::Phar: 0
    Cpanel::Easy::PHP5::Pspell: 0
    Cpanel::Easy::PHP5::SNMP: 0
    Cpanel::Easy::PHP5::SOAP: 0
    Cpanel::Easy::PHP5::SQLite3: 0
    Cpanel::Easy::PHP5::SafeMode: 0
    Cpanel::Easy::PHP5::SafePHPCGI: 0
    Cpanel::Easy::PHP5::SilenceDeprecatedPatch: 0
    Cpanel::Easy::PHP5::Sockets: 1
    Cpanel::Easy::PHP5::Swf: 0
    Cpanel::Easy::PHP5::SysTimezone: 0
    Cpanel::Easy::PHP5::TTF: 1
    Cpanel::Easy::PHP5::Tidy: 0
    Cpanel::Easy::PHP5::Versioning: 0
    Cpanel::Easy::PHP5::Wddx: 0
    Cpanel::Easy::PHP5::WithoutIconv: 0
    Cpanel::Easy::PHP5::XSL: 0
    Cpanel::Easy::PHP5::XmlRPC: 0
    Cpanel::Easy::PHP5::ZendMultibyte: 0
    Cpanel::Easy::PHP5::Zip: 0
    Cpanel::Easy::PHP5::Zlib: 1
    Cpanel::Easy::PHP5::cPPHPOpts: 0
    Cpanel::Easy::PHPSuHosin: 0
    Cpanel::Easy::SourceGuardian: 0
    Cpanel::Easy::Xcache: 0
    Cpanel::Easy::Zendopt: 0
    _meta: 
      implies: 
        changed: {}
    
        circles: {}
    
      name: PHP Image Manipulation (1)
      note: This uses the Basic configuration and adds the GD and FreeType libraries to PHP. GD and FreeType are used for image and font manipulation.
      
  • I prefer XCache rather than EC. suPHP with SUEXEC enabled.

  • XCache (or any other PHP opcode) doesn't work with suPHP.

  • @XTREME said:
    cpanel is better for use, i recommend

    Did you even read the first post? :)

  • camargcamarg Member

    If you host many low traffic sites go for suphp, else fcgi.
    As @George_Fusioned already mentioned PHP-accelerators don't work with suphp

  • For the above reason, i use php as DSO with RUID2 enabled. My sites run with a mix of APC, Memcache and nginx for caching

  • @XTREME said:
    cpanel is better for use, i recommend

    LOL =)

  • patpat Member
    edited July 2013

    So what's the consensus?

    @XTREME said:
    cpanel is better for use, i recommend

    Thanks man! :-) lol

    @camarg said:
    If you host many low traffic sites go for suphp, else fcgi.

    Low to Medium Traffic. No site gets more than 5,000 views a day. I have read that with mod_RUID2 there's no real advantage of running fcgi.

    @peppr said:
    For the above reason, i use php as DSO with RUID2 enabled. My sites run with a mix of APC, Memcache and nginx for caching.

    I am also using DSO with Mod_RUID2 enabled and also am running nGinx proxy. However, I am curious to know how much traffic is needed for something like APC, Memchace or eAccelerator to noticeably increase speeds and decrease load.

  • patpat Member

    @peppr said:
    For the above reason, i use php as DSO with RUID2 enabled. My sites run with a mix of APC, Memcache and nginx for caching

    cPanel says that in order to enable mod_ruid2 Memcache must be disabled?

Sign In or Register to comment.