Jump to content
  • 0

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


EMar

Question

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. 
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0
4 hours ago, EMar said:

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.

 
 

Change path to ini file in your command from /etc/php/7.0/cli/php.ini  to /etc/php/7.1/cli/php.ini if you have installed  mailparse for php 7.1 , the same thing should be done when you install mailparse for php 7.1 and any other php...liike 5.0 ,5.5 ,5.6 etc with difference that lower PHP version will require lower mailparse version due min. requirements every mailparse version require

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...