PHP Selector: I'm wondering if there is a way to specify the Default PHP version for a specific cPanel Package.
Forum
  1. Forums
  2. General
  3. General Discussion
  1. Leon Harbour
  2. Thursday, 09 March 2017
  3.  Subscribe via email
Hi there :)

I'm wondering if there is a way, workaround, to specify the Default PHP version for a specific cPanel Package.
Without changing it manually once a new account is set up.

Ex:
- Fictional_Package_1 with PHP 5.6
- Fictional_Package_2 with PHP 7.0


I've asked CloudLinux Support and this was their answer. :(

I am sorry, but currently PHPSelector haven't this possibility.
Please feel free to let me know if you have any further questions or notes, as well as if you still need our assistance.
--
Myk***** Pov******* | Level 1 Technical Support Engineer



So I've created a Request at https://cloudlinux.uservoice.com please see the link below. :D
References
  1. https://cloudlinux.uservoice.com/forums/269295-general/suggestions/18565690-request-define-php-selector-default-version-and-o
Rate this post:
  1. 09.03.2017 19:03:32
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Hello,

Unfortunately there is no way to do it automatically. I see you created a feature request at uservoice, that is the right way to go.

But why do you want this feature?
  1. 09.03.2017 19:03:37
  2. # 2
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Actually, there is a way to do it, just requires some bash coding from you.

The /scripts/postwwwacct is used after every account creation
You can write your own script that will detect package name for an account "like **PHP56" and then run:

selectorctl -b 5.6 -u username


More: https://docs.cpanel.net/display/SDK/Guide+to+Standardized+Hooks+-+Script+Hooks
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.