← Hosting

AwStats de cPanel para Plesk

Lida 11246 vezes

Offline

STronic 
Elite
Mensagens 546 Gostos 8
Feedback +5

Troféus totais: 30
Trófeus: (Ver todos)
Mobile User Search Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3

Estou a fazer uma transferência de um site de um servidor com cPanel para outro com Plesk 9.5.2, mas não estou a conseguir transferir o AwStats

Alguém tem experiência nisso e sabe como fazer?
Pelo que me parece os ficheiros gerados pelo AWSTATS no cPanel são diferentes dos gerados pelo Plesk.

Alguma alma caridosa.... ?  :obrigado:

tenho acesso SSH a ambos ;)
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Plesk 9.5.2 Linux ou Windows?
No entanto, em Linux a partida deveria ser possivel fazer a migração...
Offline

STronic 
Elite
Mensagens 546 Gostos 8
Feedback +5

Troféus totais: 30
Trófeus: (Ver todos)
Mobile User Search Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3

Plesk 9.5.2 Linux ou Windows?
No entanto, em Linux a partida deveria ser possivel fazer a migração...

Linux (CentOS)

cPanel /home/user/tmp/awstats/
Plesk /var/www/vhosts/domain.tld/statistics/webstat/

Mas o tipo de ficheiro que grava num e noutro são diferentes o que acho estranho. No cPanel vejo um TXT para cada mês, no Plesk não.. :S

EDIT: e o "Migration Manager" não parece funcionar... (não terá o agente para cPanel, talvez.... )
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

Nunca tive experiência com a versão Linux, no entanto tenta pedir ajudar no forum da Plesk já que é o único meio de suporte gratuito ao contrario do que se passa na cPanel mas pronto...
Offline

STronic 
Elite
Mensagens 546 Gostos 8
Feedback +5

Troféus totais: 30
Trófeus: (Ver todos)
Mobile User Search Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3

Thanks ;) na versão windows é passível de se transferir ? devem ser idênticas, digo eu...
Offline

asturmas 
Administrador
Mensagens 19734 Gostos 50
Feedback +2

Troféus totais: 39
Trófeus: (Ver todos)
Mobile User Windows User Super Combination Combination Topic Starter 100 Poll Votes 50 Poll Votes 10 Poll Votes Poll Voter Poll Starter

No Plesk Win tenho ficheiros .txt para cada mês pelo que a partida sim..
Offline

STronic 
Elite
Mensagens 546 Gostos 8
Feedback +5

Troféus totais: 30
Trófeus: (Ver todos)
Mobile User Search Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3

Resolvido. Fica a solução se alguém precisar:

http://kb.parallels.com/en/5550

Citar
Resolution
Plesk's 'statistics' utility does not use info from previous months' log records and builds AWstats pages for the current month only. To build AWstats pages for previous months follow these steps:

    0) define these environment variables according to requirements: set needed domain name

export vhost_name=SET.REAL.DOMAIN.NAME.HERE


and set the following ones pretty much the same:

export AWSTATS_BIN_D=`grep ^AWSTATS_BIN_D /etc/psa/psa.conf | awk '{print $2}'`
export HTTPD_VHOSTS_D=`grep ^HTTPD_VHOSTS_D /etc/psa/psa.conf | awk '{print $2}'`
export PRODUCT_ROOT_D=`grep ^PRODUCT_ROOT_D /etc/psa/psa.conf | awk '{print $2}'`
export awstats=${AWSTATS_BIN_D}/awstats.pl
export awstats_gen_opts="-staticlinks -configdir=${PRODUCT_ROOT_D}/etc/awstats -config=${vhost_name}-http"


    1) check if there are *.txt files in statistics/webstat directory for previous months. If there are and you wish to build statistic pages using the information stored in these data files then skip to step #4

    2) move away *.txt files from the statistics/webstat directory:

find $HTTPD_VHOSTS_D/$vhost_name/statistics/webstat -name '*.txt' -exec mv '{}' '{}'.orig \;


    3) find the necessary log file and analyze it with awstats:

$awstats $awstats_gen_opts -LogFile=$HTTPD_VHOSTS_D/${vhost_name}/statistics/logs/access_log.processed


    4) create missing time stamped (in format 'YYYY-MM') directories for the period of processed log file in statistics/webstat subdirectory of virtual host:

for y in 2007 2008 ; do for m in `seq 1 12` ; do mkdir ${HTTPD_VHOSTS_D}/${vhost_name}/statistics/webstat/$y-$(printf "%.2d" $m) ; done ; done


    5) run this cycle to build statistics pages:

for y in 2007 2008 ; do \
 for m in `seq 1 12` ; do \
     dest_dir=$HTTPD_VHOSTS_D/$vhost_name/statistics/webstat/$y-$(printf "%.2d" $m) ; \
     $awstats $awstats_gen_opts -month=$m -year=$y -output > $dest_dir/awstats.${vhost_name}-http.html ; \
     ln -s $dest_dir/awstats.${vhost_name}-http.html $dest_dir/index.html ; \
     for output in alldomains allhosts lasthosts unknownip allrobots lastrobots session urldetail urlentry urlexit osdetail unknownos refererse refererpages keyphrases keywords errors404 ; do \
         $awstats $awstats_gen_opts -month=$m -year=$y -output=$output > $dest_dir/awstats.${vhost_name}-http.$output.html ; \
     done ; \
 done ; \
done


    6) run 'statistics' command to update the upper frame navigation menu with month listing:

$PRODUCT_ROOT_D/admin/sbin/statistics --calculate-one --domain-name=$vhost_name