Jelastic PHP Hosting

Enabling/Disabling PHP Hosting

You can enable/disable the usage of PHP hosting for your users (all of them or just a separate group) via JCA:

  • Navigate to JCA > System Settings > User interface.

  • Set LANGUAGES_ENABLED parameter by specifying “php” value (or delete it if you want to disable this language).
    If you use several programming languages then just enumerate them comma separated.

More info here.

PHP Application Servers

Jelastic supports the following PHP application servers:

Version Management

The following PHP versions are available at Jelastic:
  • PHP 5.3
  • PHP 5.4
  • PHP 5.5
User can choose the version while creating environment or change it afterwards. This workflow is described in the PHP versions document.

PHP Modules

With Jelastic you can set different PHP extensions in Apache PHP module and in NGINX php-fpm daemon. Among these extensions we collected the most widely-used modules.

Here is a full list of all PHP modules supported by Jelastic:

bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
gzip
hash
iconv
Imagick
imap
json
ldap
libxml
mbstring
mcrypt
memcache
memcached
mhash
mongo
mysql
mysqli
ncurses
odbc
opcache
openssl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
SQLite
sqlite3
standard
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

You can also add your custom PHP module. The instruction you can find here.

PHP Accelerators

We provide the possibility to use PHP accelerators in order to improve the PHP applications performance. Here is the list of accelerators available:

  • APC
  • Xcache
  • eAccelerator (only for php v5.3 v5.4)
  • ZendGuardLoader ( only for php v5.3)

To activate any accelerator follow the instruction.

Configurations Available via Jelastic File Manager

Jelastic makes the following files and folders available:

Directory PathDescription
/var/www/webroot/for application files
/etc
/etc/httpd/conf
/etc/httpd/conf.d
contain web server config files
/var/spool/croncontains cronjob configurations file
/var/lib/jelastic/keysfor private keys uploading
/usr/lib64/php/modulesfor custom php modules uploading


More info on PHP app servers configurations available in Jelastic see the
documentation.

Log Files

Jelastic makes the following log files available depending on the node:

NodeAvailable log files
Apacheaccess-log
dummy-host
error_log
NginxPHPerror access
php-fpm

What's next?