|
Posted by J.O. Aho on 10/11/83 11:57
Advo wrote:
> Basically im trying to connect to a mssql database, and another part of
> my page will send an email.
By default mssql support aren't built into the fedora/redhat php, while "mail"
support should be there by default, requires you have a sendmail compatible
MTA installed.
> I've added the extension for the mssql so assumed i needed to recompile
> php.
Did you do that with an RPM or how did you add it?
> Having not much look tracking down the installation directory of php,
type:
man rpm
you will find how the rpm command works and find that
rpm -ql php
and you get all the files in the php package listed with full paths.
i
> found something which said do: php-mssql and at the end of it doing its
> thing said:
>
> No Match for argument: php-mssql
>
> if i do:
>
> find -name php all i get is:
>
> ./usr/bin/php
> ./usr/lib/php
> ./var/lib/php
>
> i tried:
>
> [root@localhost /]# /usr/bin/php
> PHP Warning: PHP Startup: Unable to load dynamic library
> '/usr/lib/php/modules/ php_mssql.dll' -
> /usr/lib/php/modules/php_mssql.dll: cannot open shared object f
> ile: No such file or directory in Unknown on line 0
The dll is for microsofts operating system, so it won't work, you need a .so
file if your php is built as shared, otherwise you need to recompile the whole
php.
For recompile, install the php srpm (ends with .src.rpm) and then edit your
php.spec file (located in /usr/src/redhat/SPECS) and add the configuration
options for mssql, where after you run:
rpmbuild -ba /usr/src/redhat/SPECS/php.spec
wait and then install the new RPMs you find in /usr/src/redhat/RPMS/i386
//Aho
Navigation:
[Reply to this message]
|