Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
6 replies Latest Post - ‏2012-12-14T18:16:06Z by flodstrom
SystemAdmin
SystemAdmin
6902 Posts
ACCEPTED ANSWER

Pinned topic Cannot load libphp5.so after migration to AIX 6.1

‏2012-11-14T15:29:49Z |
I am unable to start apache after migration from AIX 5.3 to 6.1

My configuration now is

AIX 6.1 TL5 Sp2
php 5.2.17
Apache 2.2.20

Error while starting
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/java5
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar
httpd: Syntax error on line 121 of /usr/apache-2.2.20/conf/httpd.conf: Cannot load /usr/apache/modules/libphp5.so into server: \t0509-022 Cannot load module /usr/lib/libgd.a(libgd.so.2).\n\t0509-150 Dependent module /usr/lib/libXpm.a(libXpm.so.4) could not be loaded.\n\t0509-152 Member libXpm.so.4 is not found in archive \n\t0509-022 Cannot load module /usr/apache/modules/libphp5.so.\n\t0509-150 Dependent module /usr/lib/libgd.a(libgd.so.2) could not be loaded.
Please help
Updated on 2012-12-14T18:16:06Z at 2012-12-14T18:16:06Z by flodstrom
  • teletype
    teletype
    27 Posts
    ACCEPTED ANSWER

    Re: Cannot load libphp5.so after migration to AIX 6.1

    ‏2012-11-15T09:02:30Z  in response to SystemAdmin
    On my systems /usr/lib/libgd.a and /usr/lib/libXpm.a are linked to /opt/freeware/lib. Did you check that? Maybe you should reinstall gd an libXpm

    Hope this helps
  • SystemAdmin
    SystemAdmin
    6902 Posts
    ACCEPTED ANSWER

    Re: Cannot load libphp5.so after migration to AIX 6.1

    ‏2012-11-19T07:31:10Z  in response to SystemAdmin
    thanks

    libgd link was fine but relink libXpm.a to /opt/freeware/lib/libXpm.a

    now getting this error.

    httpd: Syntax error on line 121 of /usr/fs615web/apache-2.2.20/conf/httpd.conf: Cannot load /usr/fs615web/apache/modules/libphp5.so into server: rtld: 0712-001 Symbol xmlTextReaderSetup was referenced\n from module /usr/fs615web/apache/modules/libphp5.so(), but a runtime definition\n of the symbol was not found.

    any idea please ?
    • flodstrom
      flodstrom
      115 Posts
      ACCEPTED ANSWER

      Re: Cannot load libphp5.so after migration to AIX 6.1

      ‏2012-11-28T15:07:07Z  in response to SystemAdmin
      > mgang_war wrote:
      > thanks
      >
      > libgd link was fine but relink libXpm.a to /opt/freeware/lib/libXpm.a
      >
      > now getting this error.
      >
      > httpd: Syntax error on line 121 of /usr/fs615web/apache-2.2.20/conf/httpd.conf: Cannot load /usr/fs615web/apache/modules/libphp5.so into server: rtld: 0712-001 Symbol xmlTextReaderSetup was referenced\n from module /usr/fs615web/apache/modules/libphp5.so(), but a runtime definition\n of the symbol was not found.
      >
      > any idea please ?

      Was this Apache built on the previous AIX 5.3 machine (judging from the path's it doesn't look like any familiar pre-built package)?

      How does your environment look like? For example do you have LIBPATH set, etc?

      Also you should not change links in /usr/lib, like the libXpm.a symbolic link. You will break other things when using the freeware version like that.

      Just speculating now but it looks like that Apache environment was built on a somewhat dirty system (custom made changes to system libs, etc.). The best option would probably be to clean up your new 6.1 installation as much as you can (like reversing the changes to symbolic links in /usr/lib, etc.) and then rebuild Apache on the new AIX 6.1 system.

      Alternative you could also look at some pre-built packages.
  • SystemAdmin
    SystemAdmin
    6902 Posts
    ACCEPTED ANSWER

    Re: Cannot load libphp5.so after migration to AIX 6.1

    ‏2012-12-10T15:13:45Z  in response to SystemAdmin
    I was able to resolve issue by linking the path /usr/lib/libXpm.a to /opt/freeware/lib.libXpm.a
    and export LIBPATH.

    Now I have another issue regarding soap and curl. I compiled soap and curl with apache 2.2 and php 5.2.17 on AIX 6.1.

    How do I start apache so that it takes new compiled version of soap and curl. How do I define in httpd.conf and php.ini.

    Kindly give some direction.
    • SystemAdmin
      SystemAdmin
      6902 Posts
      ACCEPTED ANSWER

      Re: Cannot load libphp5.so after migration to AIX 6.1

      ‏2012-12-13T17:29:08Z  in response to SystemAdmin
      oops ..I was starting apache from diffrent path.

      Error still the same

      ./apachectl start
      httpd: Syntax error on line 121 of /usr/fs615web/apache-2.2.20/conf/httpd.conf: Cannot load /usr/fs615web/apache/modules/libphp5.so into server: \t0509-022 Cannot load module /usr/fs615web/apache/modules/libphp5.so.\n\t0509-150 Dependent module /opt/freeware/lib/libgd.a(libgd.so.2) could not be loaded.\n\t0509-152 Member libgd.so.2 is not found in archive \n\t0509-022 Cannot load module /usr/fs615web/apache/modules/libphp5.so.\n\t0509-150 Dependent module /usr/fs615web/apache/modules/libphp5.so could not be loaded.

      please see if you have any solution.
    • flodstrom
      flodstrom
      115 Posts
      ACCEPTED ANSWER

      Re: Cannot load libphp5.so after migration to AIX 6.1

      ‏2012-12-14T18:16:06Z  in response to SystemAdmin
      Well, do you have libgd installed on your system? In case you do have libgd, do you have the correct version of the shared object (libgd.so.2)?

      Anyway, as mentioned earlier I think you are going down the wrong path on this one. You are making dangerous changes on the system in order to get (a what seem to be) an incorrectly built Apache/PhP to work. You may end up spending to much time to maybe get it to work and you still just pushed the problem infront of you.

      If possible in your case I would recommend to ditch the old installation and use a newer pre-built Apache/Php. It has lots of dependencies, but in the end it may be time well spent.

      http://www.perzl.org/aix

      Also, the /usr/lib/libXpm.a symbolic link should point to /usr/lpp/X11/lib/R7/libXpm.a