theweaselking: (Default)
[personal profile] theweaselking
PHP has zip functionality. It must be enabled at compile-time. This means you need to build PHP from source if you want to use it.

Fine, I can deal with that. I have a lovely fresh-built binary of php with all the options I want.

How the fuck do I tell apache that it should use my nice fresh new binary and not it's old and busted php module? I've tried adding an application handler for files with a php extension and an Action directing it to the fresh new binary. It 404s. This is, in fact, the entirety of the change:
AddHandler php5zip .php5
Action php5zip usr/lib/cgi-bin/php
Where, of course, the new binary is /usr/lib/cgi-bin/php - and yes, it's executable.

And why are there *no* helpful tutorials on this, anywhere on the internet, that I can find?

I don't even really want to use it as CGI. I don't care how I use it. I just want to be able to make Apache use a new version of PHP *in any way* from source that I have built myself. ANY METHOD AT ALL is good, as long as I can make this change, and, in the future, make any other changes I might want to make to php.

(Apache 2, PHP 5.x - I can use any version I want, as long as it's PHP5, Ubuntu 6.06 Server)
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

theweaselking: (Default)theweaselking
Page generated Feb. 6th, 2026 12:52 am