Originally posted by: Patraix
Sorry previous post was wrong... Maybe I drank too much coffee and I posted too fast :)
I have now the complete solution, but I have to explain the problem.
The compile script uses "apxs" to ask configuration of the server. Like "apxs -q SBINDIR" to get the bin directory of HTTP Server installation, and (really important in this issue) "apxs -q TARGET" that returns the exec file of the server. The "configure" script executes that:
APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET`
That sets APXS_HTTPD=/usr/IBM/HTTPServer/bin/httpd ... and few line later:
ac_output=`$APXS_HTTPD -v 2>&1 | grep version`
But, in the case that IBM HTTP Server uses by default apachectl and not httpd, for a reason or another "httpd" can't run by default:
root@localhost:/usr/IBM/HTTPServer/bin > ./httpd -v Could not load program ./httpd: Dependent module libaprutil-0.so could not be loaded. Could not load module libaprutil-0.so. System error: No such file or directory
So you have run the following command to set lib path in environment: (dont forget the space after the dot...)
. /usr/IBM/HTTPServer/bin/envvars
Then,
root@localhost:/usr/IBM/HTTPServer/bin > ./httpd -v Server version: IBM_HTTP_Server/6.1 Apache/2.0.47 Server built: Apr 20 2006 07:37:05
But, It doesn't end as easily, note that IBM added the IBM_HTTP_Server version value on the line... So when "expr" try to read value like that:
APACHE_VERSION=`expr $4 \* 1000000 + $5 \* 1000 + $6`
Values 4, 5 and 6 are "6", "1" and "Apache"... (read the script and expr manual to understand this part)
So you need to modify this part also:
APACHE_VERSION=`expr $7 \* 1000000 + $8 \* 1000 + $9`
That's line 6303 regarding my configuration (4 sections like that are used in the script... you have to find which cases is selected related to your configurations...)
Then... Some problems with phar.php (hahah...) on compilation.
Simply add "--disable-phar" to configuration parameters. I think, correct me if i'm wrong, phar is related something like war (java) file but PHP version.... i'm not sure, but I don't need it.
./configure --with-apxs2=/usr/IBM/HTTPServer/bin/apxs --with-config-file-path=/usr/IBM/HTTPServer/conf --enable-maintainer-zts --disable-phar
make...
Et voilà!
#AIX-Forum