Create a self signed SSL cert in one line
Always find myself googling this...
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 1000 -nodes
Tail a log file with highlighting.
Here’s a cool trick.
If you want to tail a log file looking for a specific word or phrase, this will highlight that phrase and sound a beep.
tail -f /usr/local/psa/var/log/maillog | perl -p -e 's/(jason\@)/\033[46;1m$1\033[0m\007/g;'
Update… I give up. I can’t figure out how to get wordpress to except these characters 🙁
Allow Cron Jobs to access PHP/WGet/FTP in Plesk 10.1+
As of Plesk 10.1 cron jobs have been restricted to a chroot jail that prevents it from using many linux commands. Run the following as root and it will function like the old Plesk used to.
/usr/local/psa/bin/server_pref -u -crontab-secure-shell "/bin/sh"
Stuff to install on a new MediaTemple DV4
Configure the MT yum repository and install php-soap.
http://wiki.mediatemple.net/w/%28dv%29_4.0:Install_SOAP_using_Yum
Probably add more to this list as we find them.
Force Plesk to use vhost.conf for a single domain.
/usr/local/psa/admin/sbin/httpdmng --reconfigure-domain mydomain.com
A lot easier than creating a temporary protected directory, don’t you think?
EDIT:
On SB4 use:
/usr/local/psa/admin/sbin/websrvmng --reconfigure-vhost --vhost-name=mydomain.com
Recent Comments