Jump to content
  • 0

Centos 7 - PHP 7.1.15 where is cli/php.ini located?


Question

Posted

Hi,

Centos 7 - PHP 7.1.15 - CWP 7.

I'm following this tutorial to install mailparse link

But I got stuck at:

CONFIGURATION:
  - add extension =mailparse.so to php.ini under cli and fpm (in dynamics extensions)
  sudo nano /etc/php/7.0/cli/php.ini
 

sudo nano /etc/php/7.0/fpm/php.ini

I can't find the path to the cli and fmp ini files. I mean etc/php doesn't exist at this location.
But I can see cli is running:

[root@me/]# php --version                                                                              
PHP 7.1.15 (cli) (built: Mar  9 2018 07:04:44) ( NTS )                                                       
Copyright (c) 1997-2018 The PHP Group                                                                        
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies                                                
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.0, C
opyright (c) 2002-2018, by ionCube Ltd. 

3 answers to this question

Recommended Posts

  • 0
Posted

Thanks but I know the main php ini is at /etc/php.ini

As far as i know I need the paths to 

/etc/php/7.0/cli/php.ini
and
/etc/php/7.0/fpm/php.ini

Which don't exist at these locations.

Maybe they're not installed fully or they exist at a different location.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...