How to build PHP with specific extensions using options.conf ?

crenet

Verified User
Hi,

How can I setup options.conf to build PHP with theses extensions ate the first install.

OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
GD PHP Extension (or Imagick PHP Extension)
PHP Fileinfo extension
PHP Zip Archive

Is there a manual how to work with options.conf and the available options?

Where can I find a list of the PHP extensions used by default when we install ?

Thanks
 

crenet

Verified User
Hey @crenet,

Some of the extensions are in CustomBuild (imagick, opcache, ioncube, zend guard loader, suhosin etc.).

Some are built-in by default.

You may refer https://help.directadmin.com/item.php?id=252 as well.

For a list of modules, just run:
Code:
php -m
Hi @pmjcreation

Thanks but I need to build php in the first install with all that extensions, that´s why I ask for options.conf settings.
I think options.conf is the file that I need to use tho get this done when we install.

Is there a list of the available lines/commands for options.conf ?

Where can I see a list of CustomBuild supported scripts ?

Thanks
 

eva2000

Verified User
Hi,

How can I setup options.conf to build PHP with theses extensions ate the first install.

OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension
Tokenizer PHP Extension
XML PHP Extension
Ctype PHP Extension
JSON PHP Extension
GD PHP Extension (or Imagick PHP Extension)
PHP Fileinfo extension
PHP Zip Archive

Is there a manual how to work with options.conf and the available options?

Where can I find a list of the PHP extensions used by default when we install ?

Thanks
from my DirectAdmin install guide section at https://servermanager.guide/162/how-to-install-directadmin-control-panel-on-centos-7/#setup-preconfigure you can do a first time setup of all your required php options the long manual way. Then copy the options.conf and use that for future new DA installs. I have pre-generated options.conf file at https://gist.githubusercontent.com/centminmod/62cc0bcdb44977718f98390a93ad8776/raw/options.conf which has following php extensions

Code:
php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
geoip
gettext
hash
iconv
imagick
intl
json
libxml
mbstring
memcached
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
so for your extensions probably need in options.conf
Code:
opcache=yes
ioncube=yes
imagick=yes
zend=yes
suhosin=yes
 

crenet

Verified User
Hi @eva2000,

Thanks for your useful post.

Can you please clarify one thing, we place in options.conf all PHP extension that we need to build or just the ones that DirectAdmin do not install by default ?

In other words will only the the extensions listed in options.conf be build in PHP ?

Where can I see the default PHP extensions installed with install ?

Thanks
 
Top