When I install interworx it install by default the php 4.3.11 rpm.
It installs the cgi version of php and add the module to apache.
But is there the cli version of php ? I didn’t find the sapi directory.
The strange part is I have a php-cli.ini file, so I should have the cli version of php somewhere ?
I need the cli version to perform some server scripts. Also I think that there will be no major difference running a CRON job using a CLI php version or a CGI version (I think about the impacts that might have for our customers using a php script in a cron job)
I thought by default it was the cli version which was copied in /usr/bin when you use the APXS sapi
If a module SAPI is chosen during configure, such as apxs, or the --disable-cgi option is used, the CLI is copied to {PREFIX}/bin/php during make install otherwise the CGI is placed there. So, for example, if --with–apxs is in your configure line then the CLI is copied to {PREFIX}/bin/php during make install.
I’ve actually done this mod on a recent PHP5 RPM. It’s located here and should be pretty easy to backport the changes to php4 if you wanted too Pascal. I’ll do it as well at some point for PHP4.
patch -p0 -s
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
misordered hunks! output would be garbled
129 out of 286 hunks FAILED – saving rejects to file configure.rej
error: Bad exit status from /var/tmp/rpm-tmp.59957 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.59957 (%prep)
This patch update the php configure ? for arch 64 bits ?