probably just to be debian "and I am better than the rest of you" Ubuntu(the fashionable trendy yet slightly mentally unstable younger brother of debian) does it this way :
Code: Select all
ln -s /path/to/real/file /path/to/non-existant/file
cordel wrote:You just need to be sure that the directive "FollowSymLinks" is configured in apache for the zm folder/site.
I am not sure about doing this part though. I can see that zoneminder still thinks it has only a few gigs left on / but I have symlinked it to a terabyte raid conf mounted under /mnt with 600 or so gigs of free space on it .... and three two one googling now for followsymlinks for apache.
Sooo this is more complicated than I thought but the thought of recompiling makes me a little ill. I have moved the events folder from /usr/share/zoneminder to /mnt and created a symlink to it in /usr/share/zoneminder. I checked in /var/log/apache2 and saw this:
Code: Select all
[Mon Dec 21 07:24:03 2009] [error] [client ::1] array (\n 0 => \n array (\n 'file' => '/usr/share/zoneminder/ajax/stream.php',\n 'line' => 51,\n 'function' => 'ajaxError',\n 'args' => \n array (\n 0 => 'socket_sendto( /tmp/zms-457628s.sock ) failed: No such file or directory',\n ),\n ),\n 1 => \n array (\n 'file' => '/usr/share/zoneminder/index.php',\n 'line' => 116,\n 'args' => \n array (\n 0 => '/usr/share/zoneminder/ajax/stream.php',\n ),\n 'function' => 'require_once',\n ),\n), referer: http://localhost/?view=event&eid=9&fid=1&&filter[terms][0][attr]=MonitorId&filter[terms][0][op]=%3D&filter[terms][0][val]=1&filter[terms][1][cnj]=and&filter[terms][1][attr]=DateTime&filter[terms][1][op]=%3E%3D&filter[terms][1][val]=2009-12-21+03%3A05%3A00&filter[terms][2][cnj]=and&filter[terms][2][attr]=DateTime&filter[terms][2][op]=%3C%3D&filter[terms][2][val]=2009-12-21+10%3A04%3A59
df: `events': No such file or directory
df: no file systems processed
df: `events': No such file or directory
df: no file systems processed
df: `events': No such file or directory
df: no file systems processed
df: `events': No such file or directory
df: no file systems processed
df: `events': No such file or directory
df: no file systems processed
so I looked around for the file that should designate the FollowSymLinks option and I think I found it under /etc/apache2/sites-enabled/ file is called 000-default and reads:
Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /usr/share/zoneminder
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /usr/share/zoneminder/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
I followed a tutorial and it stated to change the DocumentRoot in the above file.I couldn't access the site at first, when I originally set up, with the original configuration which use http:localhost/zm so I followed the advice of the tutorial and at least I could get to the web page but now I wonder if it might be part of the problem. I also changed the permissions to the target file on /mnt the one originally moved from /usr/share/zoneminder and at some point it started showing as a symlink to /var/cache/zoneminder/events ????

so now I am totally confused. This is probably not zoneminder specific but I could use a little help if possible.