If your New to Runner or just registered please check your junk mail or spam folder to activate registration . Welcome to Runner ... Movie section will be closing on runner to view movies go to Tell It As It Is for latest movies videos @ https://tellitasitis.ga/

Go Back   Runner > Coding Corner > Php

Php PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-02-2021, 04:32 AM
Runner's Avatar
Runner Runner is offline
Administrator
 
Join Date: Nov 2020
Location: Moose Jaw
Posts: 332
Send a message via Skype™ to Runner
Default Php_Ver ubuntu update

this update needs to be added to /etc/sentora/panel/modules/apache_admin/hooks/OnDaemonRun.hook.php


i had to do a change on line 6 & 8 so php ver will write correctly on dameon run to php ver you choose before wouldn't write to vhost
i'll add the the file in attachment so you can just replace with this one

PHP Code:
<?php
echo fs_filehandler::NewLine() . "START Apache Config Hook." fs_filehandler::NewLine();
if (
ui_module::CheckModuleEnabled('Apache Config')) {
    echo 
"Apache Admin module ENABLED..." fs_filehandler::NewLine();
    
TriggerApacheQuotaUsage();
    if (
ctrl_options::SetSystemOption("apache_changed") == strtolower("true")) {
        echo 
"Apache Config has changed..." fs_filehandler::NewLine();
        if (
ctrl_options::GetSystemOption('apache_backup') == strtolower("false")) {
            echo 
"Backing up Apache Config to: " ctrl_options::GetSystemOption('apache_budir') . fs_filehandler::NewLine();
            
BackupVhostConfigFile();
        }
        echo 
"Begin writing Apache Config to: " ctrl_options::GetSystemOption('apache_vhost') . fs_filehandler::NewLine();
        
WriteVhostConfigFile();
    } else {
        echo 
"Apache Config has NOT changed...nothing to do." fs_filehandler::NewLine();
    }
} else {
    echo 
"Apache Admin module DISABLED...nothing to do." fs_filehandler::NewLine();
}
echo 
"END Apache Config Hook." fs_filehandler::NewLine();

/**
Attached Files
File Type: php OnDaemonRun.hook.php (33.1 KB, 0 views)
__________________
Easy come Easy go
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:25 PM.


Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2020 - 2021, Runner
Ad Management plugin by RedTyger