Current File : /home/inlingua/public_html/decay_sym/root/var/softaculous/apps/php73/3/install.php |
<?php
/*
function __php73_req(){
}
function __php73_preinstall(){
}
function __php73_postinstall(){
}
*/
function __php73_install(){
global $iapps, $globals;
// Move the CONF Files
copy(__DIR__.'/php_suphp.conf', PHP73_ETC.'suphp.conf');
copy(__DIR__.'/php.ini', PHP73_ETC.'php.ini');
// Make the Extra.ini
copy(PHP73_WAPP.'/extra.ini', PHP73_ETC.'php.d/extra.ini');
}
function __php73_after_save_install(){
global $globals;
scopy(__DIR__.'/php-fpm', PHP73_BIN.'fpmctl');
chmod(PHP73_BIN.'fpmctl', 0755);
// Add the logrotate
if (file_exists('/etc/logrotate.d/php73')){
unlink('/etc/logrotate.d/php73');
}
copy(PHP73_WAPP.'/php73_logrotate', '/etc/logrotate.d/php73');
// Create php session path
mkdir($globals['data_path'].'/php/sessions/php73', 0755, 1);
chmod($globals['data_path'].'/php/sessions/php73', 01733);
chmod($globals['data_path'].'/php/sessions', 0711);
}
function __php73_configure(){
php73_fpm_rebuild();
php73_restart();
}
function __php73_postinstall(){
global $globals, $softpanel;
if(file_exists($globals['var_conf'].'/php73/extensions.ini')){
vexec('cp -f '.$globals['var_conf'].'/php73/extensions.ini '.PHP73_ETC.'php.d/extensions.ini');
}
// It will create extra.ini at /var/webuzo/conf/php
$softpanel->phpc_rebuild_ext('php73');
}