LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-20-2009, 07:44 AM   #1
lin*x
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 extesion=blah.so 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 extension=blha.so rather than just adding it into the php.ini file anyways.

Cheers,
M

Last edited by lin*x; 11-20-2009 at 07:46 AM.
 
Old 11-20-2009, 01:04 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You got the wrong end of the stick regarding the
Code:
--with-config-file-scan-dir
http://www.radwin.org/michael/talks/...-lightning.htm

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.


Cheers,
Tink
 
Old 11-21-2009, 08:02 AM   #3
lin*x
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 extension=asfsa.so into the php.in

Does that sound about right?

Cheers,
M
 
  


Reply


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 11:43 AM
Iceweasel Confusions GTrax Debian 7 08-22-2007 01:33 PM
Wine configuration confusions majordmbss Linux - Newbie 3 04-02-2005 09:12 AM
dhcpd confusions kidicarus Linux - Networking 6 11-04-2004 05:19 PM
kernel confusions? fool_inteligent Slackware 3 08-29-2002 04:36 PM


All times are GMT -5. The time now is 06:36 AM.

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