Alfista_SK

Q: Problems with installing PHP extensions on El Capitan Server...

Hi,

 

I have installed the OS X El Capitan with latest Server application and try to install some PHP extensions.

I have installed some after I found that I need to disable root permissions with "csrutil disable".

But my big problem is that I'm unable to install mcrypt, smbclient and gmp.

I have try the same install process like on all others:

 

    1. install SMBClient

phpize

./configure --enable-shared

make

sudo make install

To /Library/Server/Web/Config/php/php.ini add:

  extension=libsmbclient.so

    1. Download from http://php.net

 

php-5.5.xx.tar.bz2 (latest for OS X 5.5.31)

 

Choose the appropriate extension from:     /php-5.5.xx/ext/

 

cd (the extension folder)

phpize

./configure --enable-shared

make

sudo make install

 

To /Library/Server/Web/Config/php/php.ini add:

  extension= (with extension name)

 

sudo apachectl restart

 

 

Please can anybody help me how ti become it working?

Mac OS X (10.7.4)

Posted on Jan 14, 2016 6:09 AM

Close

Q: Problems with installing PHP extensions on El Capitan Server...

  • All replies
  • Helpful answers

  • by John Lockwood,

    John Lockwood John Lockwood Jan 15, 2016 2:53 AM in response to Alfista_SK
    Level 6 (9,349 points)
    Servers Enterprise
    Jan 15, 2016 2:53 AM in response to Alfista_SK

    El Capitan introduced a new security mechanism called SIP which as standard prevents you even with sudo from being able to modify standard Apple directories.

     

    It is therefore best to install open-source code in to a location not protected by SIP and the usual choice is to use /usr/local this leaves Apple's own software unmolested.

     

    However these days I find it far easier to simply create and run such open-source projects in a virtual Linux environment and completely avoid all the Apple pain. You can run a headless Linux virtual machine on a Mac if you wish and have it auto-start at bootup of the Mac.

  • by Alfista_SK,

    Alfista_SK Alfista_SK Jan 15, 2016 3:22 AM in response to John Lockwood
    Level 1 (0 points)
    Jan 15, 2016 3:22 AM in response to John Lockwood

    I know about SIP and I have disabled it before install.

    I have now all correctly installed but it will not work. I also have installed another extensions and they are working.

    Can it be while the SIP is still disabled?