LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-10-2007, 05:06 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
[OpenBSD 4.0] Mediawiki in chroot


I'm getting this error & I understand that I need to symlink some file inside the chroot (/var/www) area but I'm not sure which file to be exact.


Quote:

Warning: dl() [function.dl]: Unable to load dynamic library '/var/www/lib/php/modules/mysql.so' - File not found in /mysite/mediawiki/install-utils.inc on line 17

Could not load MySQL driver! Please compile php --with-mysql or install the mysql.so module.
 
Old 02-10-2007, 08:48 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
It seems that you should be able to do:
Code:
# mkdir /var/www/var
# ln -s /var/www /var/www/var/www
# chgrp -R daemon /var/www/var
 
Old 02-10-2007, 10:39 PM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
chort, thanks for your help.

I applied the changes but it doesn't work. My mediawiki is under /var/www/<mydomain>/mediawiki & "function.dl" is pointing to http://mydomain/mediawiki/config/function.dl.

I also don't have any entry for mediawiki in httpd.conf.

error_log shows nothing. access_log shows this -

Code:
[11/Feb/2007:15:38:15 +600] "GET /mediawiki/config/index.php HTTP/1.1" 200 2872

[11/Feb/2007:15:38:15 +600] "GET /mediawiki/skins/common/images/mediawiki.png HTTP/1.1" 304 -

Last edited by noir911; 02-10-2007 at 10:42 PM.
 
Old 02-11-2007, 01:23 AM   #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
Well, to the point of the error message... are you sure that PHP is actually compiled with MySQL support?

Did you build PHP from Ports, or did you install the package? What's the output of
Code:
$ ls /var/db/pkg |grep php
?
 
Old 02-11-2007, 11:21 PM   #5
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
php was build from packages at the time of installing mediawiki. Here's the output -

Quote:
# ls /var/db/pkg |grep php
php5-core-5.1.4p1
php5-gd-5.1.4
php5-mysql-5.1.4

# pkg_info | grep php
php5-core-5.1.4p1 server-side HTML-embedded scripting language
php5-gd-5.1.4 image manipulation extensions for php5
php5-mysql-5.1.4 mysql database access extensions for php5
what is noticed that if I get out of chroot mode mediawiki works fine. That is, if I do

apachectl stop
httpd -u
apachectl start

it works fine

Last edited by noir911; 02-11-2007 at 11:27 PM.
 
Old 02-12-2007, 12:58 PM   #6
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
Actually, it occurred to me that symlinking may not work, since it's essentially rewriting the directory being looked for (which isn't going to exists inside the chroot). Or at least, I don't think it will work the way I posted it... It might work by making /var/www/var/www a symlink to / (since chroot is going to essentially make /var/www the new /).

I think that might be the answer. Try either:
Code:
# cd /var/www
# mkdir var
# ln -s ../../ var/www
OR
# cd /var/www
# mkdir var
# ln -s / var/www
One of those two should work I think
 
  


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
Graphical Editor for Mediawiki trainpic Linux - Software 1 06-26-2006 11:54 AM
MediaWiki on Core 4 interOperate Fedora 1 08-23-2005 08:18 AM
mediawiki spellchecker jdd Linux - Software 2 08-04-2005 05:26 AM
mediawiki noir911 General 1 07-01-2005 07:18 AM
Path issues with MediaWiki Silvermink Linux - Software 4 02-19-2005 04:54 PM

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

All times are GMT -5. The time now is 01:59 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