Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > General Support > Topic : pre_upgrade hook



Threaded Mode | Print  

 pre_upgrade hook, do they still work? (2 Replies, Read 2102 times)
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
Does setting the php_version in /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/hooks/pre_upgrade.php not work any more?

PHP Code

 function __pre_upgrade($installation){
        global 
$soft$software$globals;
        
// Do stuff here e.g. is as follows
        
if($soft == 26){ /* Do things only if its WordPress */  }
        if (
$soft == 98) {
                
define('php_version'"5.4.37");
        }




Moodle still complains about PHP not being new enough.
IP: --   

pre_upgrade hook
sparek
Group: Member
Post Group: Working Newbie
Posts: 74
Status:
I guess Moodle is 503 now instead of 98.
IP: --   

pre_upgrade hook
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5638
Status:
Hi,

The script id for Moodle 2.8.2 is 503 Moodle 2.6.7 is 98

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 19, 2024, 7:11 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.411