Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-08, 00:34:37

Author Topic: PHP error in CentOS  (Read 1529 times)

0 Members and 1 Guest are viewing this topic.

Offline sandipcd

  • Senior Member
  • *
  • Posts: 163
  • Karma: +0/-0
    • View Profile
PHP error in CentOS
« on: 2016-04-13, 08:02:39 »
I am using drush for drupal in putty in CentOS 6. Though this is not related to Kloxo-MR, but if you can help it will be awesome.
After installing drush, when I am giving drush command I am getting the following error. Can you please help me to solve this problem?

Code: [Select]
The following restricted PHP modes have non-empty values:            [error]
disable_functions. This configuration is incompatible with drush.
Please check your configuration settings in /etc/php.ini or in your
drush.ini file; see examples/example.drush.ini for details.
exec() has been disabled for security reasons preflight.inc:380      [warning]
exec() has been disabled for security reasons preflight.inc:425        [warning]
exec() has been disabled for security reasons preflight.inc:380        [warning]
exec() has been disabled for security reasons preflight.inc:380        [warning]
 PHP configuration      :  /etc/php.ini
 PHP OS                 :  Linux
 Drush script           :  /usr/local/bin/drush
 Drush version          :  8.0.5
 Drush temp directory   :  /tmp
 Drush configuration    :
 Drush alias files      :

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP error in CentOS
« Reply #1 on: 2016-04-13, 11:15:12 »
You can set 'disable functions' for php for certain clients. Go to 'admin > php configure > advanced php configure' for admin and 'admin > clients > (select certain client) > php configure > advanced php configure'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 163
  • Karma: +0/-0
    • View Profile
Re: PHP error in CentOS
« Reply #2 on: 2016-04-21, 12:03:14 »
I have remove all other text and add "" in disable function under advanced php configure, for one of my client. And given the command 'service httpd restart'. But still getting this error.

Can you please help ?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP error in CentOS
« Reply #3 on: 2016-04-21, 12:19:47 »
Just make blank content in 'disable functions'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 163
  • Karma: +0/-0
    • View Profile
Re: PHP error in CentOS
« Reply #4 on: 2016-04-21, 12:32:04 »
I have tried to save it blank. Bit it is not saving and always showing all the text.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP error in CentOS
« Reply #5 on: 2016-04-22, 02:42:17 »
Try just exists 'show_source'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 163
  • Karma: +0/-0
    • View Profile
Re: PHP error in CentOS
« Reply #6 on: 2016-04-23, 07:12:11 »
Written only 'show_source'. Then executed the command - 'sh /script/fixphp' and 'sh /script/restart-services'. But still same error is showing when giving the drush command. Any suggestion ?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP error in CentOS
« Reply #7 on: 2016-04-25, 02:38:46 »
Make sure setup for 'advanced php configure' under client where using drush.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline sandipcd

  • Senior Member
  • *
  • Posts: 163
  • Karma: +0/-0
    • View Profile
Re: PHP error in CentOS
« Reply #8 on: 2016-04-25, 04:23:50 »
How to setup 'advanced php configure' under client where using drush ?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: PHP error in CentOS
« Reply #9 on: 2016-04-25, 05:16:09 »
Check drush install in website and this website under certain client (think 'admin' as client for this purpose).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.039 seconds with 16 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM