Jump to content

Recommended Posts

Quick question. I installed PHP / Apache / MySQL on Ubuntu 10.04 using tasksel (chose LAMP). I now need to use a specific php extension (pcntl), that is not enabled by default. So, I need to compile php, etc. I know I use: ./configure --enable-pcntl , make , make install. My question is, though, what other configure flags to I need to set so that I get the same functionality as the one that tasksel gave me? Like, don't I need to set a flag to get MySQL support? Finally, once it is compiled fine, and I did already, but am now worrying about the other flags, how do I tell the existing Apache install to use my new binary instead of the current one? Compiling put the new binary in /usr/local/bin, and running php -m from the command line shows that the module is indeed enabled, but using phpinfo(); on a page on the existing site on the server shows that the module isn't enabled, hence it is the wrong binary.

 

If there isn't an easy way to do it, I don't mind reinstalling, but I'd still like to know what flags to set to get the same default behavior, etc.

 

Thanks a lot,

 

Josh

Link to comment
https://forums.phpfreaks.com/topic/218493-changing-a-php-binary/
Share on other sites

You should be able to see the ./configure options for your existing install when you view phpinfo(), make sure you install all dependencies too though.

 

As for installing mod_php, within /etc/apache2/mods-available there is a file called php5.load. Within there you can tell Apache where your *so file is located. Of course, any changes to that file will require Apache to be restarted.

Hmm I can't seem to find a list of what is enabled. Is there not a list like: --a-b --c-d, etc? Or do I have to go down the list and find the flags for each of the things like posix, Reflection, etc?

 

Sorry, I've never compiled php, always used tasksel.

 

Thanks

 

- Josh

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.