Search extension# ee /usr/local/etc/php.ini
1.
To enable /disable PHP modules# cd /usr/ports/converters/php73-mbstring && make install clean
# cd /usr/ports/converters/php73-mbstring && make deinstall
To enable /disable PHP modules# cd /usr/ports/converters/php73-mbstring && make install clean
# cd /usr/ports/converters/php73-mbstring && make deinstall
To search extension,
# ee /usr/local/etc/php.ini
;extension=mbstring
Remove the semicolon to enable this extention
mbstring configuration starts with:
[mbstring]
2.
To find the default extension directory:The extention directory location dependes on the OS thus you need to find it manually.
# cat /usr/local/bin/php-config
Find this line.
extension_dir='/usr/local/lib/php/20180731'
Find this line.
extension_dir='/usr/local/lib/php/20180731'
In php.ini find this line
;extension_dir = "./"
Changed it to
Changed it to
extension_dir = "/usr/local/lib/php/20180731/"
;When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
; extension=/path/to/extension/mysqli.so
Simple call to the apachectl command for a graceful restart is needed to load the PHP module:
# apachectl graceful
# apachectl graceful
Or to hard restart,
# service apache24 restart
No comments:
Post a Comment