PDA

View Full Version : Need some more extensions to be added


Giorgi
10-21-2007, 03:17 PM
My script requares:

PHP Extension "mysqli"
PHP Extension "pdo_mysql"
PHP Extension "mcrypt"
PHP Extension "curl"

how can I add them to PHP?

Thank you.

mistwang
10-21-2007, 03:52 PM
Please consult the PHP manual regarding respect extensions, you need to add corresponding configuration parameter to enable them when you compile your own PHP binary.

Giorgi
10-21-2007, 04:21 PM
Please consult the PHP manual regarding respect extensions, you need to add corresponding configuration parameter to enable them when you compile your own PHP binary.

So I dont need to install them first and then add parameter?

also, how can I reconfigure PHP? I have php compiled with this tutorial: http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:lsapi

but I dont know how to recompile it :)

mistwang
10-21-2007, 08:54 PM
Step 5 is the configuration, just add the configuration parameter you need. And do steps follow it after the configuration change. Repeat till you get a PHP binary meet you need.

Giorgi
10-22-2007, 12:18 AM
So I need to go source directory (where I downloaded and unpacked php) and configure it there right? and then move binary.

on make

I get:

/usr/bin/ld: cannot find -lltdl
collect2: ld returned 1 exit status
make: *** [sapi/litespeed/php] Error 1

mistwang
10-22-2007, 08:44 AM
mcrypt installation is not complete. Please try

yum install mcrypt-devel

or install mcrypt package from source.

Giorgi
10-25-2007, 12:44 PM
mcrypt installation is not complete. Please try

yum install mcrypt-devel

or install mcrypt package from source.

did so, still I get same error.

mistwang
10-25-2007, 01:23 PM
check this one:
http://marc.info/?l=php-install&m=108030891925096&w=2

brrr
10-26-2007, 07:13 AM
Ahh. Don't you just love Linux sometimes. Not.

Thank God for Google (and mistwang).