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.

whats the typicall php extensions used?

Discussion in 'General Discussion' started by StaticPhilly, Jun 29, 2009.

  1. StaticPhilly

    StaticPhilly Registered

    Joined:
    Aug 24, 2008
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    can anyone tell me what extensions php would typically be setup with for a production webserver?

    thanks
    Phil
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    cPanel's defaults are:

    .php5 .php4 .php .php3 .php2 .phtml

    .php is of course the most common
    .phtml isn't seen much anymore, but used to be used a bunch.
    .phpX where X is the major version number can be used to run the script with a particular version. For instance, you can run PHP 5 scripts by default and PHP 4 scripts for .php4 files. .php3 and .php2 are for historical purposes, since PHP v3 and PHP v2 are long gone now (hopefully)

    As a side note, some people add .html to their PHP extensions, so that all .html files are processed with PHP. This is usually done locally in a .htaccess file, not globally on the server.
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  4. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    haha I feel stupid :) ... thought it was an odd question.

    I think the question was probably about modules like gd, curl, freetype
     
  5. eth00

    eth00 Well-Known Member
    PartnerNOC

    Joined:
    Mar 30, 2003
    Messages:
    723
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    NC
    cPanel Access Level:
    Root Administrator
    The default it includes usually gets most stuff you need. If you run easyapache there is an option for a typical ecommerce server or something close to that, select that and most people are fine for php modules.
     
Loading...

Share This Page