Internal Server Error Awstats.pl
you by: eldy, manolamancha Summary Files Reviews Support Wiki Mailing Lists Code Cvs Tickets ▾ Support Requests Bugs Feature Requests Patches News Discussion Donate Create Topic Stats Graph Forums Developers 738 Open Discussion 10062 Help Formatting Help awstats returns 500 internal server error onl Forum: Open Discussion Creator: Anonymous Created: 2012-05-20 Updated: 2012-10-11 Anonymous - 2012-05-20 Hi guys, I've installed awstats on centos. I can visit http://www.mysite.com/awstats/a wstats.pl?config=mysite with no problem, but when I visit the static html there, it returns 500 internal server error, for example: 1)generate static html file: perl ./awstats.pl -config=mysite -output -staticlinks > awstats.mysite.html 2)http://www.mysite.com/awstats/awstats.mysite.html returns 500 internal server error. Here's the configuration file: Alias /awstats/icon/ /var/www/awstats/icon/ ScriptAlias /awstats/ /var/www/awstats/
10, 2016: iRedMail-0.9.5-1 has been released. How to migrate to a new iRedMail server More documents: http://www.iredmail.org/docs/. Subscribe to our mailing list so that you won't miss announcements, updates, bug fixes of iRedMail. [ Closed ] AwStats Internal Server error iRedMail →iRedMail Support →AwStats Internal Server error Pages 1 You must login or register to post a reply Topic RSS feed Posts: 12 1 Topic by QuantumPhysGuy 2014-02-25 21:05:10 QuantumPhysGuy Member Offline Registered: 2014-02-25 Posts: 7 Topic: AwStats Internal http://sourceforge.net/p/awstats/discussion/43428/thread/d3b07e0d Server error ==== Required information ====- iRedMail version: v0.8.6- Store mail accounts in which backend (MySQL): - Linux/BSD distribution name and version: Ubuntu 12.04.4 LTS (Server)- Related log if you're reporting an issue: apache2 error.log====I am trying to access awstats but I keep an error code 500 (Internal Server Error) after logging in.The apache error.log file states:[Tue http://www.iredmail.org/forum/topic6245-iredmail-support-awstats-internal-server-error.html Feb 25 07:27:46 2014] [error] Failed to run mod-auth-mysql for /awstats/awstats.pl?config=web: No database name specified [Tue Feb 25 07:27:46 2014] [crit] [client X.X.X.X] configuration error: couldn't check user. Check your authn provider!: /awstats/awstats.plI took a look at the awstats.conf file in /etc/apache2/conf.d but it seems fairly generic and compared it to a working awstats.conf file and they look the same. Where can I find the database information at for awstats to confirm that it is configured correctly? ---- Urgent issue? Get fast and profressional supppport from iRedMail developers. 2 Reply by camel1cz 2014-02-25 22:41:40 camel1cz Member Offline From: Czech Republic Registered: 2013-04-20 Posts: 203 Re: AwStats Internal Server error I thing, awstats are not part of iRedMail package - anyway it's clear you have wrong setup of authentication.Locate the configuration of /awstats directory in apache2 configs (under /etc/apache2) and adjust the mod-auth-mysql setup (basically you need to tell where in mysql can apache find the username/password pairs for authentication).You can inspirate yourself in e.g. cluebringer setup - file /etc/a
Internal Server Error If this is your first visit, be sure to check out the FAQ http://forum.directadmin.com/showthread.php?t=43333 by clicking the link above. You may have to register https://swinny.net/Computing/Internal_Server_Error/ before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 1 of 1 Thread: AWStats Internal Server Error Thread internal server Tools Show Printable Version Email this Page… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 04-10-2012,02:43 AM #1 martinostlund View Profile View Forum Posts Verified User Join Date Feb 2011 Posts 13 AWStats Internal Server Error Hello, I just enabled AWStats on my DirectAdmin server and internal server error are now trying it out. Im running suPHP. When visiting the url with /awstats I get a 'Internal Server Error'. Viewing the different logs gives me this info: Site error log (/var/log/httpd/domains/domain.com.error.log Code: Tue Apr 10 11:36:20 2012] [error] [client x.x.x.x] fopen: Permission denied [Tue Apr 10 11:36:20 2012] [error] [client x.x.x.x] Premature end of script headers: awstats.pl And /var/log/httpd/suexec_log Code: [2012-04-10 11:36:20]: uid: (1051/a589214) gid: (1053/1053) cmd: awstats.pl My permissions are as follows: Code: /home/a589214/domains/domain.com drwxr-xr-x 3 a589214 a589214 4096 2012-04-10 11:31 awstats Code: web1:/home/a589214/domains/domain.com/awstats# ls -al drwxr-xr-x 3 a589214 a589214 4096 2012-04-10 11:40 . drwx--x--x 8 a589214 a589214 4096 2012-04-10 11:31 .. -rw-r--r-- 1 root root 5846 2012-04-10 11:40 awstats.domain.com.1204.alldomains.html -rw-r--r-- 1 root root 8621 2012-04-10 11:40 awstats.domain.com.1204.allhosts.html -rw-r--r-- 1 root root 6886 2012-04-10 11:40 awstats.domain.com.1204.allrobots.html -rw-r--r-- 1 root root 9007 2012-04-10 11:40 awstats.domain.com.1204.browserdetail.html -rw-r--r-- 1 root root 5462 2012-04-10 11:40 awstats.domain.com.1204.errors404.html -rw-r-
Error The Server was unable to complete your request or somesuch. This essentially means that something went wrong, but no more than that. Even the error logs, if you have access to them, can be helpful if there's a genuine error in your program. However, all it might say is 'Premature End of Script Headers'. This might mean that you forgot to send the regular HTTP response header(s) in your code, and this is covered ad nauseam on the Web already. Less likely, it might mean that the permissions are wrong on the program or its parent directory (or directories). A CGI program must be readable and executable by the web server for it to run. Much less likely, but suitably frustrating if you don't think of it, is that on some server configurations you'll get this error if the program isn't owned by the correct user, or is in the wrong group. root specifically may be disallowed. This may seem like security consciousness gone mad, but in truth it cuts down on hacking attempts -- usually by webmasters on shared servers, trying to sniff about the system. Still stuck? There's one more thing that will give you the dreaded 500: The program is located in a directory outside of the 'allowed' web-space. The reason for this requirement is the same as for the user/group limitation above. You will simply have to copy the script to somewhere within the web server's allowed filespace. Even using symbolic links may not work. You could of course get these situations with any program, but the one that you might feel inclined to install, and be relieved that it comes with its own configuration program, is awstats. It's a fine and dandy web-stats package, written purely in Perl; in fact, the awstats.pl script stands at over 500kB in size, plus other config-style library files. Despite being able to insert Apache directives and install itself into a location of your choosing, the installation script doesn't warn you about any of the above points. You will most likely end up with awstats installed in /usr/local/awstats and owned by root. Basically, having set your directives correctly in your webserver, and restarted the webserver as well, a 500 error when trying to run awstats.pl will most likely be a file ownership or location problem. Remember, you must fix everything before it will work!
Comments It's quiet in here...Add your comment John Swindells John Swindells I am a career professional in software development, becoming proficient in various systems and languages since 1992. In recent years I have been especially active in web and mobile app projects. I stepped d