Skip to content
Snippets Groups Projects
Commit e684e40a authored by alvaro's avatar alvaro
Browse files

removing changes from visualbox

Adding explanation when sqlite db is not writable
parent 8ba5acd4
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ class MetaDb{ ...@@ -34,7 +34,7 @@ class MetaDb{
$results = $db->exec($q); $results = $db->exec($q);
$db = NULL; $db = NULL;
}catch(Exception $e){ }catch(Exception $e){
echo "Can't write in SQLite database. Please check you have granted write permissions to <tt>meta/</tt> and <tt>meta/db.sqlite</tt>."; echo "Can't write in SQLite database. Please check you have granted write permissions to <tt>meta/</tt> and <tt>meta/db.sqlite</tt>.<br/>Also you can check a list of <a href='https://github.com/alangrafu/lodspeakr/wiki/CommonErrors'>common errors</a> and how to <a href='https://github.com/alangrafu/lodspeakr/wiki/Wipe-out-the-database'>wipe out the database</a>'";
trigger_error('Exception exec: '.$e->getMessage(), E_USER_ERROR); trigger_error('Exception exec: '.$e->getMessage(), E_USER_ERROR);
exit(1); exit(1);
} }
......
...@@ -38,15 +38,14 @@ while [ "$everything_ok" != "y" ]; do ...@@ -38,15 +38,14 @@ while [ "$everything_ok" != "y" ]; do
basedir=$aux_basedir basedir=$aux_basedir
ns=$basedir ns=$basedir
##Visualbox doesn't need this echo "(2/3) What local namespace you will use?"
# echo "(2/3) What local namespace you will use?" echo -n "(default '$ns'): "
# echo -n "(default '$ns'): " read -u 1 aux_ns
# read -u 1 aux_ns echo ""
# echo "" if [ "$aux_ns" != "" ]; then
# if [ "$aux_ns" != "" ]; then aux_ns="`echo $aux_ns | sed 's/\/$//'`/" # remove any ending slash and append one.
# aux_ns="`echo $aux_ns | sed 's/\/$//'`/" # remove any ending slash and append one. ns=$aux_ns
# ns=$aux_ns fi
# fi
external="" external=""
extra="" extra=""
...@@ -71,7 +70,7 @@ while [ "$everything_ok" != "y" ]; do ...@@ -71,7 +70,7 @@ while [ "$everything_ok" != "y" ]; do
echo echo
echo "Base URL is $basedir" echo "Base URL is $basedir"
echo "lodspeakr is installed at $basedir$home" echo "lodspeakr is installed at $basedir$home"
# echo "The local namespace is $ns" echo "The local namespace is $ns"
echo "Your SPARQL endpoint is located at $endpoint" echo "Your SPARQL endpoint is located at $endpoint"
echo echo
...@@ -129,7 +128,7 @@ wwwUser=`ps aux|egrep "apache|httpd|www" |egrep -v "grep|root"|awk '{print $1}'| ...@@ -129,7 +128,7 @@ wwwUser=`ps aux|egrep "apache|httpd|www" |egrep -v "grep|root"|awk '{print $1}'|
echo echo
echo " *** ATTENTION ***" echo " *** ATTENTION ***"
echo echo
echo "Visualbox needs the web server to have write permissions for $home/cache/ $home/meta/ $home/components and $home/settings.inc.php." echo "LODSPeaKr needs the web server to have write permissions for $home/cache/ $home/meta/ $home/components and $home/settings.inc.php."
echo echo
echo echo
echo "Common ways of doing this:" echo "Common ways of doing this:"
......
RewriteRule ^$ visualbox/index.php [L] RewriteRule ^$ lodspeakr/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
......
#!/usr/bin/env bash #!/usr/bin/env bash
# #
# Installation script for Visualbox (http://visualbox.org) # Installation script for LODSPeaKr (http://lodspeakr.org)
# Author: Alvaro Graves (alvaro@graves.cl) # Author: Alvaro Graves (alvaro@graves.cl)
# Modified by: Tim Lebo (lebot@rpi.edu) # Modified by: Tim Lebo (lebot@rpi.edu)
# #
# The URL: # The URL:
# http://visualbox.org/install # http://lodspeakr.org/install
# 303 redirects to this script. # 303 redirects to this script.
lodspeakr_repository="git://github.com/alangrafu/visualbox.git" lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git"
home=`basename $lodspeakr_repository | sed 's/.git//'` home=`basename $lodspeakr_repository | sed 's/.git//'`
source ~/.bashrc source ~/.bashrc
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
# https://github.com/alangrafu/lodspeakr/blob/master/utils/ldspk.sh # https://github.com/alangrafu/lodspeakr/blob/master/utils/ldspk.sh
USAGE="Usage:\n" USAGE="Usage:\n"
USAGE=$USAGE"===COMPONENTS==\n" USAGE=$USAGE"===COMPONENTS==\n"
USAGE=$USAGE" Create component:\t\t\t\t\t$0 create uri|type|service foo [html|rdf|ttl|nt|json]\n" USAGE=$USAGE" Create component:\t\t\t\t\t$0 create uri|type|service foo [html|json]\n"
USAGE=$USAGE" Delete component:\t\t\t\t\t$0 delete uri|type|service foo [html|rdf|ttl|nt|json]\n" USAGE=$USAGE" Delete component:\t\t\t\t\t$0 delete uri|type|service foo [html|json]\n"
USAGE=$USAGE" List components:\t\t\t\t\t$0 list components\n" USAGE=$USAGE" List components:\t\t\t\t\t$0 list components\n"
USAGE=$USAGE"\n===DEBUG==\n" USAGE=$USAGE"\n===DEBUG==\n"
USAGE=$USAGE" Turn debug:\t\t\t\t\t\t$0 debug on|off\n" USAGE=$USAGE" Turn debug:\t\t\t\t\t\t$0 debug on|off\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment