HEX
Server: Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 mod_fcgid/2.3.9 PHP/5.4.16
System: Linux dvm.vladweb.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: region-gk.ru (1016)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //proc/72613/root/usr/share/fastpanel2/bin/install-web.sh
function InstallNginxRepository {
    Debug "Configuring nginx repository.\n"
    source /etc/os-release
    Debug "Adding repository file /etc/yum.repos.d/nginx.repo "
    echo -e "[nginx]\nname=nginx repo\nbaseurl=http://nginx.org/packages/$ID/$VERSION_ID/x86_64/\ngpgcheck=0\nenabled=1\n" > /etc/yum.repos.d/nginx.repo  || InstallationFailed
}

function InstallWebService {
    Message "Installing web service: nginx, httpd, php\n"

    InstallNginxRepository
    yum install  -y nginx httpd httpd-itk php php-fpm php-mysqlnd.x86_64 php-gd php-ioncube mod_fcgid mod_rpaf || InstallationFailed
    /usr/local/fastpanel2/fastpanel services configure -f -p nginx
    /usr/local/fastpanel2/fastpanel services handle --name=nginx --action=enable
    /usr/local/fastpanel2/fastpanel services handle --name=nginx --action=restart

    /usr/local/fastpanel2/fastpanel services configure -f -p apache2
    /usr/local/fastpanel2/fastpanel services handle --name=apache2 --action=enable
    /usr/local/fastpanel2/fastpanel services handle --name=apache2 --action=restart

    /usr/local/fastpanel2/fastpanel services handle --name=php5.4-fpm --action=enable
    /usr/local/fastpanel2/fastpanel services handle --name=php5.4-fpm --action=restart

    Success    
}