Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enabling XSL support in PHP
#1

Hey all, fresh noob here.

 

I run my own LAMP server that I use as a staging ground to my job's production server. They've been more or less the same in functionality, until now. The production server has XSL support enabled, and mine doesn't. When I look at the XSL functions manual (http://www.php.net/manual/en/ref.xsl.php) they state that PHP needs to be compiled with --with-xsl for XSL support. Yet when I look at phpinfo for the production server, I don't see that. But that's really not the point...

 

On my own server, I installed PHP with an RPM, and apparently that RPM didn't include XSL support. How can I enable XSL support? Does it require recompiling PHP? I actually tried this method, using the same configure line from the production server, but ran into problems with it looking for apxs and not finding it.

 

I'm a bit over my head, and this isn't the first time this kind of problem has crept up for me. I'm hoping somebody can offer me some insight or get me headed in the right direction. One of my fears is that I'm over complicating the process. The other fear is that is is as complicated as it seems.

 

Configure for production server: [/url]http://pastebin.com/938529

Configure for staging server: [url=http://pastebin.com/938530]http://pastebin.com/938530

 

T

Reply
#2

Quote:On my own server, I installed PHP with an RPM, and apparently that RPM didn't include XSL support. How can I enable XSL support? Does it require recompiling PHP? I actually tried this method, using the same configure line from the production server, but ran into problems with it looking for apxs and not finding it.Configure for production server: [/url]http://pastebin.com/938529

Configure for staging server: [url=http://pastebin.com/938530]http://pastebin.com/938530

 

T
 

yes if you try to install the rpm it is a preconfigured package, if you want something non-standard then you'll have to compile the src and include the correct switches

 

cheers

Reply
#3

Quote:yes if you try to install the rpm it is a preconfigured package, if you want something non-standard then you'll have to compile the src and include the correct switches 

cheers
 

Thanks much for the rapid response. Your answer is what I feared but I have to ask one more question: does this mean I need to recompile PHP and Apache or is there a way for me to get away with just compiling PHP?

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)