Вопрос относительно alt-php / cl-selector
Форум
  1. Forums
  2. General
  3. General Discussion
  1. Tomas Strand
  2. Wednesday, 21 November 2012
  3.  Subscribe via email
I have installed alt-php by doing


yum update cagefs lve lvemanager lve-utils --enablerepo=cloudlinux-updates-testing 
yum groupinstall alt-php --enablerepo=cloudlinux-updates-testing 
cagefsctl --update

But I'm struggling to get it working. For example



cl-selector --sel ect php --version 5.2 --user xxxxx.xxx
ERROR: no user CageFS alternatives directory found. Try to upgrade CageFS


Or



cl-selector --prove --user xxxxx.xxx
No such user


I'm not running any control panel. And should be running the latest version of cagefs.



yum info cagefs
Loaded plugins: fastestmirror, rhnplugin
Loading mirror speeds from cached hostfile
 * cloudlinux-x86_64-server-6: cl-mirror.uk2group.com
Installed Packages
Name        : cagefs
Arch        : x86_64
Version     : 3.8
Release     : 3.el6.cloudlinux
Size        : 1.1 M
Repo        : installed
Fr om repo   : cloudlinux-updates-testing
Summary     : CageFS version 3.8


Any Ideas?
Rate this post:
  1. 21.11.2012 09:11:47
  2. # 1
Richard Hordern Accepted Answer
Posts: 219
Joined: 19.03.2011
0
Votes
Undo
I\'m not running any control panel. And should be running the latest version of cagefs.


I\'m not 100% sure but isn\'t php-selector only for cPanel at the moment ? (being in beta)
  1. 21.11.2012 10:11:16
  2. # 2
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
Is cagefs enabled for that user?
  1. 21.11.2012 10:11:28
  2. # 3
Anton Volkov Accepted Answer
Posts: 47
Joined: 03.04.2012
0
Votes
Undo
PHP selector supports CPanel only (for now).
  1. 21.11.2012 10:11:53
  2. # 4
Igor Savenko Accepted Answer
Posts: 2
Joined: 21.11.2012
0
Votes
Undo
Theoretically you don\'t need any control panels to use php-selector and alt-php. Control panels only make the selection more convinient. You can sel ect versions/modules fr om command line providing you are not in cagefs.
2Thomas. In your xxxxx.xxx username period presents. Note you should specify a username, not a domain.
  1. 22.11.2012 02:11:55
  2. # 5
Tomas Strand Accepted Answer
Posts: 4
Joined: 18.09.2012
0
Votes
Undo
The system accounts are named exactly as the domain names they are hosting. 

cagefsctl --cagefs-status
Enabled




cagefsctl --user-status xxxx.xxx
Enabled




cagefsctl --setup-cl-selector
CloudLinux Selector not supported


maybe cagefsctl --reinit is needed?
  1. 22.11.2012 10:11:02
  2. # 6
Anton Volkov Accepted Answer
Posts: 47
Joined: 03.04.2012
0
Votes
Undo
PHP Selector is for CPanel only. We are planning to add configuration files for PHP Selector in the future releases,
so customers will be able to configure PHP Selector for different control panels.

For now, you can do the following:

Please ensure, that you have latest alt-php, cagefs and lvemanager packages.

Edit line
orig_binaries = { \'cpanel\': {\'/usr/bin/php\' : \'php\', \'/usr/local/bin/php\' : \'php-cli\', \'/usr/local/lib/php.ini\' : \'php.ini\'} }
in file /usr/share/cagefs/cagefslib.py
replace /usr/bin/php with path to CGI version of PHP interpreter (if needed)
replace /usr/local/bin/php with path to CLI version of PHP interpreter (if needed)
replace /usr/local/lib/php.ini with path to your systen\'s global php.ini

Ensure, that all those paths exist in cagefs-skeleton:
ls /usr/share/cagefs-skeleton/usr/bin/php

if not, add those paths to /etc/cagefs/conf.d/custom.cfg file (create new file) and execute \"cagefsctl --upd ate\"

Edit line
cagefslib.control_panel = detect_control_panel()
in file /usr/sbin/cagefsctl, so it becomes the following:
cagefslib.control_panel = \'cpanel\'

Then execute
cagefsctl --se tup-cl-selector

Then restart apache.
  1. 16.01.2013 16:01:00
  2. # 7
IMAMO Accepted Answer
Posts: 1
Joined: 16.01.2013
0
Votes
Undo
Hi,

I just want to ask if it is any progress for php-selector to work on others CP or without CP? 

Anton, I follow your post (replace /usr/local/lib/php.ini with path to your systen's global php.ini ) but on Cloudlinux with Virtualmin CP, system global php.ini is in /etc folder and because of that I get that "error": /etc/php.ini is mounted to CageFS. So CloudLinux Selector will not be available.

Any suggestion?
  1. 23.04.2013 08:04:45
  2. # 8
Przemek Peron Accepted Answer
Posts: 5
Joined: 14.04.2013
0
Votes
Undo
Is the php-selector for DirectAdmin already available? How to activate it?
  1. 23.04.2013 08:04:44
  2. # 9
Igor Seletskiy Accepted Answer
Posts: 1200
Joined: 09.02.2010
0
Votes
Undo
No UI yet, beta expected this week.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
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.