Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd February 2008, 01:24
cmawhorter cmawhorter is offline
Junior Member
 
Join Date: Jan 2008
Location: Detroit, MI, US
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQLite problem with Falko's howto: Installing a Lamp Sys. w/FC6

I basically followed http://www.howtoforge.com/installing..._fedora_core_6 to setup my system and I am having problems using SQLite. I am getting the error:

Code:
PHP Fatal error:  Class 'SQLiteDatabase' not found in /path/to/a.php on line 3, referer: http://www.example.com/
phpinfo shows that pdo and sqlite are both installed but I cannot use SQLite. Anyone have any clues?

Google turns up next to nothing for the error.
Reply With Quote
Sponsored Links
  #2  
Old 2nd February 2008, 19:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

What's in /path/to/a.php?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 2nd February 2008, 21:31
cmawhorter cmawhorter is offline
Junior Member
 
Join Date: Jan 2008
Location: Detroit, MI, US
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

First of all I'd like to thank you for your howto. It was very helpful and I learned a lot.

The path/to/a.php is just a test php file I setup. The code is below.

PHP Code:
<?php
echo 'start<BR>';

try {
$s = new SQLiteDatabase('site/test.sqlite');
}catch(
Exception $ex) {
        
print_r($ex);
        echo 
'error';
}

echo 
'here';
?>
I've verified that PHP can create files with touch and I've even given apache ownership of the test.sqlite file but it doesn't seem to be a permissions thing. The strange part is I can't catch the error. After failing it just dies.
Reply With Quote
  #4  
Old 3rd February 2008, 19:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Is there a php-sqlite module for FC6, and if so, is it installed?
Please search for PHP modules like this:
Code:
yum search php
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 3rd February 2008, 22:20
cmawhorter cmawhorter is offline
Junior Member
 
Join Date: Jan 2008
Location: Detroit, MI, US
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

There is not a php-sqlite module. yum search (php-sqlite,php,sqlite) turns up nothing about php and sqlite together.
Reply With Quote
  #6  
Old 4th February 2008, 15:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

Can you create the follwing PHP file and call it in a browser?
PHP Code:
<?php
phpinfo
();
?>
IS SQLite mentioned somewhere in the output?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 4th February 2008, 21:39
cmawhorter cmawhorter is offline
Junior Member
 
Join Date: Jan 2008
Location: Detroit, MI, US
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here are the relavant parts:

Quote:
additional .ini files parsed
===
/etc/php.d/dom.ini, /etc/php.d/gd.ini, /etc/php.d/imap.ini, /etc/php.d/ldap.ini, /etc/php.d/mysql.ini, /etc/php.d/mysqli.ini, /etc/php.d/odbc.ini, /etc/php.d/pdo.ini, /etc/php.d/pdo_mysql.ini, /etc/php.d/pdo_odbc.ini, /etc/php.d/pdo_sqlite.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlrpc.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini


PDO
===
PDO drivers --- mysql, odbc, sqlite


pdo_sqlite
===
PECL Module version --- 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6 2006/01/01 12:50:12 sniper Exp $
SQLite Library --- 3.3.6
I can PM any interested parties a link to the phpinfo file.
Reply With Quote
  #8  
Old 5th February 2008, 17:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

That's strange...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 5th February 2008, 20:35
cmawhorter cmawhorter is offline
Junior Member
 
Join Date: Jan 2008
Location: Detroit, MI, US
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I used your tutorial to setup both a production and test server and this is happening on both. Have you experienced the same problems with servers you've setup?

Do you know if its possible to ./configure php with sqlite support compiled in from a yum install? I guess my only alternative would be build it myself from source?

Thanks
Reply With Quote
  #10  
Old 6th February 2008, 13:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
 
Default

Quote:
Originally Posted by cmawhorter
Have you experienced the same problems with servers you've setup?
I usually don'T work with SQLite, so I can't tell...

Quote:
Originally Posted by cmawhorter
Do you know if its possible to ./configure php with sqlite support compiled in from a yum install? I guess my only alternative would be build it myself from source?

Thanks
In chapter 5 on http://www.howtoforge.com/virtual-us...-mysql-fedora8 there's a description how to build a Postfix rpm from a source rpm. I think you can adjust it to PHP.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with installation on openSUSE 10.2 douglaslopezt Installation/Configuration 3 24th August 2007 22:04
problems installing lamp on fedora 6 step 7 of HOWTO. cruz HOWTO-Related Questions 3 18th April 2007 19:56
Installing Automatix2 howto formatting problem for new users gregconquest HOWTO-Related Questions 3 4th March 2007 14:22
Problem installing OpenVZ with Debian Etch (2) pjdevries HOWTO-Related Questions 12 2nd March 2007 15:34
Problem installing ISPConfig, then with MySQL... ctroyp Installation/Configuration 7 26th September 2005 16:37


All times are GMT +2. The time now is 04:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.