Nie wiem, czy ten problem jest tak rzadki, czy taki prosty do rozwiązania, ale Google na ten temat według mnie jest dosyć małomówne.
Chciałem sobie zainstalować lstat do apache 2 i efekt jest taki, że pod adresem statystyk mam:
Kod: Zaznacz cały
Software error:
Cant open configfile /usr/local/lstat/etc/pages/user.config : Permission denied
at /usr/local/lstat/lib//Misc.pm line 220
BEGIN failed--compilation aborted at /usr/local/lstat/lib//Misc.pm line 220.
Compilation failed in require at /usr/local/lstat/lib//Std_obj.pm line 2.
BEGIN failed--compilation aborted at /usr/local/lstat/lib//Std_obj.pm line 2.
Compilation failed in require at /usr/local/lstat/lib//Plugins.pm line 4.
BEGIN failed--compilation aborted at /usr/local/lstat/lib//Plugins.pm line 4.
Compilation failed in require at /var/www/lstat/lstat.cgi line 10.
BEGIN failed--compilation aborted at /var/www/lstat/lstat.cgi line 10.
For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.
Jest taki temat odnośnie tego błędu http://forum.dug.net.pl/viewtopic.php?id=10117
tylko nie wiem, co z niego wynika, że odmowa dostępu to widzę.
W Google tylko 2 tematy o tym, ten jest drugi:
http://forum.infojama.pl/framehelper.as ... s&t=105017
Zmieniałem prawa do pliku ,,user.config'' przez ,,chmod 775'' i nic to nie dało, jak i przez:
Kod: Zaznacz cały
chown -R marg1
Kod: Zaznacz cały
marg1@siduxbox:~$ sudo a2enmod cgi
Your MPM seems to be threaded. Selecting cgid instead of cgi.
Module cgid already enabled
Kod: Zaznacz cały
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
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>
<Directory "/var/www">
#for execute CGI files
Options ExecCGI FollowSymLinks
AddHandler cgi-script .pl
</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>
</VirtualHost>
Kod: Zaznacz cały
Include /etc/apache2/lstat.conf