How to customize ""./build secure_php" ?

aros

Verified User
Joined
Jan 12, 2017
Messages
7
Hi everybody,
How to customize "./build secure_php" ?
I want to customize disable_functions in php.ini whenever "./build secure_php" overwrite php.ini
Regards
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,218
Location
Maastricht
Why should you do ./build secure_php every time?
You just need to do this once, then a secure php.ini is created.
Then you edit the /usr/local/lib/php.ini file, change your disable_functions in whatever you want it, save the file and restart apache and you're done.

If you need any changes later on, you change that file again and restart apache. There is no need to do a ./build secure_php multiple times.
 

Richard G

Verified User
Joined
Jul 6, 2008
Messages
4,218
Location
Maastricht
In the /usr/local/directadmin/custombuild/options.conf file, maybe you have:
php_ini=yes
and
secure_php=yes

You can set those to "no", since you already have a good php.ini so a secure php.
I don't work with the plugin so I only know how to change this via console.
Either edit the file, save it and do a ./build update or:
cd /usr/local/directadmin/custombuild
./build set php_ini no
./build set secure_php no
./build update

And it should stop updating.
 
Top