LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 10-20-2006, 04:12 PM   #1
blood_omen
Member
 
Registered: Apr 2004
Location: Canada
Distribution: OpenBSD 3.6, Slackware 10.1
Posts: 134

Rep: Reputation: 15
Apache22 and php5 problems


Hello:

First and foremost I want to apologize for starting a new thread if this question has been asked before, but if it has I haven't been able to find it.

Anyway, I just installed FreeBSD 6.1, and updated the ports collection to current, I installed Apache22, php5 and mysql5 without a problem, however, when I start apache is say it cannot find libphp5.so, I looked on my system and that module is nowhere to be found. I googled it and some of the options where to run make deinstall and make reinstall, been there, done that, but the problem persist. I also found another person talking about it was some kind of bug in FreeBSD that libphp5.so didn't compile and needed to update the ports collection and reinstall and the problem would have been fixed. But I just upgraded my ports collection, I even did a portupgrade.

Does anybody know where can I find libphp5.so on my system, or if I'm doing anything wrong, please point it out.

Any help would be greatly aprecciated.

Thatnks in advance
 
Old 10-20-2006, 04:26 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I suspect you installed the cgi instead of the module. What you need to do is reinstall php5 by going to /usr/ports/lang/php5, do "make config" and deselect anything to do with the cgi. After that choose to install the apache module and then do "make install clean".
 
Old 10-21-2006, 05:57 PM   #3
blood_omen
Member
 
Registered: Apr 2004
Location: Canada
Distribution: OpenBSD 3.6, Slackware 10.1
Posts: 134

Original Poster
Rep: Reputation: 15
Thanks for your help, but a question arise, how would I know which options in make config are related to the cli version and which one are not? and where can I find the option to install the apache module?

I looked in the config option for php-extentions and nothing there, perhaps I need to do the make config in /usr/ports/lang/php5 and not in the php5-extentions, am I correct on this one?

Thanks a lot for your help,

Have a nice day
 
Old 10-21-2006, 07:21 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by blood_omen
Thanks for your help, but a question arise, how would I know which options in make config are related to the cli version and which one are not? and where can I find the option to install the apache module?

I looked in the config option for php-extentions and nothing there, perhaps I need to do the make config in /usr/ports/lang/php5 and not in the php5-extentions, am I correct on this one?

Thanks a lot for your help,

Have a nice day
If you re-read my post above, you will note that I mentioned that you need to "make config" in /usr/ports/lang/php5. The options are clearly labeled so you will know which are the cgi options and which options enable the module.
 
Old 10-21-2006, 08:23 PM   #5
blood_omen
Member
 
Registered: Apr 2004
Location: Canada
Distribution: OpenBSD 3.6, Slackware 10.1
Posts: 134

Original Poster
Rep: Reputation: 15
Hey man, thanks a lot, indeed I didn't read your post carefully, I'll try it again on Monday when I get to work, once again, thanks a lot.

Have a nice day
 
Old 10-23-2006, 06:59 AM   #6
blood_omen
Member
 
Registered: Apr 2004
Location: Canada
Distribution: OpenBSD 3.6, Slackware 10.1
Posts: 134

Original Poster
Rep: Reputation: 15
Hey man, I just came to work, at down in fornt of the FreeBSD machine, and did as per instructed, not also did I uncheck everything related to cgi in the config menu, but also unchecked the cli option and enable the apache module, it build the module and now I'm working with apache 22 and php5, thanks a lot.

Have a nice day.
 
Old 10-23-2006, 10:49 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by blood_omen
Hey man, I just came to work, at down in fornt of the FreeBSD machine, and did as per instructed, not also did I uncheck everything related to cgi in the config menu, but also unchecked the cli option and enable the apache module, it build the module and now I'm working with apache 22 and php5, thanks a lot.

Have a nice day.
I'm glad everything is working alright now.
 
  


Reply



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
PHP5 having problems with libmysqlclient alitrix Linux - Software 2 05-23-2007 08:50 AM
Problems upgrading to PHP5 and MySQL 5 ernesto_cgf SUSE / openSUSE 2 04-05-2006 07:06 PM
PHP5 compiling problems Ephracis Linux - Software 10 02-10-2005 01:45 PM
How to/Problems - Apache2+PHP5+PostgreSQL8 schneider Linux - Software 1 02-02-2005 08:19 AM
Problems configuring apache for php5 Besnell Mandriva 3 12-28-2004 09:01 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 08:14 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
Open Source Consulting | Domain Registration