Optimized Apache Global Configuration for HTTPS Sites

For 4-Core CPU, 16GB RAM Server

SSL Cipher Suite

ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:ECDHE-RSA-DES-CBC3-SHA:ECDHE-ECDSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA

SSL/TLS Protocols

All -SSLv2 -SSLv3

LogLevel

warn

Trace Enable

Off

Server Signature

Off

Server Tokens

Product Only

File ETag

None

Directory “/” Options

ExecCGI
FollowSymLinks 
IncludesNOEXEC 

Start Servers

25

Minimum Spare Servers

25

Maximum Spare Servers

50

Server Limit

1000

Max Request Workers

1000

Max Connections Per Child

0

Keep-Alive

On

Keep-Alive Timeout

100

Max Keep-Alive Requests

Unlimited

Timeout

300

Optimized .htaccess for Interspire Shopping Cart

php_flag magic_quotes_gpc Off
Options -MultiViews +FollowSymlinks +Indexes
IndexIgnore *
ErrorDocument 401 "Unauthorized access"

<IfModule mod_security.c>
	SecFilterEngine Off
	SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c>
	RewriteEngine On

	RewriteCond %{HTTPS} !=on [NC]
	RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

	RewriteCond %{REQUEST_FILENAME} robots.txt
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule robots.txt robots_default.txt [L]

	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . index.php
	<IfModule mod_env.c>
		SetEnv SEO_SUPPORT 1
	</IfModule>
</IfModule>

<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
	AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
	AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
	AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
	AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
	AddOutputFilterByType DEFLATE font/truetype font/opentype
</IfModule>

<ifModule mod_expires.c>
	ExpiresActive On
	ExpiresByType image/x-icon "access plus 1 month"
	ExpiresByType image/jpeg "access plus 1 month"
	ExpiresByType image/png "access plus 1 month"
	ExpiresByType image/gif "access plus 1 month"
	ExpiresByType text/css "access plus 1 month"
	ExpiresByType text/javascript "access plus 1 month"
	ExpiresByType application/javascript "access plus 1 month"
	ExpiresByType application/x-javascript "access plus 1 month"
	ExpiresByType text/html "access plus 30 minutes"
	ExpiresByType application/xhtml+xml "access plus 30 minutes"
</ifModule>

<ifModule mod_headers.c>
	Header always set Strict-Transport-Security "max-age=31536000" env=HTTPS
	Header unset ETag
	Header append Vary User-Agent
	FileETag None

  <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "public"
  </filesMatch>
  <filesMatch "\.(css)$">
    Header set Cache-Control "public"
  </filesMatch>
  <filesMatch "\.(js)$">
    Header set Cache-Control "private"
  </filesMatch>
  <filesMatch "\.(x?html?|php)$">
    Header set Cache-Control "private, must-revalidate"
  </filesMatch>
</ifModule>

Optimized Apache/PHP Modules for Interspire Shopping Cart

Based on Apache 2.4.23 / PHP 5.3.29

Apache

Deflate
Expires
Headers
MPM Prefork
Proxy
UniqueId
Mod Security 2.9.0
Suhosin 0.9.33 for PHP
XCache 3.2.0 for PHP

PHP

CGI
Calendar
CurlSSL
FTP
GD
Iconv
Imap
MBstring
Mcrypt
Mysql
MySQL "Improved" extension
OpenSSL
PDO
PDO MySQL
POSIX
Pear
Phar
Pspell
SOAP
SQLite3
Sockets
Zlib

XCache Optimized Settings

php.ini location for cPanel

/usr/local/lib/php.ini

Settings based on 4-Core CPU

xcache.admin.enable_auth="on"
xcache.admin.pass=""
xcache.admin.user="root"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="4"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="On"
xcache.readonly_protection="Off"
xcache.size="128M"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="4"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"

HowTo Change Interspire Shopping Cart Order of Payment Methods

Payment methods are sorted alphabetically. So to change the rank of a particular payment method you simply change the name of the payment method so that it starts with the letter where you want it to appear in your list.

File

/modules/checkout/(name of payment method)/lang/en/language.ini

Edit line 2

Name = "new name"