What versions of Apache, MySQL and PHP do you use on your shared hosting servers? Print

  • 0

On our shared hosting servers we use:

  • Apache v2.4
  • We use MariaDB 5.6 instead of MySQL, and these two are completely compatible.

On our shared hosting accounts, you can choose PHP version and extensions (modules) on your own.

To choose PHP version you need log in to your cPanel account, find “Software/Services” > “Select PHP version” > in the dropdown find the version needed and press the button “Set as current”.

Please, pay attention that the version applies to the whole hosting account and different PHP versions cannot be applied for different sites.

We support next PHP versions: 4.4.х, 5.1.x - 5.6.x, and 7.0.x.
You can switch on or off certain PHP extensions (modules) for your account. 

If you need to set different PHP version for different web sites, you can do this in .htaccess file. Upload .htaccess to the folder you need. Include the following line in this file:
AddHandler application/x-httpd-php52 .php # for 5.2 РНР version
As you can see, 'php52' here stands for the version, so you can change it to your needs – up to php 5.6.

To choose PHP extensions you need log in to your cPanel account, find “Software/Services” > “Select PHP version” > on the opened page you will see the list of all available extensions. You can mark needed extensions and press Save at the bottom of the page. 

In addition, you can change PHP settings. To do so, go to your cPanel account, choose "Software and Settings" > «Select PHP version» > "Switch To PHP options". Editing these settings will result in /etc/php.ini consequent corrections:
allow_url_fopen,
display_errors,
error_reporting,
file_uploads,
include_path,
log_errors,
magic_quotes_gpc,
mail.force_extra_parameters,
max_execution_time,
max_input_time,
max_input_vars,
memory_limit,
open_basedir,
post_max_size,
register_globals,
safe_mode,
safe_mode_exec_dir,
safe_mode_include_dir,
session.save_path,
short_open_tag,
suhosin.get.max_value_length,
suhosin.post.max_vars,
suhosin.request.max_varname_length,
suhosin.request.max_vars,
upload_max_filesize.

If you need to reload some other PHP directives, use a local php.ini file. You should create a file with this name, add necessary PHP settings and put the file in the folder with PHP scripts. Suppose, you need to change «upload_max_filesize» and «register_globals» for one of your scripts. You should create a php.ini file under the folder of needed script with the following content:

[PHP]
upload_max_filesize = 128M
memory_limit = 168M
max_execution_time= 60
max_input_time = 120
post_max_size = 32m
register_globals = On

Among those possible for edit, there are the following ones:
allow_url_fopen
display_errors
error_reporting
file_uploads
include_path
log_errors
magic_quotes_gpc
mail.force_extra_parameters
max_input_vars
open_basedir
safe_mode
safe_mode_exec_dir
safe_mode_include_dir
session.save_path
short_open_tag
suhosin.get.max_value_length
suhosin.post.max_vars
suhosin.request.max_varname_length
suhosin.request.max_vars

Php.ini content is valid only for php files in the same folder with php.ini. This means that php.ini will work for folder1 only, but not for a subfolder within folder1. However, you can make your php.ini work recursively. To do so, place an .htaccess file in the folder with .php.ini and include the following lines there: SetEnv PHPRC <direct path to php.ini> After that php.ini file will modify PHP settings in child folders as well.

Please mind, that we use su_PHP on our shared hosting servers. That is why you don't need to set the Write permissions (777) to the whole Apache web server, as the case may be with other hosting providers, who use mod_PHP.

In case you are not satisfied with the list of software installed on our servers, you can order a VPS or one of our cheap Linux dedicated servers and customize software as you wish.


Was this answer helpful?

« Back

Ready to work together towards your success?

We love taking your call.