I have installed awstats http://www.howtoforge.org/awstats_ispconfig , I I made some changes ( newer versions ). AWStats generates data. When I log into mypage/awstats I can see mypage 2009 06 When I press 06 I am redirected to mypage/awstats/...2009-06.html and I am receiving 500 error - Internal Server Error! The requested URL caused an internal server error I tried to copy files from this folder to my local computer. On my local computer I can see all of them. They are OK. So I think that this is a problem of permissions. Please help ; Jacek
In my log I have [Mon Jun 22 09:34:42 2009] [error] [client 89.76.235.124] (13)Permission denied: exec of '/var/www/web3/web/awstats/awstats.www.mysite.2009-06.html' failed, referer: http://www.mysite/awstats/ [Mon Jun 22 09:34:42 2009] [error] [client 89.76.235.124] Premature end of script headers: awstats.www.mysite.2009-06.html, referer: http://www.mysite/awstats/ mysite means a name of my site
What is the output of this 2 commands? Code: ls -la /var/www/web3/web/awstats/awstats.www.mysite.2009-06.html Code: ls -ld /var/www/web3/web/awstats
Answers are : -rw-r--r-- 1 myuser_name web3 79737 2009-06-22 04:00 /var/www/web3/web/awstats/awstats.www.mysite.2009-06.html drwxr-xr-x 2 myuser_name web3 4096 2009-06-22 04:00 /var/www/web3/web/awstats/
That looks fine. What version did you use? As it's simple html I don't see what could produce the 500 error
It is the newest vesrison from your site RC2. I think I found the reason but I don't know a solution. If I try to access a statistic by : http://www.mysite.pl/awstats/awstats.www.mysite.pl.2009-06.html I receive 500 Error but if I change the name of statistic to awstatswwwmysitepl2009-06.html then I can see it http://www.mysite.pl/awstats/awstatswwwmysitepl2009-06.html So it looks that dots inside names are problems. I configured ISP2 on Mandriva 2009.1 .
ok, I see that your domain has a .pl tld is this right? Maybe your apache is configured to handle .pl file as perl scripts
I did not use a mandriva for ages, so I don't know how it's configured by default. If someone knows Mandriva better than me his is welcome to reply. But try something like: Code: grep -r pl * in you /etc/apache2 directory
without log files the output looks like : Plik binarny modules/mod_version.so pasuje do wzorca Plik binarny modules/mod_env.so pasuje do wzorca Plik binarny modules/mod_status.so pasuje do wzorca Plik binarny modules/mod_mime_magic.so pasuje do wzorca Plik binarny modules/mod_substitute.so pasuje do wzorca Plik binarny modules/mod_imagemap.so pasuje do wzorca Plik binarny modules/mod_dav_fs.so pasuje do wzorca Plik binarny modules/mod_ssl.so pasuje do wzorca Plik binarny modules/mod_autoindex.so pasuje do wzorca Plik binarny modules/mod_authz_host.so pasuje do wzorca Plik binarny modules/mod_optional_hook_export.so pasuje do wzorca Plik binarny modules/mod_dav_lock.so pasuje do wzorca Plik binarny modules/mod_cgid.so pasuje do wzorca Plik binarny modules/mod_example.so pasuje do wzorca Plik binarny modules/mod_usertrack.so pasuje do wzorca Plik binarny modules/mod_speling.so pasuje do wzorca Plik binarny modules/mod_mime.so pasuje do wzorca Plik binarny modules/mod_setenvif.so pasuje do wzorca Plik binarny modules/mod_asis.so pasuje do wzorca Plik binarny modules/mod_suexec.so pasuje do wzorca Plik binarny modules/mod_cern_meta.so pasuje do wzorca Plik binarny modules/mod_authz_user.so pasuje do wzorca Plik binarny modules/mod_case_filter_in.so pasuje do wzorca Plik binarny modules/mod_authz_groupfile.so pasuje do wzorca Plik binarny modules/mod_bucketeer.so pasuje do wzorca Plik binarny modules/mod_authn_alias.so pasuje do wzorca Plik binarny modules/mod_dir.so pasuje do wzorca Plik binarny modules/mod_filter.so pasuje do wzorca Plik binarny modules/mod_optional_fn_import.so pasuje do wzorca Plik binarny modules/mod_case_filter.so pasuje do wzorca Plik binarny modules/mod_rewrite.so pasuje do wzorca Plik binarny modules/mod_unique_id.so pasuje do wzorca Plik binarny modules/mod_vhost_alias.so pasuje do wzorca Plik binarny modules/mod_authz_default.so pasuje do wzorca modules/httpd.exp:ap_replace_stderr_log modules/httpd.exp:ap_explode_recent_localtime modules/httpd.exp:ap_explode_recent_gmt Plik binarny modules/mod_ident.so pasuje do wzorca Plik binarny modules/mod_authz_dbm.so pasuje do wzorca Plik binarny modules/mod_include.so pasuje do wzorca Plik binarny modules/mod_charset_lite.so pasuje do wzorca Plik binarny modules/mod_logio.so pasuje do wzorca Plik binarny modules/mod_optional_hook_import.so pasuje do wzorca Plik binarny modules/mod_alias.so pasuje do wzorca Plik binarny modules/mod_headers.so pasuje do wzorca Plik binarny modules/mod_authn_anon.so pasuje do wzorca Plik binarny modules/mod_authn_default.so pasuje do wzorca Plik binarny modules/mod_cgi.so pasuje do wzorca Plik binarny modules/mod_negotiation.so pasuje do wzorca Plik binarny modules/mod_authn_file.so pasuje do wzorca Plik binarny modules/mod_actions.so pasuje do wzorca Plik binarny modules/mod_echo.so pasuje do wzorca Plik binarny modules/mod_expires.so pasuje do wzorca Plik binarny modules/mod_authz_owner.so pasuje do wzorca Plik binarny modules/mod_ext_filter.so pasuje do wzorca Plik binarny modules/mod_log_config.so pasuje do wzorca Plik binarny modules/mod_info.so pasuje do wzorca Plik binarny modules/mod_log_forensic.so pasuje do wzorca Plik binarny modules/mod_auth_basic.so pasuje do wzorca Plik binarny modules/mod_optional_fn_export.so pasuje do wzorca Plik binarny modules/mod_authn_dbm.so pasuje do wzorca Plik binarny modules/mod_dav.so pasuje do wzorca Plik binarny modules/mod_dumpio.so pasuje do wzorca Plik binarny modules/mod_auth_digest.so pasuje do wzorca modules.d/70_mod_php.conf:# AddType application/x-httpd-php .php modules.d/70_mod_php.conf:# AddType application/x-httpd-php .phtml modules.d/70_mod_php.conf:# AddType application/x-httpd-php-source .phps modules.d/75_mod_perl.conf: # can be displayed, thanks to B::Terse. modules.d/75_mod_perl.conf: # displayed. See the B::TerseSize docs for more info. modules.d/75_mod_perl.conf:#<Location /perl/*.pl> modules.d/75_mod_perl.conf:#<Location /cgi-perl/*.pl> modules.d/45_mod_dav.conf:# The following example gives DAV write access to a directory called modules.d/45_mod_dav.conf:# "uploads" under the ServerRoot directory. modules.d/45_mod_dav.conf:# on the directory where the DavLockDB is placed and on any directory where modules.d/45_mod_dav.conf:#Alias /uploads "/var/www/uploads" modules.d/45_mod_dav.conf:#<Directory "/var/www/uploads"> modules.d/45_mod_dav.conf:# AuthName DAV-upload modules.d/45_mod_dav.conf:# # htdigest -c "/usr/user.passwd" DAV-upload admin modules.d/40_mod_ssl.conf:# Do NOT simply read the instructions in here without understanding modules.d/40_mod_ssl.conf:## All SSL configuration in this context applies both to modules.d/40_mod_ssl.conf:AddType application/x-x509-ca-cert .crt modules.d/40_mod_ssl.conf:AddType application/x-pkcs7-crl .crl modules.d/40_mod_ssl.conf:# WARNING! On some platforms /dev/random blocks if not enough entropy modules.d/40_mod_ssl.conf:# platforms additionally provide a /dev/urandom device which doesn't it is in polish but I think you understand it
Nothing about perl in this module <IfDefine HAVE_PHP5> <IfModule !mod_php5.c> LoadModule php5_module extramodules/mod_php5.so </IfModule> </IfDefine> <IfModule mod_mime.c> # AddType application/x-httpd-php .php # AddType application/x-httpd-php .phtml # AddType application/x-httpd-php-source .phps </IfModule> <IfModule mod_php5.c> <IfModule mod_dir.c> DirectoryIndex index.php index.phtml </IfModule> </IfModule> Maybe you can make a patch to your module and it would replace . with _ ?
This would eventually be a solution, but can you try this : <Directory /var/www/web3/web/awstats > Options -ExecCGI </Directory>
Now the error has chenged : 403 Error- Forbidden! -------------------------------------------------------------------------------- The following error occurred: You are not permitted to access the requested URL ------------------------ I checked in error log and I have there : [Thu Jun 25 11:56:29 2009] [error] [client myip] Options ExecCGI is off in this directory: /var/www/web3/web/awstats/awstats.www.mysite.pl.2009-06.html, referer: http://www.mysite.pl/awstats/
The .pl extension is used for: 1/ index.pl 2/ cgi-scripts 1/ you can delete in Options|DirectoryIndex in webSite in ispconfig 2/ in file /root/ispconfig/scripts/lib/config.lib.php in line around 1445 find the ... if($web["web_cgi"] == 1) $cgi = "Alias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/ AddHandler cgi-script .cgi AddHandler cgi-script .pl"; and change it to: if($web["web_cgi"] == 1) $cgi = "Alias /cgi-bin/ ".$mod->system->server_conf["server_path_httpd_root"]."/"."web".$web["doc_id"]."/"."cgi-bin/ AddHandler cgi-script .cgi"; /* AddHandler cgi-script .pl"; */ In file /etc/apache2/vhosts/Vhosts_ispconfig.conf fnd the domain and delete AddHandler cgi-script .pl Should Help. Now the .pl extension would'nt be cgi handler any more .. I hope ;-) For my site (also .pl) it works! And beware of any ISPconfig upgrades! Best regards, Adam
As a more longterm solution can you try this? <Directory /var/www/web3/web/awstats > RemoveHandler .pl </Directory>