1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Can't view stats anymore, browser asks to download WEBSTAT file

Discussion in 'Plesk for Linux - 8.x and Older' started by flupke, Aug 10, 2007.

  1. flupke

    flupke Guest

    when clicking on webstat in the report menu, stats don't show anymore but browser wans to download the file webstat. this happens for all domains.

    I did check webstat, it is an .html file webstat.html located at /var/www/vhosts/<domain>/statistics/webstat, there is an alias plesk-stat pointing to /var/www/vhosts/<domain>/statistics.

    Why does the browsers asks to download the file? I tried wih several clients and browsers: same stuffs for all domains.

    Any idea what I can check?
  2. polloboy

    polloboy Guest

    I found this nugget over here http://rackerhacker.com/2007/09/28/parsing-html-through-php-in-plesk/

    Drop this at the end of /etc/httpd/conf/httpd.conf and restart apache

    <LocationMatch "/plesk-stat/(.*)">
    AddType text/html .html

    You may also need to quit and relaunch your browser before it will work. At least that's what I had to do.

    ooops, I forgot to mention that I also quit and restarted plesk.

    /etc/init.d/psa stop
    /etc/init.d/psa start