Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Sqlite doesn't work on VestaCP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
delicousbob
Posts: 6
Joined: Tue May 05, 2015 9:15 am

Sqlite doesn't work on VestaCP
  • Quote

Post by delicousbob » Tue May 05, 2015 9:43 am

Hallo,

is there an easy way to implement sqlite in VestaCP?
I tried to install sqlite on my Debian7 64bit server with apt-get install php5-sqlite and restarted the server,
but it seems not to be loaded by php.

I tried to install TaskBoard on the webspace (http://taskboard.matthewross.me/)
They say that it's only needs PHP5 w/SQLite pdo on the server to get it to work.

Is there a official / proper way to install sqlite on VestaCP?

Thank you and kind regards
Robert
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Sqlite doesn't work on VestaCP
  • Quote

Post by skurudo » Tue May 05, 2015 12:36 pm

Show please output and then we talk about what work or what don't work )

Code: Select all

php -m
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Sqlite doesn't work on VestaCP
  • Quote

Post by skurudo » Tue May 05, 2015 7:54 pm

I think this case about Requirements:
* A web server running PHP with sqlite enabled. Developed and tested under Apache2 running PHP 5.5+.

* The server must have sqlite and php5-sqlite installed, as well as the rewrite and expires Apache modules.

* Note: For Apache v2.3.9 and later, virtual host for a site should have AllowOverride All for TaskBoard root directory. Otherwise, .htaccess files will be completely ignored.]
Top

delicousbob
Posts: 6
Joined: Tue May 05, 2015 9:15 am

Re: Sqlite doesn't work on VestaCP
  • Quote

Post by delicousbob » Wed May 06, 2015 10:12 am

Thanks skurudo for your rapid response :)
First of all - I love this control panel! :) it works so great!

my "php -m" shows:
SpoilerShow
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/sqlite3.ini on line 1 in Unknown on line 0
PHP Warning: Module 'sqlite3' already loaded in Unknown on line 0
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
intl
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
--- > I managed to get Sqlite to work on my system after the activation of the Apache module expires:
here is what i did to get it to work on debian 7x64 with vestacp:

Code: Select all

apt-get install sqlite
apt-get install sqlite3
apt-get install php5-sqlite
service apache2 restart 
//activated the Apache modules:
a2enmod rewrite
a2enmod expires
service apache2 restart
* Note: For Apache v2.3.9 and later, virtual host for a site should have AllowOverride All for TaskBoard root directory. Otherwise, .htaccess files will be completely ignored.
-> i tried to activate AllowOverride All in .htaccess but it after it the page wasn't reachable Error500
without this settings it worked fine :)

I'll test some other scripts that use sqlite if it works at all or just for "Taskboard" and will let you know if it does.
--> Update: Just testet another sqlite app from kanboard.net -> worked fine with sqlite!

Thank you kind regards!
Robert
Last edited by delicousbob on Wed May 06, 2015 10:36 am, edited 1 time in total.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Sqlite doesn't work on VestaCP
  • Quote

Post by skurudo » Wed May 06, 2015 10:34 am

delicousbob wrote:First of all - I love this control panel! :) it works so great!
Thanks, we love this panel too ;-)
delicousbob wrote:I managed to get Sqlite to work on my system after the activation of the Apache module expires:
here is what i did to get it to work on debian 7x64 with vestacp
Robert, one question - do you use php 5.4 on your server or newer version?
Top

delicousbob
Posts: 6
Joined: Tue May 05, 2015 9:15 am

Re: Sqlite doesn't work on VestaCP
  • Quote

Post by delicousbob » Wed May 06, 2015 10:45 am

My php version is 5.4 acording to "php -v"

PHP 5.4.39-0+deb7u2 (cli) (built: Mar 25 2015 08:33:29)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

Thank you for your great work!! It's the best panel out there ;-)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Sqlite doesn't work on VestaCP
  • Quote

Post by skurudo » Wed May 06, 2015 11:03 am

delicousbob wrote:* Note: For Apache v2.3.9 and later, virtual host for a site should have AllowOverride All for TaskBoard root directory. Otherwise, .htaccess files will be completely ignored.
-> i tried to activate AllowOverride All in .htaccess but it after it the page wasn't reachable Error500
without this settings it worked fine :)
I made a copy from TaskBoard github page, don't tested myself this option.
sqllite work fine with Joomla and some scripts, no doubt :)
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Sqlite doesn't work on VestaCP
  • Quote

Post by skurudo » Wed May 06, 2015 11:04 am

delicousbob wrote:Thank you for your great work!! It's the best panel out there ;-)
Thanks ;-) Glad to help you.
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password