Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2003
    Posts
    397

    Default Ea3 and secure php

    Hi

    i have install a new box with Cpanel 11 and Apache 2.2 now i would try to use a secure php configuration, i have compile php with fastcgi but i dont see it in php -m and apache request still show "nobody" user, which ea setting i need to enable to get a good php conf?

    [PHP Modules]
    bcmath
    bz2
    calendar
    ctype
    curl
    date
    dbase
    dom
    exif
    filter
    ftp
    gd
    gettext
    hash
    iconv
    imap
    json
    libxml
    mbstring
    mcrypt
    mhash
    mime_magic
    mysql
    pcre
    posix
    Reflection
    session
    SimpleXML
    soap
    sockets
    SPL
    standard
    tokenizer
    xml
    xmlreader
    xmlrpc
    xmlwriter
    xsl
    zip
    zlib

  2. #2
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Here's a link to our documentation on hardening PHP:

    http://www.cpanel.net/support/docs/e...ening_php.html

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2003
    Posts
    397

    Default

    thanks for the link, searching on the forum i have read that the better way is to use SuPhp + fastcgi but other people say that suphp take a lot of server resource, so what do u think that we need to use to get the php request with the userid of the account?

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,720
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by adapter View Post
    thanks for the link, searching on the forum i have read that the better way is to use SuPhp + fastcgi but other people say that suphp take a lot of server resource, so what do u think that we need to use to get the php request with the userid of the account?
    * SNIPPED *

    Another issue can be if you have several thousand accounts serving PHP and now you have many more instances of SuPHP in memory than you really need to be there due to FastCGI. Keep in mind, FastCGI enhances performance by keeping instances of the interpreter in memory longer than it's really needed (in anticipation of a future request, so disk I/O of loading the interpreter is avoided). * SNIPPED *This may not be an ideal solution for those with many accounts or limited memory resources.

    In production, I haven't encountered noticeable sluggishness on the part of SuPHP and I personally like the security it provides. I have found myself thanking SuPHP from preventing scripts I was experimenting with from going too far in terms of messing with my permissions etc. I enjoy using it as a rudimentary filtering tool to filter the good PHP scripts from the not so good PHP scripts on accounts where I'm experimenting with PHP scripts I'm not familiar with.

    As a PHP guy myself, if it's my own server only running my own websites, I'd prefer to employ caching at the application level (if it's supported by the PHP application either natively or via a plugin like wp-cache for WordPress) rather than the server level, as application level caching can even avoid the need to use a PHP interpreter for most requests if set up correctly (as the output from PHP scripts is cached to static HTML/XML/etc.).

    EDIT: I've been kindly informed by the developers that SuPHP doesn't act like SuExec with regards to FastCGI Implementation.
    Last edited by cPanelDavidG; 11-13-2007 at 02:17 PM. Reason: SuPHP doesn't act like SuExec with the separate threads for individual userids

Similar Threads & Tags
Similar threads

  1. PHP 5 option greyed out in EA3
    By ZMan in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-23-2009, 02:20 PM
  2. Ea3 & php pdo
    By phoenixweb in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-09-2009, 11:40 AM
  3. EA3 don't update php and modules
    By zokoni in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 04-03-2008, 12:47 AM
  4. EA3 Concurrent PHP4/5 Compile - PHP Acceleration
    By verdon in forum cPanel and WHM Discussions
    Replies: 18
    Last Post: 12-05-2007, 05:29 AM
  5. PHP not showing after EA3 install
    By bpat1434 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-28-2007, 04:54 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube