Error at line 111: Directive 'Directive' duplicate

To make it easier to get in touch with us, from the 24th of March 2016 all support tickets will need to be submitted from your Crucial Control Panel.

How to fix error Could not load data from /etc/cl.selector/php.conf: Error at line 111: Directive 'Directive' duplicate

If you get this error when using the Select PHP Version tool in cPanel, there's an easy fix you can do to resolve it.

NOTE: This fix requires accessing your server through SSH as the root account, which can be risky if you're not familiar with doing this. If your VPS includes management, please submit a support ticket through https://control.crucial.com.au/clientarea.php and we'll do this for you. If your service doesn't have management, we can still do this however our sys admins may need to charge for sysadmin time to complete this.

 

How To Fix This Error

SSH in to your server as root and run this command:

 

vi /etc/cl.selector/php.conf

Scroll down and you'll see part of the code that looks ike this

 

0e94496353a3e3e42b1ad170c87401622fe11cde?t=7878b6953576df7087295b5b185e8c2e

 

The problem here is that there needs to be a break (empty line) above each Directive section. Go into edit mode in vim by pressing i, then scroll down and make break/new line to separate each directive. The end result should look like this

 

0d4727c2a953f26c8ce8c0b313e4a1406513bf9e?t=9480c361d937c398e1df0175ce28f154

 

Save the changes by: Press the Esc key > typing :wq > Hit the Enter key. The fix should be instant, no restart needed.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk