From: Kim S. <ki...@sl...> - 2007-03-23 02:02:52
|
[Fri Mar 23 03:01:17 2007] [error] suexec policy violation: see suexec log for more details [Fri Mar 23 03:01:17 2007] [error] Premature end of script headers: awstats.pl - Kim Den 23/03/2007 kl. 2.54 skrev Jamie Cameron: > Ok .. at least it is trying to run something :-) > > What gets logged to logs/error_log under the virtual server's root > directory when you try to access awstats.pl ? > > - Jamie > > On 22/Mar/2007 18:12 Kim Sleiborg wrote .. >> /awstats/awstats.pl = blank page in the browser (Safari and >> Firefox) and >> /awstats/awstats.pl gives this with an old Explorer on a Mac: >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> >> <html><head> >> <title>500 Internal Server Error</title> >> </head><body> >> <h1>Internal Server Error</h1> >> <p>The server encountered an internal error or >> misconfiguration and was unable to complete >> your request.</p> >> <p>Please contact the server administrator, >> root@localhost and inform them of the time the error occurred, >> and anything you might have done that may have >> caused the error.</p> >> <p>More information about this error may be available >> in the server error log.</p> >> <hr> >> <address>Apache/2.2.3 (Fedora) Server at mydomain.dk Port 80</ >> address> >> </body></html> >> >> >> - Kim >> >> Den 23/03/2007 kl. 0.56 skrev Jamie Cameron: >> >>> Hi Kim, >>> Have you tried to access /awstats/awstats.pl instead? >>> >>> - Jamie >>> >>> On 22/Mar/2007 15:51 Kim Sleiborg wrote .. >>>> As an example: Virtualmin installs awstats.pl in the cgi-bin of the >>>> virtual domain. >>>> The cgi-bin folder is in the same directory as the public_html >>>> folder, and has a CGI directory alias: from /awstats to /home/user/ >>>> cgi-bin. >>>> Hope this was the answer to your question? >>>> http://domain.dk/awstats comes up with the Apache error: >>>> 'Forbidden. You don't have permission to access /awstats/ on this >>>> server.' >>>> >>>> - Kim >>>> >>>> Den 22/03/2007 kl. 23.32 skrev Jamie Cameron: >>>> >>>>> Hi Kim, >>>>> Is this a CGI script (under cgi-bin), or a PHP script (under >>>>> public_html) ? >>>>> If it is the latter, does the directory have an index.php file ? >>>>> >>>>> - Jamie >>>>> >>>>> On 22/Mar/2007 15:29 Kim Sleiborg wrote .. >>>>>> I use Virtualmin to create Virtual Hosts. >>>>>> When trying to access a script from a Virtual Host I get this >>>>>> from >>>>>> Apache: >>>>>> 'Forbidden. You don't have permission to access /myscript/ on >>>>>> this >>>>>> server.' >>>>>> >>>>>> This is from the error log: >>>>>> [Thu Mar 22 19:31:42 2007] [error] [client ::1] Directory index >>>>>> forbidden by Options directive: /var/www/html/ >>>>>> >>>>>> Any newbie help appreciated - especially if I don't need to >>>>>> change >>>>>> the settings of all my Virtual Hosts..! >>>>>> >>>>>> >>>>>> The httpd.config file looks like this: >>>>>> >>>>>> # ScriptAlias: This controls which directories contain server >>>>>> scripts. >>>>>> # ScriptAliases are essentially the same as Aliases, except that >>>>>> # documents in the realname directory are treated as >>>>>> applications and >>>>>> # run by the server when requested rather than as documents >>>>>> sent to >>>>>> the client. >>>>>> # The same rules about trailing "/" apply to ScriptAlias >>>>>> directives >>>>>> as to >>>>>> # Alias. >>>>>> # >>>>>> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" >>>>>> >>>>>> # >>>>>> # "/var/www/cgi-bin" should be changed to whatever your >>>>>> ScriptAliased >>>>>> # CGI directory exists, if you have that configured. >>>>>> # >>>>>> <Directory "/var/www/cgi-bin"> >>>>>> AllowOverride None >>>>>> Options None >>>>>> Order allow,deny >>>>>> Allow from all >>>>>> </Directory> >>>>>> >>>>>> >>>>>> My Virtual Hosts in the httpd.config file look like this: >>>>>> >>>>>> <VirtualHost 192.168.1.4:80> >>>>>> SuexecUserGroup "#500" "#500" >>>>>> ServerName domain.dk >>>>>> ServerAlias www.domain.dk >>>>>> DocumentRoot /home/user/public_html >>>>>> ErrorLog /home/user/logs/error_log >>>>>> CustomLog /home/user/logs/access_log combined >>>>>> ScriptAlias /cgi-bin/ "/home/user/cgi-bin/" >>>>>> ScriptAlias /awstats "/home/user/cgi-bin" >>>>>> <Directory /home/user/public_html> >>>>>> Options Indexes IncludesNOEXEC FollowSymLinks >>>>>> allow from all >>>>>> AllowOverride All >>>>>> </Directory> >>>>>> <Directory /home/user/cgi-bin> >>>>>> allow from all >>>>>> </Directory> >>>>>> </VirtualHost> >>>>>> >>>>>> >>>>>> Thanx - Sleiborg >>>>>> >>>>>> ----------------------------------------------------------------- >>>>>> -- |