Skip to content

Commit b4c2250

Browse files
authored
TCR-586
1 parent 32aa2cf commit b4c2250

File tree

1 file changed

+176
-2
lines changed

1 file changed

+176
-2
lines changed

docs/els-for-languages/README.md

Lines changed: 176 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,181 @@ oscap oval eval --results result.xml --report report.xml centos6-els-php-oval.xm
192192
193193
You can find the list of the supported add-ons [here](https://docs.cloudlinux.com/shared/alt-ea_packages/#bundled-php-extensions).
194194
195-
### How to use PHP-ELS
195+
### How to use PHP-ELS
196+
197+
When you deploy an updated version of PHP through PHP ELS, using your system’s regular update tool (yum, dnf, apt), the new version will be installed under `/opt/alt/php[version]/`. This means that all modules, configurations and additional files pertaining to this version will be contained inside that path. Different versions of PHP will each have their own path and can coexist without issues on the same system. Below you will find the location of all the relevant files, should you want to make any changes.
198+
199+
**The *bin* files:**
200+
201+
```
202+
[root@localhost ~]# ll /opt/alt/phpXY/usr/bin/
203+
bytekit hphpa pear pecl phar.phar phpcb php-config phpcpd phploc phpunit-skelgen
204+
dbunit lsphp peardev phar php php-cgi phpcov phpize phpunit ppw
205+
```
206+
207+
***Modules* and *pecl* extensions:**
208+
209+
```
210+
ls /opt/alt/phpXY/usr/lib64/php/modules/
211+
ZendGuardLoader.so imagick.so oci8.so stem.so
212+
amqp.so imap.so odbc.so stomp.so
213+
apc.so inclued.so opcache.so suhosin.so
214+
apcu.so inotify.so pdf.so sybase_ct.so
215+
apm.so interbase.so pdo.so sysvmsg.so
216+
ares.so intl.so pdo_dblib.so sysvsem.so
217+
bcmath.so ioncube_loader.so pdo_firebird.so sysvshm.so
218+
big_int.so ixed.5.4.lin pdo_mysql.so tideways.so
219+
bitset.so jsmin.so pdo_oci.so tidy.so
220+
brotli.so json.so pdo_odbc.so timezonedb.so
221+
bz2_filter.so ldap.so pdo_pgsql.so trader.so
222+
dba.so libevent.so pdo_sqlite.so translit.so
223+
dbase.so libsodium.so pgsql.so uploadprogress.so
224+
dbx.so luasandbox.so phalcon.so uri_template.so
225+
dom.so lzf.so phar.so uuid.so
226+
doublemetaphone.so mailparse.so posix.so wddx.so
227+
eaccelerator.so mbstring.so propro.so weakref.so
228+
eio.so mcrypt.so pspell.so xcache.so
229+
enchant.so memcache.so quickhash.so xcache_3.so
230+
fileinfo.so memcached.so radius.so xdebug.so
231+
functional.so mongo.so raphf.so xhprof.so
232+
gd.so mongodb.so rar.so xmlreader.so
233+
gender.so msgpack.so recode.so xmlrpc.so
234+
geoip.so mssql.so redis.so xmlwriter.so
235+
geos.so mysql.so rsync.so xrange.so
236+
gmagick.so mysqli.so snmp.so xsl.so
237+
gnupg.so mysqlnd.so soap.so yaf.so
238+
haru.so ncurses.so sockets.so yaml.so
239+
hidef.so nd_mysql.so solr.so yaz.so
240+
htscanner.so nd_mysqli.so spl_types.so zip.so
241+
http.so nd_pdo_mysql.so ssh2.so zmq.so
242+
igbinary.so oauth.so stats.so
243+
```
244+
245+
**Running code on a specific version through the CLI:**
246+
247+
```
248+
[root@localhost ~]# /opt/alt/phpXY/usr/bin/php helloworld.php
249+
Hello, World!
250+
```
251+
252+
**Location of *ini* config files:**
253+
254+
```
255+
[root@localhost ~]# ls /opt/alt/phpXY/etc/php.d.all/
256+
40-leveldb.ini mailparse.ini redis.ini
257+
40-snuffleupagus.ini mbstring.ini rrd.ini
258+
40-vld.ini mcrypt.ini snmp.ini
259+
amqp.ini memcache.ini snuffleupagus-default.rules
260+
apcu.ini memcached.ini soap.ini
261+
bcmath.ini mongodb.ini sockets.ini
262+
dba.ini mysqli.ini sodium.ini
263+
dbase.ini mysqlnd.ini solr.ini
264+
dom.ini nd_mysqli.ini sourceguardian.ini
265+
eio.ini nd_pdo_mysql.ini sqlsrv.ini
266+
enchant.ini newrelic.ini ssh2.ini
267+
ffmpeg.ini oauth.ini stats.ini
268+
fileinfo.ini oci8.ini swoole.ini
269+
gd.ini odbc.ini sysvmsg.ini
270+
gearman.ini opcache.ini sysvsem.ini
271+
gender.ini pdf.ini sysvshm.ini
272+
geoip.ini pdo.ini tideways_xhprof.ini
273+
geos.ini pdo_dblib.ini tidy.ini
274+
gmagick.ini pdo_firebird.ini timezonedb.ini
275+
gnupg.ini pdo_mysql.ini trader.ini
276+
grpc.ini pdo_oci.ini uploadprogress.ini
277+
http.ini pdo_odbc.ini uuid.ini
278+
igbinary.ini pdo_pgsql.ini vips.ini
279+
imagick.ini pdo_sqlite.ini xdebug.ini
280+
imap.ini pdo_sqlsrv.ini xmlreader.ini
281+
inotify.ini pgsql.ini xmlrpc.ini
282+
intl.ini phalcon4.ini xmlwriter.ini
283+
ioncube_loader.ini phar.ini xsl.ini
284+
jsmin.ini posix.ini yaml.ini
285+
json.ini propro.ini yaz.ini
286+
ldap.ini pspell.ini zip.ini
287+
luasandbox.ini psr.ini zmq.ini
288+
lzf.ini raphf.ini
289+
```
290+
291+
**Location of *default.ini*:**
292+
293+
```
294+
ls /opt/alt/phpXY/etc/php.d/default.ini
295+
```
296+
297+
**Listing enabled modules on a specific version:**
298+
299+
```
300+
[root@localhost ~]# /opt/alt/php73/usr/bin/php -m
301+
[PHP Modules]
302+
bz2
303+
calendar
304+
Core
305+
ctype
306+
curl
307+
date
308+
exif
309+
filter
310+
ftp
311+
gettext
312+
gmp
313+
hash
314+
iconv
315+
libxml
316+
openssl
317+
pcntl
318+
pcre
319+
readline
320+
Reflection
321+
session
322+
shmop
323+
SimpleXML
324+
SPL
325+
sqlite3
326+
standard
327+
tokenizer
328+
xml
329+
zlib
330+
[Zend Modules]
331+
```
332+
333+
**Enabling a module through the CLI:**
334+
335+
```
336+
[root@localhost ~]# /opt/alt/php73/usr/bin/php -d "extension=igbinary.so" -m
337+
[PHP Modules]
338+
bz2
339+
calendar
340+
Core
341+
ctype
342+
curl
343+
date
344+
exif
345+
filter
346+
ftp
347+
gettext
348+
gmp
349+
hash
350+
iconv
351+
igbinary
352+
libxml
353+
openssl
354+
pcntl
355+
pcre
356+
readline
357+
Reflection
358+
session
359+
shmop
360+
SimpleXML
361+
SPL
362+
sqlite3
363+
standard
364+
tokenizer
365+
xml
366+
zlib
367+
[Zend Modules]
368+
```
369+
As you can see, each version is entirely self-contained, and changing configurations in one will not impact the others, a desired feature in hosting environments.
196370
197371
## ELS for Python
198372
@@ -1907,4 +2081,4 @@ The .NET Desktop Runtime allows you to run Windows desktop applications built wi
19072081
**.NET Runtime 6.0.36**
19082082
The .NET Runtime is the base runtime required to run console or server-based .NET applications. It's more lightweight than the SDK, since it does not include compilers, build tools, or additional libraries for web or desktop development.
19092083

1910-
TuxCare applies security patches to .NET 6 for the above OS versions, ensuring continued stability and security even beyond the official end-of-life date.
2084+
TuxCare applies security patches to .NET 6 for the above OS versions, ensuring continued stability and security even beyond the official end-of-life date.

0 commit comments

Comments
 (0)