X7ROOT File Manager
Current Path:
/usr/local/lsws/admin/html.6.3.1/utility/build_php
usr
/
local
/
lsws
/
admin
/
html.6.3.1
/
utility
/
build_php
/
📁
..
📄
buildPHP.php
(567 B)
📄
buildProgress.php
(367 B)
📄
buildStep1.php
(1.45 KB)
📄
buildStep2.php
(9.35 KB)
📄
buildStep3.php
(3.46 KB)
📄
buildStep4.php
(4.22 KB)
📄
build_common.template
(565 B)
📄
build_install.template
(4 KB)
📄
build_install_ext.template
(1.72 KB)
📄
build_manual_run.template
(1.05 KB)
📄
build_prepare.template
(5.29 KB)
📄
build_prepare_ext.template
(2.6 KB)
📄
buildconf.inc.php
(1.96 KB)
📄
buildfunc.inc.php
(26.81 KB)
Editing: 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 ""
Upload File
Create Folder