Category Archives: aix

Error while installation of Apache httpd 2.4.2 on AIX OS

We are getting below error while running the make command to build Apache files. We are carrying out the installation on AIX 6.1 OS. The installation is completed upto the configuration step as per the procedure given in the below link: http://httpd.apache.org/docs/2.4/install.html

The error is :

util_pcre.c:48:18: error: pcre.h: No such file or directory
util_pcre.c: In function 'ap_regfree':
util_pcre.c:103: error: 'pcre_free' undeclared (first use in this function)
util_pcre.c:103: error: (Each undeclared identifier is reported only once
util_pcre.c:103: error: for each function it appears in.)
util_pcre.c: In function 'ap_regcomp':
util_pcre.c:129: error: 'PCRE_CASELESS' undeclared (first use in this function)
util_pcre.c:131: error: 'PCRE_MULTILINE' undeclared (first use in this function)
util_pcre.c:133: error: 'PCRE_DOTALL' undeclared (first use in this function)
util_pcre.c:136: warning: implicit declaration of function 'pcre_compile'
util_pcre.c:136: warning: assignment makes pointer from integer without a cast
util_pcre.c:142: warning: implicit declaration of function 'pcre_fullinfo'
util_pcre.c:142: error: expected ')' before 'pcre'
util_pcre.c:142: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:143: error: 'PCRE_INFO_CAPTURECOUNT' undeclared (first use in this function)
util_pcre.c: In function 'ap_regexec_len':
util_pcre.c:180: error: 'PCRE_NOTBOL' undeclared (first use in this function)
util_pcre.c:182: error: 'PCRE_NOTEOL' undeclared (first use in this function)
util_pcre.c:198: warning: implicit declaration of function 'pcre_exec'
util_pcre.c:198: error: expected ')' before 'pcre'
util_pcre.c:198: warning: type defaults to 'int' in declaration of 'type name'
util_pcre.c:221: error: 'PCRE_ERROR_NOMATCH' undeclared (first use in this function)
util_pcre.c:223: error: 'PCRE_ERROR_NULL' undeclared (first use in this function)
util_pcre.c:225: error: 'PCRE_ERROR_BADOPTION' undeclared (first use in this function)
util_pcre.c:227: error: 'PCRE_ERROR_BADMAGIC' undeclared (first use in this function)
util_pcre.c:229: error: 'PCRE_ERROR_UNKNOWN_NODE' undeclared (first use in this function)
util_pcre.c:231: error: 'PCRE_ERROR_NOMEMORY' undeclared (first use in this function)
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

We have also installed the below version GCC compiler for AIX 6.1:-

libgcc-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm

Kindly suggest as to what is missing here that is causing the error.

Redirect to Maintenance Fails on Specific URI – scwebadminapp/index.html

All the potential URIs I've entered go to the Maintenance page except when using the specific scwebadminapp URI here https://servername.domain.com/scwebadminapp/index.html

The rules I'm using are:

   RewriteCond %{DOCUMENT_ROOT}/erp_maintenance.html -f
   RewriteCond %{REQUEST_FILENAME} !/erp_maintenance.html
   RewriteRule ^.*$ /erp_maintenance.html [L]

I'm trying to understand to write a second RewriteCond & RewriteRule that handles RewriteCond %{REQUEST_URI} scwebadminapp ?

Apache not starting after upgrading to a newer version. No errors anywhere

I had a working configuration of Apache 2.2.23 in an AIX 7 server for around 2 years and I am trying to upgrade it to 2.2.29. I followed the official documentation to upgrade minor versions by using the ./config.nice file from the old directory and use it to config and install my new apache. For some unknown reason after it is done when I start apache by ./apachectl -k start it returns nothing (as usual if the config is fine)

However when I do ps -eaf | grep apache nothing is shown, so it didn't run

I then tried ./apachectl -k restart, it says it is not running and the same problem repeats. Since I backed up the old 2.2.23 folder, if I restore the folder back, it can start immediately.

I then further tested by simply installing 2.2.29 without applying any old configuration to it, so only default configuration is used. Much to my surprise the same problem still persist! Tried rebooting and commenting out LoadModules sentences but nothing works.

No errors on console, just one line of error complaining about SSL cache in error_log (which also happens in the working apache, so I think this error is not related), no errors anywhere...

Grateful if anyone could kindly shed some light on this. Much appreciated, thank you for reading.

Notes: OS: AIX 7100-02-02 Working Apache: 2-2-23 Tried versions of Apache: 2-2-29 2-2-31 Openssl version: openssl.base 1.0.1.514

Apache not starting after upgrading to a newer version. No errors anywhere

I had a working configuration of Apache 2.2.23 in an AIX 7 server for around 2 years and I am trying to upgrade it to 2.2.29. I followed the official documentation to upgrade minor versions by using the ./config.nice file from the old directory and use it to config and install my new apache. For some unknown reason after it is done when I start apache by ./apachectl -k start it returns nothing (as usual if the config is fine)

However when I do ps -eaf | grep apache nothing is shown, so it didn't run

I then tried ./apachectl -k restart, it says it is not running and the same problem repeats. Since I backed up the old 2.2.23 folder, if I restore the folder back, it can start immediately.

I then further tested by simply installing 2.2.29 without applying any old configuration to it, so only default configuration is used. Much to my surprise the same problem still persist! Tried rebooting and commenting out LoadModules sentences but nothing works.

No errors on console, just one line of error complaining about SSL cache in error_log (which also happens in the working apache, so I think this error is not related), no errors anywhere...

Grateful if anyone could kindly shed some light on this. Much appreciated, thank you for reading.

Notes:

OS: AIX 7100-02-02

Working Apache: 2-2-23

Tried versions of Apache: 2-2-29 2-2-31

Openssl version: openssl.base 1.0.1.514

EDIT: Further testing shows that if I configure the apache with nothing... (only ./configure --prefix=/opt/apache2) then at least it can start.

But when I use my config.nice from my old build which has the following:

"./configure" \

"--prefix=/opt/apache2" \

"--enable-rewrite=shared" \

"--enable-speling=shared" \

"--enable-ssl" \

"--enable-proxy" \

"--enable-proxy-ajp" \

"--enable-proxy-connect" \

"--enable-proxy-ftp" \

"--enable-proxy-http" \

"--enable-vhost-alias" \

"--enable-headers" \

"[email protected]"

it cant start again...

apache 2.2 over aix 7.1 couldn’t load module

i received this error when i am starting apache server

httpd: Syntax error on line 61 of /app/oracle/WebTierWL/apache-2.2.21/conf/httpd.conf: Cannot load /app/oracle/WebTierWL/apache-2.2.21/modules/mod_authn_dbm.so into server: \t0509-022 Cannot load module /app/oracle/WebTierWL/apache-2.2.21/modules/mod_authn_dbm.so.\n\t0509-026 System error: Cannot run a file that does not have a valid format.

Connecting to DB2 with PHP via Apache on AIX7.1

I am trying to understand what do this message mean! I have tried googling it but could not find anything much helpful.

I am trying to include 2 php extensions, db2_ibm.so and pdo_ibm.so, in the php.ini (I have edited that php.ini file which was shown in <?php phpinfo() ?>).

In the PHP cli version, using the command php -m, I can see that the modules are being rightly loaded. I can see the versions ibm_db2 1.9.1 and pdo_ibm 1.3.2

However, when I try to do the same via Apache it would not connect. I moved on and looked at the Apache error logs and found the following.

For db2_ibm.so, I got the following error:

PHP Warning:  PHP Startup: Unable to load dynamic library 
'/opt/freeware/lib/php/modules/ibm_db2_5.2.1.so'
- rtld: 0712-001 Symbol executor_globals was referenced 
from module /opt/freeware/lib/php/modules/ibm_db2_5.2.1.so(), 
but a runtime definition of the symbol was not found.
in Unknown on line 0

And for pdo_ibm.so:

PHP Warning:  PHP Startup: pdo_ibm: Unable to initialize module
Module compiled with module API=20060613, debug=0, thread-safety=0
PHP    compiled with module API=20060613, debug=0, thread-safety=1
These options need to match in Unknown on line 0

I can understand that there is some problem with defining PATH but not sure how to go about the problem.

Following Versions are installed on my system (AIX 7.1):

  • PHP 5.2.17
  • Apache 2.2.16
  • DB2 9.7.4

I have installed Apache and PHP them from RPM packages.

[The reason why I was going for the older versions of PHP and Apache is because of the fact that the extension files ibm_db2.so and pdo_ibm.so that were found with DB2 Client were compatible only with the lower versions of PHP.]

Please do suggest some solution soon as I am stuck here for days now. Thanks a lot!

Installing PHP and Apache on AIX7.1

I am installing PHP 5.2 on AIX7.1. I have already installed Apache 2.4.4.

PHP-cli is working perfectly fine. But when I try to restart apache, using

/opt/freeware/sbin/apachectl restart

so that I could finally run PHP with Apache, I get the following error.

httpd: Syntax error on line 525 of /opt/freeware/etc/httpd/conf/httpd.conf: 
Syntax error on line 6 of /opt/freeware/etc/httpd/conf/extra/httpd-php.conf: 
Cannot load /opt/freeware/lib/httpd/modules/libphp5.so into server: rtld: 0712-001 Symbol ap_log_error was referenced
      from module /opt/freeware/lib/httpd/modules/libphp5.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol ap_log_rerror was referenced
      from module /opt/freeware/lib/httpd/modules/libphp5.so(), but a runtime definition
      of the symbol was not found.
rtld: 0712-001 Symbol ap_get_server_version was referenced
      from module /opt/freeware/lib/httpd/modules/libphp5.so(), but a runtime definition
      of the symbol was not found.\nrtld: 0712-001 Symbol unixd_config was referenced
      from module /opt/freeware/lib/httpd/modules/libphp5.so(), but a runtime definition
      of the symbol was not found.

I am kind of lost here. I have checked the relevant folders and the file libphp5.so was there.

Any help from you would be very much helpful for me.

Thanks a lot.

Installing Apache2.2 php5.2 on AIX7.1

I wanted to install Apache 2.2.X and PHP 5.2.X on AIX 7.1 using RPMS.

I have been searching over Internet for a long time. And with these RPM Dependency Hell problem I am kind of stuck now.

Can somebody suggest me some good documentation to do this job! It would be extremely helpful.

Thanks.