Page 1 of 1
Adding Sablotron support to Red Hat 9
Posted: Sat Jan 24, 2004 6:52 am
by rohan_p
I'm trying to add Sablotron XSLT support to PHP on Red Hat 9. Normally, this means recompiling with additional flags '--with-xslt', etc. However, I don't want to replace the rpm installation of PHP with a tarball version.
I have thought of building a new rpm with xslt support, but don't know much about it. There's a SPEC file in the PHP download, but it's only a skeleton version, and I couldn't get it to work even in that form.
I notice that there are additional ini files under /etc/php.d. These appear to be for loading modules for extensions like MySQL and LDAP. I was wondering if I could make create one to load Sablotron. However, I haven't had any success.
So could anyone suggest a way of adding Sablotron support that retains the rpm installation?
Posted: Sun Jan 25, 2004 2:37 pm
by Pyrite
Simple, just need to compile php from srpm's (source rpms).
Posted: Tue Jan 27, 2004 9:44 pm
by rohan_p
I'm getting the impression that you might have only read the title or the last line of my post. I was talking about the difficulties that I was having trying to compile it from the source.
What I tried originally was taking the configure parameters that appear in phpinfo(), and trying to compile the tarball version with them. However, one of the parameters is '--with APSX'. Since the APXS file is not included in the RH Apache distribution, this didn't work. I tried extracting the file from the Apache download and placing it under /usr/lib, but the compile process started trying to find files under /usr/local/apache, which of course doesn't exist.
I then tried building an RPM from the tarball, using the SPEC file I extracted. However, I ran into similar difficulties with other references.
Perhaps if you could recommend a good guide on building RPMs it might help.
However, I notice someone did produce am RPM called php_mod_xslt a while back, but it's only available for RH7.
I'm still curious as to how other RPMs that add module support are able to do this without recompiling. That's why it looked to me like the /etc/php.d folder might serve a similar purpose to the extensions section in the Windows version of php.ini. I haven't had any luck trying to do this myself, but I don't have enough knowledge of it.
Posted: Wed Jan 28, 2004 7:11 pm
by Pyrite
I read your whole post man, but I don't use Redhat (thank god) and source rpm's sounded like what you needed to research into. Or someone else might reply, dunno, sorry.
Posted: Thu Jan 29, 2004 8:29 pm
by rohan_p
I looked through the RH php.ini file, and it does in fact mention that the php.d folder can be used to load modules via additional ini files, similar to the Dynamic Extensions section in the Windows version. Unfortunately, I can't find any documentation, and I can't get it to work by trying anything obvious.