AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Cannot load libphp5.so after migration to AIX 6.1

    Posted Wed November 14, 2012 10:30 AM

    Originally posted by: SystemAdmin


    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
    #AIX-Forum


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

    Posted Thu November 15, 2012 04:03 AM

    Originally posted by: teletype


    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
    #AIX-Forum


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

    Posted Mon November 19, 2012 02:31 AM

    Originally posted by: 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 ?
    #AIX-Forum


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

    Posted Wed November 28, 2012 10:07 AM

    Originally posted by: flodstrom


    > 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.
    #AIX-Forum


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

    Posted Mon December 10, 2012 10:14 AM

    Originally posted by: 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.
    #AIX-Forum


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

    Posted Thu December 13, 2012 12:29 PM

    Originally posted by: 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.
    #AIX-Forum


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

    Posted Fri December 14, 2012 01:16 PM

    Originally posted by: flodstrom


    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
    #AIX-Forum