Solaris / OpenSolarisThis forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I removed SMClibpng, and now the log file says that libphp5.so is garbled (expected signature 41503230 but saw 41503232). I'll try removing php 5.2.6 and installing 5.2.1 instead, but it could take some time until I can do that.
If you have any other ideas in the meantime, I'll be happy to hear them.
Stop and start apache (not just reload or restart) and it will be fixed.
The latest packages from Sunfreeware work nicely, so there is no need to install previous versions (there also security reasons using the latest php). It's just the misunderstanding with libpng. I guess php, gd etc where compiled using the native solaris libpng and not the one from Sunfreeware. You can see it from the output of ldd:
As you see it uses libpng from /usr/lib (the library from solaris installation), while the other libs (gd, curl, ssl etc) are in /usr/local/lib (the sunfreeware packages).
I disabled and enabled apache, but it still has the garbled issue I mentioned in my previous post. Is there any other way to make it use the sunfreeware package?
I disabled and enabled apache, but it still has the garbled issue I mentioned in my previous post. Is there any other way to make it use the sunfreeware package?
You must stop apache from running. Use "ps -ef|grep apache" and "kill -9 " to kill all the running apache instances and then try to start it again with:
Code:
/usr/local/apache2/bin/apachectl start
From the ldd output I've posted above you can see that libphp5.so uses the sunfreeware packages (all the dependency libraries are located in /usr/local/lib) except for libpng (it's in /usr/lib because it's from the native SUNWpng package). You can try to uninstall and reinstall php and see if it works:
To me it looks like an incompatibility between php and gd, or gd and libpng.
Which php version have you used? If you used the 5.2.6, try the older one 5.2.1 and see if it works. Of course you should uninstall first the installed php.
Hi Guys,
I just registered to confirm that bathory's fix did work!
When you remove just installed libpng, php module will mot complain any more. I did checked it on Solaris 10. What I haven't checked yet is if you need to install libpng (as outlined on suns www.sunfreeware.com) at all with default Sol 10 installation.
Hope this helps any one (it helped me). Cheers. S.
Thanks, bathory, it worked!
Turns out I also used the wrong apache service, but once I killed it and used the one installed on the /usr/local folder everything worked great.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.