whats the typicall php extensions used?

StaticPhilly

Registered
Aug 24, 2008
4
0
51
Hello,

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

thanks
Phil
 

elleryjh

Well-Known Member
Apr 12, 2003
479
0
166
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.
 

elleryjh

Well-Known Member
Apr 12, 2003
479
0
166
haha I feel stupid :) ... thought it was an odd question.

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

eth00

Well-Known Member
PartnerNOC
Mar 30, 2003
721
1
168
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.