Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-20-2009, 06:44 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 15

Rep: Reputation: 1
PHP Installations - and my confusions?

Hi All,

Simple one really i'm sure. Just wondering if it is necessary to re-compile PHP everytime you want to add a new module or if using something like the --with-config-file-scan-dir=/usr/php.d/confs

Or whatever (obviously not that path. but you get the idea...). I'm basically wondering that to add a new module does it really need an php re-compile everytime or is it more that you can compile the module is some method ('shared' perhaps?) and then use the [modulename].ini with etc. So once apache restarted the module is usable. I'm thinking along the lines similar to how apache and DSO's work?

I'm hoping that makes sense... perhaps there is a better how to than the php installtion guide because that didn't seem to talk about this option at all, and did say that a recompile is nessasary everytime... i just wanted to check.

And to find out exactly what this is all about... --with-config-file-scan-dir=[blah]. Because otherwise it looks like something that will be just for adding the words rather than just adding it into the php.ini file anyways.


Last edited by lin*x; 11-20-2009 at 06:46 AM.
Old 11-20-2009, 12:04 PM   #2
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927Reputation: 927
You got the wrong end of the stick regarding the

As for your extensions: you can compile them once, and enable
them via the entries in php.ini ... the config file option won't
do that for you dynamically.

Old 11-21-2009, 07:02 AM   #3
LQ Newbie
Registered: Aug 2009
Posts: 15

Original Poster
Rep: Reputation: 1
hi tink,

Thanks for the reply... so i take it from that.. that you don't have to re-compile php to add another module in by using --with-[mod name]=[maybe a path to compiled module as well], everytime, and that its possible to:-

compile the module (as you would have to anyways) then if module was in an unusual place add that path to the ldconfig file and then just add the into the

Does that sound about right?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Joomla on Linux (redhat) with 2 installations of PHP andrew.wilson Linux - Newbie 4 09-29-2009 10:43 AM
Iceweasel Confusions GTrax Debian 7 08-22-2007 12:33 PM
Wine configuration confusions majordmbss Linux - Newbie 3 04-02-2005 08:12 AM
dhcpd confusions kidicarus Linux - Networking 6 11-04-2004 04:19 PM
kernel confusions? fool_inteligent Slackware 3 08-29-2002 03:36 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration