Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache php and sqlite
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
legit
Apprentice
Apprentice


Joined: 04 Jan 2006
Posts: 216
Location: Denver, CO

PostPosted: Sat Oct 20, 2007 8:42 pm    Post subject: apache php and sqlite Reply with quote

Hey all,
can anyone explain to me how to get sqlite working with apache and php.

I've got a working apache and php installed and I've added:
Code:

extension=php_pdo.dll
extension=php_pdo_sqlite.dll
extension=php_sqlite.dll

to my php.ini file

Also, I've emerged sqlite

but when i try to access php function sqlite_open() i still get this:
Code:
Fatal error: Call to undefined function sqlite_open() in /local/apache2/htdocs/failsafe/view_requirements.php on line 16


any suggestions?
thanks,
- legit
Back to top
View user's profile Send private message
skunk
l33t
l33t


Joined: 28 May 2003
Posts: 646
Location: granada, spain

PostPosted: Sat Oct 20, 2007 11:28 pm    Post subject: Reply with quote

please, in your php.ini read just before the whole list of dll's:
Code:
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.


what you did was enabling WINDOWS parameters which obviously dosn't apply with gentoo and linux in general...

what you need to do is enable the sqlite use flag, recompile php and reload apache:
Code:
# echo "dev-lang/php sqlite" >> /etc/portage/package.use
# emerge php
# /etc/init.d/apache reload
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum