View previous topic :: View next topic |
Author |
Message |
legit Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/173205023243c05d1560c8f.gif)
Joined: 04 Jan 2006 Posts: 216 Location: Denver, CO
|
Posted: Sat Oct 20, 2007 8:42 pm Post subject: apache php and sqlite |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
skunk l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/11317999223f8841cedbe91.gif)
Joined: 28 May 2003 Posts: 646 Location: granada, spain
|
Posted: Sat Oct 20, 2007 11:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|