I have existing awstats folders in my Users public_html folders. I need to make them links

If you have the old awstats plugin, it will have created folders in your Users public_html directories. If you want to view the DA version of the awstats from the same domain.com/awstats path, you'll have to remove all folders and replace them with links.

To do that, you can use this basic script to remove any foldres and replace them with links. Create a file called fix.sh and put in it the following code

#!/bin/sh

for i in `ls -d /home/*/domains/*/public_html/awstats`; do
{
   if [ -h $i ]; then
     echo "$i is a link, skipping";
     continue;
   fi

   rm -rf $i
   ln -s ../awstats $i
};
done;

save and chmod the script to 755. Run it.

chmod 755 fix.sh

./fix.sh

 
troubleshooting/awstats.txt · Last modified: 2010/02/22 05:16 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki