Posts or Comments 30 July 2010
cialis contrassegno prezzo viagra italia commander viagra generique cialis 10 prix zithromax generique acheter viagra belgique levitra generico forum acquisto viagra on line comprare cialis in svizzera viagra belgique sans ordonnance farmaco levitra viagra farmaco plavix prescription achat propecia cialis 10 mg funziona levitra acquisto on line acheter cialis original viagra alle donne viagra a vendre quebec vendita viagra on line compra viagra acheter lioresal acquista cialis generico cialis 20 prezzo acheter accutane acheter amoxicillin levitra france flagyl 500 mg cialis super active viagra rapide vendita cialis generico viagra reseller femme viagra propecia pharmacie propecia moins cher paris acheter priligy dapoxétine viagra sans ordonnance viagra prezzo in farmacia costo cialis prescrizione cialis viagra france comprare viagra in internet comprare viagra senza carta di credito svizzera viagra cialis farmaco dysfonction erectile acquistare cialis generico cialis costo kamagra 100 médicaments cipralex acheter viagra pas chere clomid ordonnance priligy canada viagra svizzera ricetta cialis 20 mg farmacie viagra acquistare viagra su internet viagra a vendre acheter lioresal baclofen acquistare viagra in contrassegno acheter clomid en france prix plavix france acheter cialis 20mg viagra x donne farmaco cialis pfizer viagra prix kamagra inde acheter viagra cialis acheter viagra quebec cialis 5 mg quanto costa acheter cialis viagra levitra 10 mg generico viagra pour femme en france viagra prix officiel sildenafil prezzo viagra prix france cialis 5 mg prezzo aquisto levitra viagra dove comprarlo cialis le prix acheter zovirax comprare viagra a roma viagra generique en pharmacie strattera prix tadalafil naturale cialis costo farmacia forum cialis generico viagra femme forum cialis naturale tadalafil generico italia achat de viagra levitra prezzo in farmacia levitra medicinale comprare viagra in farmacia pharmacie propecia viagra farmacie viagra a vendre montreal kamagra pas cher cialis su internet viagra generico funziona prix propecia pharmacie viagra des femmes viagra acquisto in contrassegno flagyl sans ordonnance achat clomid en france azithromycin 250 mg forum achat viagra prezzo levitra 10 mg cialis generico online cialis farmacia svizzera prix cialis 5 achat nolvadex acheter cialis forum viagra medicinale compro levitra viagra da 50 acquisto viagra italia viagra ricetta levitra 20 mg viagra cialis levitra differenze acheter flagyl metronidazole viagra sublinguale viagra vendita in italia cialis a roma kamagra prezzo medicinale cialis comprare cialis online viagra cialis differenza levitra confezioni e prezzi propecia ordonnance costo viagra farmacia flagyl ordonnance acquisto cialis generico acheter cialis sans ordonnance cialis 20 mg effetti collaterali strattera 80 mg acheter accutane en ligne prix zovirax prix plavix plavix 75mg proscar sans ordonnance acheter azithromycin acquistare viagra generico italia farmacia cialis compra viagra in italia viagra 25 mg prix paxil 10 mg viagra generico in italia cialis vendita farmacia prezzo cialis 20 mg sildenafil donne achat cialis cialis vendita on line viagra generico contrassegno nolvadex achat vendita cialis online cialis generico senza ricetta acheter kamagra france propecia prix paris generique du viagra cialis senza prescrizione medica viagra generico senza ricetta prezzo cialis farmacia viagra generico forum cialis achat france prix cialis en france cialis o simili clomid 200mg prezzo viagra achat cialis en france viagra cialis acheter sildenafil moins cher viagra farmacia cialis per donne cialis generico esiste finasteride 1mg prix cialis 5 prix prix finasteride acheter viagra femme costo levitra acheter clomid ciprofloxacin 250 mg aciclovir prix compra viagra generico viagra pasti viagra generique acheter finasteride prix viagra senza prescrizione vendo cialis originale sildenafil 50 mg zovirax sans ordonnance vendita cialis originale cialis 20 mg compra costo levitra 10 mg cialis naturale forum prezzo cialis in farmacia acheter clomid sans ordonnance le viagra viagra compresse avis priligy viagra authentique baclofen médicament prix cialis generique acheter viagra en ligne costo cialis generico cialis acquisto cialis vendita in italia cialis senza ricetta viagra 50 mg viagra quanto costa in farmacia acheter plavix vendita viagra generico compresse cialis acheter viagra comprare viagra internet cialis generico contrassegno acquistare viagra farmacia viagra achat achat cialis 5mg prescrizione viagra achat propecia en ligne nolvadex sans ordonnance acquisto cialis net clomid achat acheter viagra doctissimo paxil 30mg generique plavix france viagra offerte levitra in farmacia médicament cipro kamagra suisse acheter viagra en suisse viagra simili viagra per donne cialis aus indien levitra compresse clomid deux comprimés zovirax prix achat de levitra achat cialis original vendita levitra acheter cialis 5mg viagra senza ricetta in italia kamagra en belgique cialis acquisto on line ciprofloxacin 500mg viagra miglior prezzo cialis sito sicuro propecia vente acquistare viagra prezzo cialis italia prezzo levitra pharmacie en ligne propecia prescription achat viagra generique cialis 20 mg compresse achat viagra pour femme achete levitra prix viagra pharmacie viagra donne super viagra propecia pas chere priligy achat acheter viagra generic prix du viagra acquisto levitra online viagra pour femme compro viagra amoxicilline médicament cialis generico italia proscar 5mg acquisto cialis senza ricetta impuissance erection acquistare viagra online forum viagra pour femme prezzo farmacia cialis viagra le prix viagra acquisto farmacia priligy dapoxetine levitra effet secondaire costo cialis 20 mg levitra acquisto comprare cialis sicuro cialis comprare online viagra india viagra meilleur prix viagra sostituto viagra 100 mg viagra e cialis differenze acquisto viagra svizzera cialis generico prezzo commander kamagra cialis 20 mg in farmacia plavix ou generique vendo cialis levitra serve ricetta cialis naturale alle erbe tadalafil generico viagra in svizzera acquistare cialis a san marino cialis 10mg prix propecia suisse viagra en belgique nolvadex 10mg aciclovir comprimé prix propecia paris prezzo viagra in farmacia viagra ou similaire cialis farmacia on line viagra senza ricetta kamagra pharmacie cialis acquista viagra generico vendita viagra super active viagra milano propecia en ligne levitra 10 mg costo acheter du levitra accutane sans ordonnance vendita libera viagra viagra pfizer achat ricetta levitra cialis 5 mg viagra à vendre strattera 10 mg forum viagra en ligne cialis vendita italia pilule levitra acquistare viagra sicuro tadalafil 20mg alternativa viagra acheter kamagra aquisto cialis acheter clomid en ligne acquisto cialis vendita cialis in contrassegno prix viagra suisse vardenafil generico kamagra controindicazioni viagra in vendita tadalafil acquisto prix viagra 100mg lasix 20 mg cialis originale online zovirax ordonnance simili viagra cialis prezzo in farmacia viagra inde ordonnance cialis viagra prix en pharmacie lasix 40 mg

Archive for "Plesk"



Plesk & Server Architecture Matt | 12 Nov 2008

Parse Plesk Maillog, Count Emails Per Domain

I wanted to get a quick count of messages being sent to and from all my domains in plesk.   I wrote this script to get the mail domains from the plesk database.  Then I loop through them and grep a regex against the maillog file.  Since I’m actually using zgrep to look decompress yesterday’s maillog file at the same time I get the counts, it’s a little processor intensive.  It takes about 10 seconds to run through 30 domains in a 5 meg gzipped file.  If I were to gunzip the file first and just grep it, this would go much quicker.  But I’m fine with a 10 second run time and the bonus of not having to trash a decompressed maillog file when I’m done.

Here’s the bash script I’ve saved as mailcount.sh:

#!/bin/sh

MYSQLPASS=`cat /etc/psa/.psa.shadow`

for DOMAIN in `mysql -uadmin -p$MYSQLPASS -e "select distinct domains.name from mail inner join domains on mail.dom_id=domains.id" -B -N psa`

do
echo $DOMAIN `zgrep -c -E "(to|from)=.+@$DOMAIN" /usr/local/psa/var/log/maillog.processed.1.gz`
done

Here’s a version that copies and gunzip’s the maillog before doing any processing.

#!/bin/sh

MYSQLPASS=`cat /etc/psa/.psa.shadow`

# copy the log file before decompress
cp /usr/local/psa/var/log/maillog.processed.1.gz /usr/local/psa/var/log/maillog.processed.1-working.gz &&

# decompress the log working file
gunzip /usr/local/psa/var/log/maillog.processed.1-working.gz

for DOMAIN in `mysql -uadmin -p$MYSQLPASS -e "select distinct domains.name from mail inner join domains on mail.dom_id=domains.id" -B -N psa`
do
echo $DOMAIN `grep -c -E "(to|from)=.+@$DOMAIN" /usr/local/psa/var/log/maillog.processed.1-working`
done

# remove the working log file
rm -f /usr/local/psa/var/log/maillog.processed.1-working &&
echo "file removed"
exit;

ColdFusion & Plesk & Server Architecture Matt | 19 Oct 2007

ColdFusion 8 and Plesk 8 on RedHat 5 via mod_jrun22

After installing Plesk 8 on a RedHat 4 box I’ve needed to install Plesk 8 on Redhat 5.  RedHat 5 uses mod_jrun22.  Well it’s Apache 2.2 that uses mod_jrun22, so any version of Linux running Apache 2.2 will use this connector.

Since Plesk doesn’t support CF8 yet, it still writes out its apache directives looking for mod_jrun20.  This needs to be modified to get per domain support for CF8 and Apache 2.2

Warning this will void your warranty!

I grepped the plesk install directory looking for mentions of jrun.  I found a binary file that matched: /usr/local/psa/admin/sbin/websrvmng

Looking at this file, on line 228 there’s a mention of mod_jrun20 in plain text.  This is the part of the websrvmng that writes out the http directives.  After making a backup of this file I took a chance at making an edit.  I simply changed mod_jrun20 to mod_jrun22 and saved the file.

Sure enough, plesk is happy.  Now when checking the ColdFusion box in a domain setup I see <IfModule mod_jrun22.c> in the httpd.include file for that domain rather than <IfModule mod_jrun20.c>.

Be careful here, I’m sure this change would not survive a plesk update to websrvmng.  After each plesk update double check this file to make sure it still points to mod_jrun22.

Plesk & Server Architecture Matt | 18 Oct 2007

Backup all mysql databases as seperate sql files

When backing up mysql databases via mysqldump you can either specify a database name to backup or use the –all-databases switch to dump all databases in one big file. I’d like to backup all my databases but I’d like them in separate files so they’re easier to manage and I can do a quick restore of a single db if needed.

I wrote the following bash script to help out.

#!/bin/sh
# all db separate files

for customerdb in `mysql -uadmin -pweb7A8u -e "show databases" -B -N`
do
        mysqldump -uadmin -pweb7A8u $customerdb > /var/www/vhosts/mysql/$customerdb.sql
done

Or on my plesk server, I’ve got a table in plesk’s psa database that lists out all the databases created within plesk. A modification to this script reads the table names in the psa database table and makes backups of all those.

#!/bin/sh

for customerdb in `mysql -uadmin -pweb7A8u -e "select name from data_bases" -B -N psa`
do
        mysqldump -uadmin -pweb7A8u --protocol=tcp --port=3307 $customerdb > /storage/mysqlbackup/$customerdb.sql
done

ColdFusion & Misc & Plesk & Server Architecture Matt | 29 Aug 2007

ColdFusion 8 and Plesk 8 on Red Hat ES 4

By default the Plesk control panel does not work with ColdFusion 8 yet. It sounds like official support will be available in Q1 of ‘08. I couldn’t wait that long. I’ve been able to get Plesk 8 to work with ColdFusion 8 to a degree.

I assume you’re familiar with how to install both separately so I’ll just be going over how to get both to play together.

In my world the Plesk control panel is just used simply used so that staff in our small software company can manage websites and not need to use a shell. No one else even has access to Plesk. Because of this, separation and security are not primary concerns. Also, I have no need to let anyone or myself manage CF DSN’s from within Plesk, being able to do this in CF Admin is fine.

So what I’ve done is enable the ColdFusion checkbox used when setting up a website so that CF code can be used on a particular website. Any ColdFusion management capabilities of Plesk are not enabled.

[root@yadda]# /usr/local/psa/bin/cfsetting -s /opt/coldfusion8
I/O warning : failed to load external entity "/opt/coldfusion8/runtime/servers/default/SERVER-INF/jrun.xml"
Config not parsed successfully.

Running that cfsetting command with the -s switch and the cf root from the commandline showed me an error plesk was running into. I found jrun.xml in a different place.

/opt/coldfusion8/runtime/servers/coldfusion/SERVER-INF/jrun.xml

Since I think jrun.xml should be pretty much the same from CF7 to CF8, I’m going to just try pointing Plesk to the right place with a simlink.

cd /opt/coldfusion8/runtime/servers/ && ln -s coldfusion default

Now I run the cfsetting command again.

/usr/local/psa/bin/cfsetting -s /opt/coldfusion8

Now I notice when starting up Apache that it’s trying to startup mod_jrun twice. In my ColdFusion install I selected to build a mod_jrun connector to hook into Apache during the install. Turns out that this conflicts with Plesk. It’s a simple fix. Just fire up your httpd.conf file and look for all instances of cfm or jrun. You should see these entries toward the bottom of the file. Just comment out the whole block of stuff by putting a hash sign in from of the lines. Or you could always delete this stuff if you want.

For each website that you enable ColdFusion support for you should see this code in the httpd.include file for the site.

JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ignoresuffixmap false
JRunConfig Serverstore /opt/coldfusion8/runtime/lib/wsconfig/psa/jrunserver.store
JRunConfig Bootstrap 127.0.0.1:51800
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc

If you need to do a little troubleshooting, just make sure that you don’t see code like this in any of the global config files for apache. As well make sure your jrunserver.store file exists. And make sure you’re loading the mod_jrun module somewhere. Plesk should drop this into zz010_psa_httpd.conf in the conf.d folder. Make sure that exists: LoadModule jrun_module /opt/coldfusion8/runtime/lib/wsconfig/psa/mod_jrun20.so. And lastly, double check your jrun.xml file you should see a mention of jrun broadcasting on port 51800 … you should see that in the jrun.servlet.jrpp.JRunProxyService block of the jrun.xml file. It’s possible that jrun is running on a different port, if that’s the case you’ll need to change it to 51800. Or somehow find out how to change the Plesk default.

If you have any troubles, post a comment here and I’ll see if I can help.


google