Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > Suggestions > Topic : Auto-detect *actual* version of PHP on customer's account (and install folder)



Normal Mode | Print  

 Auto-detect *actual* version of PHP on customer's account (and install folder) (11 Replies, Read 33524 times)
electric
Group: Member
Post Group: Newbie
Posts: 6
Status:
Hello, We are using CloudLinux PHP Selector to allow our customers to choose what version of PHP they want for their account.    The problem is that Softaculous does not recognize what version of PHP customer has selected, so if (for example) customer tries to install Joomla 3.x.. then Softaculous failes with a "PHP version must be PHP 5.3 or higher" message. But... the customer IS using PHP 5.3 (or PHP 5.4 or PHP 5.5 if selected). I know this can be "fixed" by hard-coding a PHP version into Softaculous, but that is not a good solution because... well, it involves hard-coding a fake PHP version into softaculous.  ("Fake", in that the customer could have any other version installed, regardless of what is hardcoded into the softaculous hook file.)  Perhaps a better solution might be if Softaculous did a simple function call to the phpinfo() command on a test file in the customer's account, to see what is the actual version of PHP running on their account.  For example: - Create test file called "/home/username/public_html/path/to/test_file_phpinfo.php" (with only phpinfo() function.  (Note, this file should be located in whatever folder user selected to install the app in, since it's possible to have multiple versions of PHP in an account, even different versions in different folders. - Call "get_file_contents("/home/username/public_html/test_file_phpinfo.php"). - Parse out the actual PHP version that is running in that folder.
This problem with softaculous is just going to get more frequent as more and more people start using CloudLinux (or other method) of switching PHP for either an entire account or individual folders.  Manual "fixing" of softaculous with a hardcoded version in the hook file is not good... Thanks.
IP: --   


Threads
 electric   Auto-detect *actual* version of PHP on customer's account (and install folder) (11 Replies, Read 33524 times)
    |--  Brijesh   Hi, Sorry for...   on February 1, 2013, 5:27 am
    |--  electric   Hi, Sorry for...   on March 20, 2013, 10:17 am
    |--  electric   Just to clarify,...   on March 20, 2013, 2:40 pm
    |--  Brijesh   Hi, Sorry for...   on March 21, 2013, 4:53 am
    |--  Brijesh   Hi, The hook...   on March 21, 2013, 8:22 am
    |--  electric   Thanks a lot!...   on March 21, 2013, 8:30 am
    |--  electric   Oh.. I am...   on March 21, 2013, 8:32 am
    |--  VincentLeclerc   Our customers are...   on May 21, 2013, 7:02 am
    |--  Brijesh   Hi, Sir can...   on May 21, 2013, 7:15 am
    |--  elecor   Which versions of...   on July 6, 2013, 11:58 am
    |--  Brijesh   Hi, The issue...   on July 8, 2013, 5:40 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 30, 2024, 4:21 pm.

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