Hey All,

I'm not a server guy, just a programmer. I recently followed some guided instructions on downloading and installing curl, mcrypt, and a few other PHP libraries, all of which installed without much difficulty. However, they're not working with PHP. I was told in order to accomplish this, I need to recompile PHP. My question is, how exactly do I do that to encompass the new libraries I need but also keeping the old ones? All the tutorials I've found on this just seem to get to this point and dwindle. Since I'm not a server guy, this is always where I get lost. Any help would be greatly appreciated!

    After my 3rd time compiling php I started documenting everything I did, because I started from scratch each time...so I had to remember all the old stuff as well as the new. This was my last build:

    ./configure --prefix=/usr/local/php --with-mysql \
    --with-apxs2=/usr/local/apache2/bin/apxs \
    --with-curl=/usr/local/bin/curl \
    --with-mcrypt=/usr/local/lib/libmcrypt

    make
    make install

    I use packages provided by my Linux distro now to maintain my PHP install on my workstation and its much easier and faster.

      phpinfo() should give you the previous compilation options or at least plenty of info. Once you find them, add the new libraries along with the old ones like jazz_snob said above. That's it.

        2 years later
        samudasu wrote:

        phpinfo() should give you the previous compilation options or at least plenty of info. Once you find them, add the new libraries along with the old ones like jazz_snob said above. That's it.

        Please tell me where I should run this ./configure command in my SSH it says unknown command.

        I have found my config options in my phpinfo file i will just att --with-curl

        Do I have to find the PHP install directory? I am having major troubles doing that. I have root access but there are so many folders on my VPS.

        I also need to install ioncube 🙁 nightmare!!!! Argggh

        Anyone?

        Matt

          3 years later
          Write a Reply...