View previous topic :: View next topic |
Author |
Message |
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sat Sep 15, 2012 5:54 am Post subject: [SOLVED] multimon.cgi - getting to work |
|
|
I've apcupsd build with 'cgi" flag and the "multimon.cgi" now is in directory:
/usr/libexec/apcupsd/cgi-bin/
So I have created a symlink to my apache cgi-bin: Code: | ln -s /usr/libexec/apcupsd/cgi-bin/multimon.cgi /var/www/localhost/cgi-bin | but I'm getting permission error: Code: | You don't have permission to access /cgi-bin/multimon.cgi on this server. |
I've changed permission of multimon.cgi to "apache"
Code: | ll /usr/libexec/apcupsd/cgi-bin/
total 100
-rwxr-xr-x 1 apache apache 27440 Sep 14 23:38 multimon.cgi | but symlink is owned by "root" what am I doing wrong?
Last edited by Joseph_sys on Tue Apr 30, 2013 3:16 pm; edited 1 time in total |
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Sat Sep 15, 2012 6:32 am Post subject: |
|
|
When I copied all cgi related file from:
/usr/libexec/apcupsd/cgi-bin/
to:
/var/www/localhost/cgi-bin
it works. Why doesn't it work via symlink? |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Tue Apr 30, 2013 3:16 pm Post subject: |
|
|
fbcyborg wrote: | Try to make a physical link instead!
Code: | ln -P /usr/libexec/apcupsd/cgi-bin/multimon.cgi /var/www/localhost/cgi-bin/ |
|
Thanks, yes this worked as well.
Will the files in "/var/www/localhost/cgi-bin/" get updated with a next "apcupsd" upgrade? |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
hdcg Tux's lil' helper
Joined: 07 Apr 2013 Posts: 120
|
|
Back to top |
|
|
Joseph_sys Advocate
Joined: 08 Jun 2004 Posts: 2712 Location: Edmonton, AB
|
Posted: Tue Apr 30, 2013 4:28 pm Post subject: |
|
|
Thank you, yes I think this was my problem: Code: | <Directory "/var/www/localhost/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory> |
Changing it to: Options -Indexes FollowSymLinks
solved the problem.
So it works either way enable in apache "FollowSymLinks" or create a "Hard Link" |
|
Back to top |
|
|
fbcyborg Advocate
Joined: 16 Oct 2005 Posts: 3056 Location: ROMA
|
|
Back to top |
|
|
|