Диагностировать проблемы с выбором PHP / CageFS
Форум
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Scott Mutter
  2. Saturday, 31 May 2014
  3.  Subscribe via email
How are you suppose to diagnose PHP Selector (or could be a CageFS issue, I'm not sure) issues when enabled?

I took a cPanel account backup from another server and restored it on another server.  The old server did not have CageFS/PHP Selector, the new server does.  Now PHP is not parsing on the new server.  I'm being asked to download the PHP file and view the PHP code for the account.
Rate this post:
  1. 02.06.2014 03:06:26
  2. # 1
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
If all was donw with cpanel's scripts (pkgacct / restorepkg) and you have cagefs enabled for all by default , then it should enable CageFS and create necessary files for selector. Please show the following:
cagefsctl  --display-user-mode

However I believe disabling / enabling CageFS for this user will help:
cagefsctl --disable USERNAME
cagefsctl --enable USERNAME
  1. 03.06.2014 10:06:29
  2. # 2
Scott Mutter Accepted Answer
Posts: 60
Joined: 23.04.2014
0
Votes
Undo
Somewhat embarrassed on this one.

Turns out the account had some AddHandler directives in their .htaccess file that was interfering with PHP Selector.  Removing those and this worked.  Never thought to look for something like that.
  • 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.