Re: How to Add a Module
| From: | Nick Peters | Date: | Fri, 03 Dec 2004 14:41:11 +0000 |
| Subject: | Re: How to Add a Module | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203418@lists.php.net to get a copy of this message | ||
Richard Lynch wrote:
> Nick Peters wrote:
>> i currently have a apache and php installed perfectly on my box
>> (slackware 10). However, i have the need to use mcrypt. I have mcrypt all
>> compiled and
>> installed, but how do i add the module to my php install? I have searched
>> a
>> few places on the net and i can't figure it out. Thanks in advance.
>
> If you compiled from source, go back to your PHP source directory, and do:
>
> ./config.nice --with-mcrypt
>
> This should copy all your old settings, which were stored in 'config.nice'
> from the last time, but tack on --with-mcrypt for you this time.
>
> If you installed from an RPM or whatever Slackware uses for package
> management, then you have just stumbled across the main downfall of
> packages: Whomever makes the Slackware PHP package thinks you don't need
> mcrypt and you are stuck with starting over compiling PHP from source to
> get what you want. Sorry.
>
> PS While you are at it, you may want to breeze through the manual and see
> if there's anything else you for sure want to play with in the next few
> weeks, and install that too.
>
> Buuuuuut, don't go hog-wild trying to add in a bunch of stuff you might
> want "some day" -- You'll drive yourself crazy trying to get it all
> installed, and never get to it until you need to upgrade PHP anyway. "I
> been down that road before"
>
I install from source, so that's good. after i run ./config.nice
--width-mcrypt, do i have to copy any file to my php dir? Thanks in
advance.
--
-Nick Peters