This is a discussion on alias to cpanel stats script within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm trying to give a customer access to their AWSTATS without given them full access to CPanel. Here's ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm trying to give a customer access to their AWSTATS without given them
full access to CPanel. Here's what's in the httpd.conf (Apache 1.3.33): <VirtualHost IPADDRESS> ServerAlias www.customersite.org.au customersite.org.au ServerAdmin webmaster@customersite.org.au DocumentRoot /home/customer/public_html BytesLog domlogs/customersite.org.au-bytes_log ServerName www.customersite.org.au ScriptAlias /cgi-bin/ /home/customer/public_html/cgi-bin/ #### This is the stuff I've added for stats Alias /stats/ /usr/local/cpanel/base/ <Directory /usr/local/cpanel/base> Options +ExecCGI +FollowSymLinks AddHandler cgi-script .cgi .pl </Directory> #### End of stats code User customer Group customer CustomLog domlogs/customersite.org.au combined </VirtualHost> The intended access URL would be: http://www.customersite.org.au/stats...org.au&lang=en What I get is a 500 Server error with the message: Premature end of script headers: /usr/local/cpanel/base/awstats.pl If I write a local cgi-bin script called awstats.pl which immediately "chdirs" to "/usr/local/cpanel/base" and then executes the real awstats.pl script, it all works except for some error messages about missing scripts and graphics. This is because the "chdir" is not sufficient to rewrite all the URLs. I also tried creating a symlink from /usr/local/cpanel/base to /home/customersite/public_html/stats/ but that didn't work either. The suexec_log tells me this: [2005-01-17 15:35:23]: info: (target/actual) uid: (customer/customer) gid: (customer/customer) cmd: awstats.pl [2005-01-17 15:35:23]: error: cannot stat program: (awstats.pl) Clearly suEXEC is causing the problem because it's not smart enough to find the awstats.pl I'm trying to run. But, I can't disable it because it would break other things. Any ideas as to how to achieve this? Can I change the suExec parameters somewhere - they seem to be compiled into Apache!?! tia, RR |
| Thread Tools | |
| Display Modes | |
|
|