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.

Thread Tools Search this Thread Display Modes
Old 07-02-2021, 04:32 AM
Runner's Avatar
Runner Runner is offline
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:
echo fs_filehandler::NewLine() . "START Apache Config Hook." fs_filehandler::NewLine();
if (
ui_module::CheckModuleEnabled('Apache Config')) {
"Apache Admin module ENABLED..." fs_filehandler::NewLine();
    if (
ctrl_options::SetSystemOption("apache_changed") == strtolower("true")) {
"Apache Config has changed..." fs_filehandler::NewLine();
        if (
ctrl_options::GetSystemOption('apache_backup') == strtolower("false")) {
"Backing up Apache Config to: " ctrl_options::GetSystemOption('apache_budir') . fs_filehandler::NewLine();
"Begin writing Apache Config to: " ctrl_options::GetSystemOption('apache_vhost') . fs_filehandler::NewLine();
    } else {
"Apache Config has NOT changed...nothing to do." fs_filehandler::NewLine();
} else {
"Apache Admin module DISABLED...nothing to do." fs_filehandler::NewLine();
"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

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