Windows linux Software Super Tips

All Tips For Os & Software

 
Home
Add to Technorati Favorites

ForGet Password Reset Plesk admin Password
Thursday, December 27, 2007
#cat /etc/psa/.psa.shadow
(This holds psa admin password)
#/etc/rc.d/init.d/psa stop
(This stops Plesk and everything it runs.)
#/usr/local/psa/mysql/bin/safe_mysqld –skip-grant-tables &
or
#/usr/bin/safe_mysqld –skip-grant-tables &
(This starts up MySQL, bypassing the grant [password] tables.)
#/usr/local/psa/mysql/bin/mysql mysql
(You’re now in a mysql command line.)
#use mysql;
#FLUSH PRIVILEGES;
(This flushes everything out - too long to explain.)
#SET PASSWORD FOR admin=PASSWORD(’your-password-here’);
(Type that exactly as above, where ‘your-password-here’ is, put the password you entered in the Rackshack order

form when ordering your server.)
#exit
(You exit the mysql command line and return to root.)
#killall mysqld
or
#/etc/rc.d/init.d/mysqld restart
(Shuts down the mysql daemon.)
#/etc/rc.d/init.d/psa start
(Starts Plesk back up, which restarts the mysql daemon which has your new password in it.)

Labels: , , ,

 
Plesk Awstats Install
Monday, July 9, 2007
Plesk Awstats Install

SolutionBelow are the steps to install Awstats on your Unix Plesk server -


1) you need to install awstats, the best way to install it is using awstats rpm, so run this command first.

# wget http://www.netsonic.net/files/awstats-6.4-1.noarch.rpm

if you want to use other version of the above rpm, find the URL first and replace this one.

2) to install run this command

# rpm -ivh awstats-6.4-1.noarch.rpm

3) then you will need to setup awstats_configure.pl run:

# cd /usr/local/awstats/tools
and

# ./awstats_configure.pl
you will be asked about your domain and path to httpd.conf file so enter
/etc/httpd/conf/httpd.conf

4) you need to provide correct path to access_log file, so open conf file for your domain using vi text editor using this command:

# vi /etc/awstats/awstats.www.yourdomain.com.conf
change log path to:
LogFile="/home/httpd/vhosts/yourdomain.com/statistics/logs/access_log"
and close editor with "ZZ" command.

5) All you need to do now is to update awstats data base using one of these two commands
for each domain

# /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.yourdomain.com
or if you want to update all at the same time us this
# /usr/local/awstats/tools/awstats_updateall.pl now
it would be nice if you add these commands to cron tab
now use this url to see if everything is ok
http://localhost/awstats/awstats.pl?config=www.yourdomain.com

Labels: , ,

 
Search



Previous Post
Archives
Links
    Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online Add to My AOL Add to Technorati Favorites!
Powered by

BLOGGER

© 2005 Windows linux Software Super Tips
eXTReMe Tracker