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

Merge branch 'master' of https://github.com/alangrafu/lodspeakr

parents 401ce8d6 7d8ec4b6
No related branches found
No related tags found
No related merge requests found
lodspeakr - Simple Publishing Kit for Linked Open Data lodspeakr - Linked Open Data Simple Publishing Kit
author: Alvaro Graves (alvaro@graves.cl) author: Alvaro Graves (alvaro@graves.cl)
version: 20120223 version: 20120223
...@@ -7,7 +7,7 @@ Simplest Installation ...@@ -7,7 +7,7 @@ Simplest Installation
Just run Just run
bash < <(curl -s http://lodspeakr.org/install) bash < <(curl -sL http://lodspeakr.org/install)
Alternative methods of installation available at Alternative methods of installation available at
......
...@@ -113,20 +113,24 @@ echo "Created new configuration file: $settings_file" ...@@ -113,20 +113,24 @@ echo "Created new configuration file: $settings_file"
echo "" echo ""
echo "WARNING: Copying $root_htaccess as .htaccess in parent directory" echo "WARNING: Copying $root_htaccess as .htaccess in parent directory"
echo "" echo ""
cp $root_htaccess $parent_htaccess echo "RewriteEngine on" > $parent_htaccess
echo >> $parent_htaccess
echo "RewriteRule ^\$ $1/index.php [L]" >> $parent_htaccess
cat $root_htaccess >> $parent_htaccess
echo "RewriteRule ^(.+)\$ $1/index.php?q=\$1 [L]" >> $parent_htaccess
mkdir cache mkdir cache
echo echo
echo " *** ATTENTION ***" echo " *** ATTENTION ***"
echo echo
echo "LODSPeaKr needs the web server to have write permissions for lodspeakr/cache/ and lodspeakr/meta/." echo "LODSPeaKr needs the web server to have write permissions for $1/cache/ and $1/meta/."
echo echo
echo echo
echo "Common ways of doing this:" echo "Common ways of doing this:"
echo " chown -R www-apache lodspeakr/cache lodspeakr/meta (find the name of the apache user in your system)" echo " chown -R www-apache $1/cache $1/meta (find the name of the apache user in your system)"
echo " chmod -R g+w lodspeakr/cache lodspeakr/meta (if you have a group in common with the apache user)" echo " chmod -R g+w $1/cache $1/meta (if you have a group in common with the apache user)"
echo " chmod -R 777 lodspeakr/cache lodspeakr/meta (highly discouraged but useful to test when everything fails. It shouldn't be used in production sites)" echo " chmod -R 777 $1/cache $1/meta (highly discouraged but useful to test when everything fails. It shouldn't be used in production sites)"
echo echo
echo "Please give the server write permissions. Otherwise, LODSPeaKr will not work." echo "Please give the server write permissions. Otherwise, LODSPeaKr will not work."
echo echo
......
...@@ -5,4 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-f ...@@ -5,4 +5,4 @@ RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !.*/index.php$ RewriteCond %{SCRIPT_FILENAME} !.*/index.php$
RewriteRule ^(.+)$ lodspeakr/index.php?q=$1 [L]
#!/usr/bin/env bash #!/usr/bin/env bash
#
# Installation script for LODSPeaKr (http://lodspeakr.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:
# http://lodspeakr.org/install
# 303 redirects to this script.
lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git" lodspeakr_repository="git://github.com/alangrafu/lodspeakr.git"
home=`basename $lodspeakr_repository | sed 's/.git//'` home=`basename $lodspeakr_repository | sed 's/.git//'`
...@@ -17,7 +22,7 @@ fi ...@@ -17,7 +22,7 @@ fi
if [ ! -e "$home" ]; then if [ ! -e "$home" ]; then
$GIT clone $lodspeakr_repository $GIT clone $lodspeakr_repository
cd $home cd $home
./install.sh ./install.sh $home
else else
echo "There is already an existing directory called '$home'. Installation cancelled. Remove it first and try again." echo "There is already an existing directory called '$home'. Installation cancelled. Remove it first and try again."
fi fi
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