This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Setup using mod_fcgi on apache
bong0 edited this page Jun 29, 2012
·
2 revisions
- you are logged in as the user that runs the php (e.g. via
sudo su -s /bin/bash ffsync
)- the php-user is not your web-server user (e.g. apache, www-data)
- ffsync is a regular user, not allowed to chown on files to other users
- git is installed
- mod-fcgi is loaded (e.g. via
a2enmod fcgi
)
- especially in a shared-hosting environment, do this:
umask 0007
to be sure not to create world readable files - go to your serving directory below DocumentRoot
git clone -b master https://github.com/balu-/FSyncMS.git .
- write a .htaccess for our ffsync directory see the example below.
- go to https://ffs.example.com/ffsync/ and follow setup Sync should be ready now on the server side, now proceed configuring your client.
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ https://ffs.example.com/ffsync/index.php/$1
drwxrwxr-x 4 ffsync ffsync 4.0K .
drwxr-x--x 12 ffsync ffsync 4.0K ..
drwxrwx--- 8 ffsync ffsync 4.0K .git
-rw-rw---- 1 ffsync ffsync 9 .gitignore
-rw-rw-r-- 1 ffsync ffsync 123 .htaccess
-rw-rw---- 1 ffsync ffsync 1.8K README.md
-rw-rw---- 1 ffsync ffsync 4.0K WBOJsonOutput.php
-rw-rw---- 1 ffsync ffsync 9.3K index.php
-rwx------ 1 ffsync ffsync 645 settings.php
-rw-rw---- 1 ffsync ffsync 7.6K user.php
-rw-rw---- 1 ffsync ffsync 6.8K weave_basic_object.php
-rw-rw---- 1 ffsync ffsync 24K weave_storage.php
-rw-rw---- 1 ffsync ffsync 7.8K weave_utils.php
git pull master
rm setup.php # you retained your settings.php dind't you?
killall -u ffsync php-fcgi
or if you have the rights: sudo apache2ctl graceful