LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   apache to support php (https://www.linuxquestions.org/questions/solaris-opensolaris-20/apache-to-support-php-630583/)

dody1313 03-25-2008 03:20 PM

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.

acid_kewpie 03-25-2008 03:35 PM

the message *very* clearly states that it's libmysqlclient that's not found... error messages are there for a reason.

key4ce 03-25-2008 03:37 PM

Try run this in ssh:

Code:

cd /usr/apache2/libexec/; mv libmysqlclient.so.* libmysqlclient.so.15
You will then need to restart apache.

dody1313 03-25-2008 04:16 PM

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?

key4ce 03-26-2008 03:43 AM

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)

acid_kewpie 03-26-2008 04:42 AM

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.

key4ce 03-26-2008 07:15 AM

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.

acid_kewpie 03-26-2008 07:29 AM

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.

key4ce 03-26-2008 07:38 AM

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?.

acid_kewpie 03-26-2008 07:56 AM

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...

key4ce 03-26-2008 08:09 AM

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..

dody1313 03-26-2008 08:27 AM

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

key4ce 03-26-2008 08:34 AM

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.

acid_kewpie 03-26-2008 09:10 AM

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.

key4ce 03-26-2008 09:21 AM

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


All times are GMT -5. The time now is 10:51 PM.