PHP 8.2.30
Preview: build_install_ext.template Size: 1.72 KB
//proc/thread-self/root/proc/thread-self/root/usr/local/lsws/admin/html/utility/build_php/build_install_ext.template

###########################################
EXTENSION_NAME="__extension_name__"
EXTENSION_DIR=__extension_dir__
EXTENSION_EXTRA_CONFIG="__extension_extra_config__"
###########################################


echo ""
echo "=============================================="
main_msg "Start building ${EXTENSION_NAME} Extension"
echo "=============================================="
echo `date`
echo ""

main_msg "Changing to build directory ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR}" 
cd ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR}
check_errs $? "Could not get into build directory"

main_msg "Running PHPize for ${EXTENSION_NAME} extension" 
${INSTALL_DIR}/bin/phpize 
check_errs $? "Could not run PHPize for ${EXTENSION_NAME}"

main_msg "Configuring ${EXTENSION_NAME} extension build" 
./configure ${EXTENSION_EXTRA_CONFIG} --with-php-config=${INSTALL_DIR}/bin/php-config
check_errs $? "Could not configure ${EXTENSION_NAME} extension build"

main_msg "Compiling ${EXTENSION_NAME} extension" 
make
check_errs $? "Could not compile ${EXTENSION_NAME} extension"

main_msg "Installing ${EXTENSION_NAME} extension" 
make install
check_errs $? "Could not install ${EXTENSION_NAME} extension"

if [  "${INST_USER}" = "root" ]; then
    echo "chown -R ${PHP_USR}:${PHP_USRGROUP} ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR} "
	chown -R ${PHP_USR}:${PHP_USRGROUP} ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR} 
	check_errs $? "Could not chown to ${PHP_USR}:${PHP_USRGROUP} for direcotry ${PHP_BUILD_DIR}/php-${PHP_VERSION}/${EXTENSION_DIR}"
fi

echo ""
echo "=============================================="
main_msg "${EXTENSION_NAME} extension build complete"
echo "=============================================="
echo `date`
echo ""
	

Directory Contents

Dirs: 0 × Files: 14

Name Size Perms Modified Actions
1.99 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
26.81 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
567 B lrw-r--r-- 2026-04-17 13:15:14
Edit Download
367 B lrw-r--r-- 2026-04-17 13:15:14
Edit Download
1.45 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
9.35 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
3.46 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
4.22 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
565 B lrw-r--r-- 2026-04-17 13:15:14
Edit Download
4.17 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
1.72 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
1.05 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
5.29 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download
2.60 KB lrw-r--r-- 2026-04-17 13:15:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).