LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 03-25-2008, 03:20 PM   #1
dody1313
Member
 
Registered: May 2007
Posts: 179

Rep: Reputation: 30
apache to support php


HI guys
i am having trouble configuring apache to support PhP files
i am running solaris 10 ( sparcs)
i have apache installed by default and i have php-4.4.5 installed also.

i went to the httpd.conf file and I added these lines but it does not seem to make a difference:

LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php

After i restart apache
i keep getting this error message:

"Cannot load /usr/apache2/libexec/libphp4.so into server: ld.so.1: httpd: fatal: libmysqlclient.so.15: open failed: No such file or directory"

but i check if libphp4.so is in this directory and it is.
 
Old 03-25-2008, 03:35 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
the message *very* clearly states that it's libmysqlclient that's not found... error messages are there for a reason.
 
Old 03-25-2008, 03:37 PM   #3
key4ce
Member
 
Registered: Mar 2008
Location: Eindhoven
Distribution: Free BSD / CentOS/ Windows 2008
Posts: 42

Rep: Reputation: 15
Try run this in ssh:

Code:
cd /usr/apache2/libexec/; mv libmysqlclient.so.* libmysqlclient.so.15
You will then need to restart apache.
 
Old 03-25-2008, 04:16 PM   #4
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
Sorry Acid_kewpie for not being clear enough to what i have wrote.
to tell you
i am new to solaris and i am tryin to learn actually
i realized the error states that libmysqlclient.so.15 is not found. But do i get that by installing a newer version of mysql or should i use the one installed by default in the system?

hi Key4ce,
i tried running the code but i think i have libmysqlclient.so.12 instead of libmysqlclient.so.15
how can i get the libmysqlclient.so.15?
 
Old 03-26-2008, 03:43 AM   #5
key4ce
Member
 
Registered: Mar 2008
Location: Eindhoven
Distribution: Free BSD / CentOS/ Windows 2008
Posts: 42

Rep: Reputation: 15
Just to rename libmysqlclient.so.12 into 15 should solve this.

i do not really know why this occurs. i just know renaming the libmysqlclient.so.12 into .15 fixes the problem.
and it should cause any other issue's (it never did so far)
 
Old 03-26-2008, 04:42 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well it'll be happening because that version of modphp is compiled against that version of mysql. if you don't use mysql at all you'll probably be fine, but if you do you may have issues if you are using what is technically the wrong module. ideally a mysql upgrade would be a better option.
 
Old 03-26-2008, 07:15 AM   #7
key4ce
Member
 
Registered: Mar 2008
Location: Eindhoven
Distribution: Free BSD / CentOS/ Windows 2008
Posts: 42

Rep: Reputation: 15
True..

but we have used that method on some of our systems (under our care) and it never actually gave any issue by just renaming it.
not even a single error..

only thing i know is that by just renaming them will make it work.. even through the first time we done it we had our doubts as far as wrong module versions etc.. which actually didn't have any consequences.
 
Old 03-26-2008, 07:29 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well TBH if that's all you know, remind me to steer clear of your professional server support. And on that note, if you please remove the advert from your signature, it'd be appreciated, as advertising without prior permission is not allowed.
 
Old 03-26-2008, 07:38 AM   #9
key4ce
Member
 
Registered: Mar 2008
Location: Eindhoven
Distribution: Free BSD / CentOS/ Windows 2008
Posts: 42

Rep: Reputation: 15
had a bad day or something?

this forum is about solving the problem isn't it? well that just solves it without any further issue's.
and second.. our signature ain't quite advertising. or even close to it.. as it's just listed IF they can not seem to solve it. rather then .. go there in the first place.. or do you think it does any harm that we help your forum users (for free) in our spare time?.
 
Old 03-26-2008, 07:56 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
I work for a company. Other companies give them money, and in turn they give me moeny. I'm at my desk right now. I could tell you what they do, and how you can give them money in exchange for IT support. But i don't. That's advertising. That's what you're doing. Without formal agreement with Jeremy the site owner, you're not permitted to suggest anyone goes to any commercial operation at any stage, not just if your free taster doesn't work. It seems even stranger as you say "we" instead of "I" as if you have a shared account you're all encouraged to use so as to spread your name...

Last edited by acid_kewpie; 03-26-2008 at 07:58 AM.
 
Old 03-26-2008, 08:09 AM   #11
key4ce
Member
 
Registered: Mar 2008
Location: Eindhoven
Distribution: Free BSD / CentOS/ Windows 2008
Posts: 42

Rep: Reputation: 15
hehe. yes i say we because i share it with one other guy who works at different hours.
and common.. spread your name through linuxquestions.org wile you give them the answer how to solve it?...

and yeah.. thats kind of how a IT support company works indeed.. others give them money, to fix their issue's.. however then your talking business to business and NOT home linux owners who don't need there servers online all the time etc..

but sure.. if you have a issue with us then we just go find another forum.. i mean.. we just do this to help others. our selfs we do not need to help as we get our money from key4ce and not from the people we help for free.

so just say what you want, it's either we stick around here to help the people on this forum, or find another place to help people.

you would think people would at least appreciate us helping for free..
 
Old 03-26-2008, 08:27 AM   #12
dody1313
Member
 
Registered: May 2007
Posts: 179

Original Poster
Rep: Reputation: 30
hi guys
i did try to change the name to .15 and upgrade to mysql-5.0.51
i tried now to restart apache i get this message:

Syntax error on line 213 of /etc/apache/httpd.conf:
Cannot load /usr/apache/libexec/libphp4.so into server: ld.so.1: httpd: fatal: relocation error: file /usr/apache/libexec/libphp4.so: symbol unixd_config: referenced symbol not found

hope u can help me with this issue
 
Old 03-26-2008, 08:34 AM   #13
key4ce
Member
 
Registered: Mar 2008
Location: Eindhoven
Distribution: Free BSD / CentOS/ Windows 2008
Posts: 42

Rep: Reputation: 15
hey dody (sorry about the side tracked convo)

You should have done either one.. however by the looks of it you stumbled up on a php4 bug.
try upgrading php4 to php5. or if you really want php4 on your system remove it, and reinstall it.
 
Old 03-26-2008, 09:10 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
I'm sorry, we're meant to be grateful that you specifically are a member, and as such should want you to advertise? I'm sorry, but whilst as an individual you are *very* welcome, and you're doing a good job that doesn't mean you can advertise without permission. there are thousands and thousands and thousands of other people also helping out, most of which have been around longer, and contributed significantly more, and they don't seem to think they have the right to advertise. Again, as an individual I'm very glad you're here at lq.org, it's great, the more the merrier, but that's you as a person, not you as a company advertising without express consent.
 
Old 03-26-2008, 09:21 AM   #15
key4ce
Member
 
Registered: Mar 2008
Location: Eindhoven
Distribution: Free BSD / CentOS/ Windows 2008
Posts: 42

Rep: Reputation: 15
Well, guess that's it then.

without us adding that to our sig we can not explain it to our boss.
so.. like i said..then we hit other forums.

only thing we are looking for is something fun to do during the low business hours (specially this week after eastern)

Cya
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring apache to load with php support jomy Linux - Networking 1 03-06-2005 08:38 AM
Php support with apache c00l Linux - Software 4 03-02-2005 04:30 PM
Apache 2 Configuration in Webmin -- and PHP support vharishankar Linux - General 4 02-10-2005 04:06 AM
reinstalled apache, php, still no php support SuSE 8.2 hindenbergbaby Linux - Software 1 10-14-2003 01:42 PM
PHP, Apache reconfigure to support Databases aaronsols Programming 0 04-20-2002 02:36 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration