• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Urchin Automation with Plesk

Phil@

New Pleskian
I made some changes to the Urchin Automation Script from Nightawk (Check this thread: http://forum.plesk.com/showthread.php?s=&threadid=15979)

Changelog of V. 2.2 modified by me:
- The passwords are now correctly transmitted to the script (not with "xxxxxx" like before").
Long story short: The following has changed..
PLESK_PW=`cat /etc/psa/.psa.shadow`
PASSWORD=`
mysql -uadmin -p$PLESK_PW -N psa<< eof
SELECT a.password FROM accounts a, sys_users s WHERE login LIKE '$USERNAME' and a.id = s.account_id;
eof`


Installation:
1. Download Script
2. Change the Path to the vhosts in the Script: Its currently set to /var/www/vhosts... You might change it to /home/httpd/vhosts...
3. Put it in /usr/local/psa/bin
4. chown psaadm.psaadm urchin.sh
5. chmod 0755 urchin.sh
6. Go to Plesk -> Server -> Event Manager and add a new handler:
--> choose: Physical hosting created
--> Priority: 10
--> User: root
--> Comand: /usr/local/psa/bin/urchin.sh <new_domain_name> <new_system_user>
7. Create new Physical Hosting
8. Check in Urchin if all is created successfully
9. Enjoy

Download the Script: http://www.net-team.ch/downloads/urchin/urchin.sh
 
The link to your script is giving me a 404, any chance of getting a copy?
 
I've reupped the script to another host. You'll find the script here: http://www.net-team.ch/downloads/urchin/urchin.sh


It has not been optimized for Plesk 8.0 and Plesk 8.1. It might work, but I haven't tested it for above 7.5.4.

Enjoy...

PS: If you optimize it for Plesk 8.0 or 8.1 or do some useful modifications, feel free to post it in this thread.
 
Back
Top