Blogs Classifieds Downloads FlashChat Gallery Googlemap Invite Friends Links Projects Reviews Wiki
 


Welcome to the pSeries Tech Forums, our free peer-based support site for administrators, engineers and architects working with IBM pSeries servers and software.

You are currently viewing our site as a guest which gives you limited access to view most discussions, articles, tutorials and access our other free features. By joining our community you will be able to collaborate with administrators, engineers and architects charged with designing, delivering or maintaining IBM pSeries server environments.

Founded by a recognized IBM pSeries consultant and IBM Redbook author, pSeries Tech Forums was developed with the single mission of bringing IBM pSeries professionals together into a single self-help community.

Registration is fast, simple and absolutely free to all IT professionals with responsibility for or interest in IBM pSeries servers. We invite you to join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

Our Sponsors
Want to advertise?  


Reply
 
LinkBack Thread Tools
  #1  
Old September 20th, 2007
rmatamoros's Avatar
rmatamoros Offline
Junior Member
 
Join Date: September 2007
Location: Tegucigalpa, Honduras
Posts: 2
MySQL extension for PHP as a module of HTTP

I have been able to integrate PHP 5.2.4 (from php.net) as a module with the HTTP Server that is on the Expansion Pack (V 2.0.47.1). Then I installed the MySQL server (along with the client and devel packages) and the server is running. Now I am trying to add the mysql extension to the PHP module, and here is what I have done so far:

- I ran again the configure utility that comes with the PHP package but this time I added the --with-mysql option. => No problems found
- I ran make to create the PHP modules => No problems found
- I copied the file ./.libs/libphp5.so to the HTTP modules directory (/usr/HTTPServer/modules).
- I tried to start the HTTP server using apachectl start, but I got the following errors:

Cannot load /usr/HTTPServer/modules/libphp5.so into server:
rtld: 0712-001 Symbol mysql_server_init was referenced
from module /usr/HTTPServer/modules/libphp5.so(), but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol mysql_thread_init was referenced
from module /usr/HTTPServer/modules/libphp5.so(), but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol mysql_server_end was referenced
from module /usr/HTTPServer/modules/libphp5.so(), but a runtime definition of the symbol was not found.
rtld: 0712-001 Symbol mysql_thread_end was referenced
from module /usr/HTTPServer/modules/libphp5.so(), but a runtime definition of the symbol was not found.

- I ran ldd libphp5.so and got the following:

libphp5.so needs:
/opt/freeware/lib/mysql/libmysqlclient_r.a(libmysqlclient_r.so.10)
/usr/lib/libiconv.a(shr4.o)
/usr/lib/libpthread.a(shr_xpg5.o)
/usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)
/usr/lib/libz.a(libz.so.1)
/usr/lib/libpthreads.a(shr_comm.o)
/unix
/usr/lib/libcrypt.a(shr.o)

- I checked all the above files existed and had proper permissions.
- I ran nm libphp5.so | grep -E "mysql_server|mysql_thread" and got this:

.mysql_server_end T 268470868
.mysql_server_end t 268470868 40
.mysql_server_init T 268470788
.mysql_server_init t 268470788 40
.mysql_thread_end T 268470908
.mysql_thread_end t 268470908 40
.mysql_thread_id T 268472388
.mysql_thread_id t 268472388 40
.mysql_thread_init T 268470828
.mysql_thread_init t 268470828 40
mysql_server_end U -
mysql_server_end d 538199408 4
mysql_server_init U -
mysql_server_init d 538199400 4
mysql_thread_end U -
mysql_thread_end d 538199412 4
mysql_thread_id U -
mysql_thread_id d 538199560 4
mysql_thread_init U -
mysql_thread_init d 538199404 4


This is where I stopped. I noticed the symbols missing are local data symbols within the same file libphp5.so.

Am I missing something? Is there a way to tell the HTTP server where the runtime definitions of these symbols are located?

Thanks in advance for your help.
Rodolfo Matamoros
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old September 25th, 2007
sitnam's Avatar
sitnam Offline
Junior Member
 
Join Date: September 2007
Posts: 1
Re: MySQL extension for PHP as a module of HTTP

I have the same issue with PHP 5.2.4...

It looks like something changed between PHP 5.2.3 and 5.2.4 because I can compile the PHP module with MySQL for IBMIHS with no problems on PHP 5.2.3 but 5.2.4 gives the same errors on starting httpd.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old March 5th, 2008
s.fida's Avatar
s.fida Offline
s.fida
 
Join Date: June 2006
Location: Diber
Posts: 43
Send a message via MSN to s.fida
Re: MySQL extension for PHP as a module of HTTP

Just use the ZendCore(zend.com) platform for AIX and install the latest mysql (binary version from mysql.com). It will work perfectly.
If you have problem just let me know..


shkumbin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

These are the 100 most searched terms
Search Cloud
0042-001 0042-001 nim 0513-001 the system resource controller daemon is not active 0513-001 the system resource controller daemon is not active. 0514-061 0514-061 cannot find a child device 0514-061 cannot find a child device. 0516-787 0516-787 extendlv 0516-787 extendlv: maximum allocation for logical volume 110000ac aa00e1f3 aio aix aix aio aix freeware aixif_arp_dup_addr b150f22a b181fb53 ba010004 c1001020 d133c002 dacnone dcb47997 dlpar fcp_array_err6 fget_config gnu tar aix gsclvmd gtar aix hi yall hmc root password hmc vmware hscl05db ibm p6 ibm p6 520 libpopt aix libpopt.a libpopt.a(libpopt.so.0) is needed by rsync-2.6.2-1 migratelv mksysb navisphere agent nim server pseries pseriestech rsync aix sc_disk_err4 scan_error_chrp vio server websm xhost file ... powered by Simple Search Cloud


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Powered by vbWiki Pro 1.3 RC5. Copyright ©2006-2007, NuHit, LLC

vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48