LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-21-2011, 06:33 AM   #1
mzh
Member
 
Registered: Apr 2011
Location: Copenhagen
Posts: 71

Rep: Reputation: 0
Connecting phpBB with SQLite on Mac OS X


Dear Forum
At the risk of being banned for life from LQ, i'd like to ask a question concerning the phpBB installation under Mac OS X, I'm posting here because I believe my problem is not system specific, but rather general. I'm tying to install phpBB and connect it to SQLite. I'm running the installation script in the browser, and it appears php is able to locate SQLite (indicated by "available"). On the next page of the installation form what do I need to enter in the fields?:
Code:
Database type: SQLite
Database server hostname or DSN: /absolute/path/to/DB/file.db
Database server port: [I leave it empty]
Database name: test_tbl
Database username: ??
Database password: ??
Prefix for table in database: phpbb_
This is the message i get:
Code:
Could not connect to the database, see error message below.
not an error
The table should be available:
Code:
me @ ~/Sites/mybboard $ sqlite3 mybboard.db 
SQLite version 3.4.0
Enter ".help" for instructions
sqlite> .tables
test_tbl
sqlite>
It should be writable for my server Apache.
Code:
me @ ~/Sites/mybboard $ ls -l
total 8
-rw-r--r--  1 _www  staff  2048 20 Dez 18:47 mybboard.db
me @ ~/Sites/mybboard $
I'm not quite sure about the following:
- Do I need to have sqlite3 running somewhere in a shell that the connection can be established?
- Does the directory containing the DB need to be writable for www?
- What's the required chmod setting for mybboard.db
- Where/how are "Database username" and "Database password" set? I never had to set a password, when I created the DB, so I understand it should work, when I leave the password field blank, not?

Thanks for any feedback and not banning me from LQ.
 
  


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
LXer: Sqlite-Commander - A ncurses based tool to display the records and tables of a sqlite database LXer Syndicated Linux News 0 01-02-2011 08:11 AM
connecting linux pc mac via ethernet howarddevore Linux - Networking 9 04-18-2008 12:29 AM
Connecting to a Mac Baryonic Being Linux - Networking 5 06-13-2005 05:42 AM
Connecting to Mac Shares unclebyron Linux - Networking 4 06-21-2003 01:16 AM
connecting to Linux from Mac darkangel Linux - Networking 3 02-16-2002 03:03 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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