LinuxQuestions.org
Visit Jeremy's Blog.
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 01-07-2004, 03:06 PM   #1
Kilka
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Mandrake, Redhat, openBSD, Gentoo
Posts: 84

Rep: Reputation: 15
php DSO stupidity


Hey all,

I'm trying to get an apache 1.x server to go with php and mysql on my bsd machine. I've downloaded the latest php source and configured it like this:

./configure --prefix=/usr/local/php --with-mysql=/usr/local/ --with-apxs=/usr/sbin/apxs

but to not avail.

The apache log shows:

[Wed Jan 7 13:57:29 2004] [notice] Apache/1.3.28 (Unix) PHP/4.3.4 mod_ssl/2.8.15 OpenSSL/0.9.7b configured -- resuming normal operations


so it looks like the modules is being loaded properly, however when I view the page I get a:


Warning: session_start(): open(/tmp/sess_c9f01a766506faf1a28048c934ea06cd, O_RDWR) failed: No such file or directory (2) in /htdocs/navbar.php on line 3



I've also checked the permisssions on tmp, and its 777.


Thanks for you help in advance,
-Kilka
 
Old 01-07-2004, 03:45 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Why wouldn't you use the existing port? Also, what BSD are you using? There are difference you know.
 
Old 01-07-2004, 03:53 PM   #3
Kilka
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Mandrake, Redhat, openBSD, Gentoo
Posts: 84

Original Poster
Rep: Reputation: 15
Thanks Chort,

I'm using openBSD 3.4. I never used the existing port because I couldn't figure out how I was supposed to compile it with apxs and mysql. Is there a config file or is ports supposed to do that automatically ?

-Kilka
 
Old 01-07-2004, 08:36 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
depending on your shell either

# setenv FLAVOR "mysql"
or
# export FLAVOR="mysql"
# make install
# setenv FLAVOR ""
or
# unset FLAVOR

As near as I can tell, apxs is included by default, but MySQL is not. setting FLAVOR to mysql should cause it to be included (I see the depend is in one of the makefiles).
 
Old 01-07-2004, 09:21 PM   #5
Kilka
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Mandrake, Redhat, openBSD, Gentoo
Posts: 84

Original Poster
Rep: Reputation: 15
sort of fixed my own problem, unfortunatly everything is not quite yet fixed.

Apparently you've got to create a tmp folder in /var/www/ because it is chrooted The flavor environmental variable you suggested Chort doesn't seem to work, php is not loaded with mysql support. I've seen some other forums with php4-mysql packages, but there isn't one in the ports tree. There is however an extensions branch, maybe it has something to do with this ?

-Kilka

Thanks again Chort, you've saved me a bunch
 
Old 01-08-2004, 03:30 PM   #6
Kilka
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Mandrake, Redhat, openBSD, Gentoo
Posts: 84

Original Poster
Rep: Reputation: 15
Chort,

Have you ever had a problem when installing something with ports when tar can't find listed files. It's like an env is not set or something. What I mean, is tar can't find files in pkg/PLIST (lists included files) unless I go in and replace the ${var} with the absolute path.

Ever seen this before ? It has become very time consuming.


Regards,
-Kilka
 
  


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
rm stupidity JoeUser11 Linux - Newbie 1 07-12-2005 09:49 PM
How to find out if DSO support is included in Apache installation? john lee Linux - Newbie 3 05-04-2005 03:35 AM
Apache DSO question. gothrog Linux - Networking 4 03-15-2005 10:25 AM
Apache2 and mod_ssl as a DSO Rumblefish Linux - Software 1 12-01-2004 03:25 PM
Compiling PHP WITHOUT dso (--with-apxs) jimieee Linux - Software 0 04-29-2004 06:28 AM

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

All times are GMT -5. The time now is 09:14 PM.

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