Ubuntu

password protect directory in ubuntu plesk .htaccess .htpasswd

  so you want to password protect your apache directory so people can’t sneak a peek. you’ll need two files in your directory: .htaccess and .htpasswd .htaccess source AuthType Basic AuthName “restricted area” AuthUserFile /var/www/vhosts/YourDomain.com/httpdocs/.htpasswd require valid-user   AuthUserFile is the file path on your server to the .htpasswd file. on ubuntu + plesk 9…

Read More...

plesk ubuntu mysql database user permissions

From home page of plesk select “Server” and then “Database Servers” The little “people” icon on the right allows you complete PHPMyAdmin access to your MySQL server     click the “Privileges” link from the home page    Find your user and edit…

Read More...

plesk ubuntu search maillog for domain

plesk 9.5.x maillog location: /usr/local/psa/var/log/maillog/ cat /usr/local/psa/var/log/maillog | grep “domain.com” > logfile_name.txt  

Read More...

qmail restart – ubuntu – plesk 9.2.x

QMAIL restart /etc/init.d/qmail restart QMAIL – messages per IP /etc/xinetd.d/smtp_psa and /etc/xinetd.d/smtps_psa http://glomerate.wordpress.com/category/plesk/ added this: instances = 10 per_source = 1 server = /var/qmail/bin/tcp-env

Read More...

ubuntu plesk AtMail login problems

AtMail login problems… Message loading failed – Please check the remote mail-server is responding correctly, remote mail-server online, no network timeouts, authentication error or mailbox lock http://forum.atmail.com/viewtopic.php?id=1006 root@blue:/var/log/atmail# cd /var/www/atmail root@blue:/var/www/atmail# nano showmail.php don’t know if you resolved the issue in showmail.php
try inserting 
    $email[‘EmailSubject’] = preg_replace(“/[^\x9\xA\xD\x20-\x{D7FF}\x{FFFD}\x{10000}-\x{10FFFF}]/u”,”-“,$email[‘EmailSubject’]); after : if ( $user[‘Advanced’] )
  …

Read More...

plesk 9 php.ini location

/etc/php5/apache2/php.ini so it’s here… remember this james!

Read More...

Plesk atmail webmail – “Your IP address has sent the maximum number of messages per day.”

A user was getting this error when trying to send out 600 messages (that’s a separate issue) Message Denied – Your IP address has sent the maximum number of messages per day. To reduce the possibility of spam, your outgoing message has been blocked. on Plesk 9 + Ubuntu, edit Config.php – /var/www/atmail/libs/Atmail/Config.php change the…

Read More...

ubuntu install PEAR

once again, ubuntu never fails to impress me. i needed to install PEAR and MDB2 for a client. google search + SSH + apt-get and i’m done in less than 10 minutes primax@blue:~$ sudo apt-get install php-pear primax@blue:~$ sudo pear install MDB2 primax@blue:~$ sudo apt-get install php-pear [sudo] password for primax: Reading package lists… Done…

Read More...

force qmail to send queue – ubuntu + plesk + qmail

SMTP routes for qmail added our ISP’s outgoing mail server in hopes of getting stuff delivered. hopefully avoiding blacklists and stuff(); root@blue:/var/qmail/control# nano smtproutes added ISP :smtp.fuse.net root@blue:/var/qmail/control# /etc/init.d/qmail restart $Starting qmail: done restarted qmail root@blue:/var/qmail/control# /var/qmail/bin/qmail-qstat messages in queue: 74 messages in queue but not yet preprocessed: 0 root@blue:/var/qmail/control# kill -ALRM `ps ax |…

Read More...

courier imap restart

courier imap /etc/init.d/courier-authdaemon restart /etc/init.d/courier restart http://www.hard2get.org/apple/mail/apple-mail-plesk-imap.html http://www.sfr-fresh.com/unix/misc/courier-imap-4.6.0.tar.gz:a/courier-imap-4.6.0/tcpd/couriertcpd.html http://blog.makeitcomplete.com/2008/11/increase-the-number-of-connection-for-courier-imap-in-plesk/

Read More...

proftpd ubuntu plesk runaway process

ProFTPd /usr/sbin/in.proftpd > proftpd can’t restart!? /etc/init.d/proftpd restart doesn’t work… i had to setup cron to killall executable every 5 minutes or this thing would eat up our cpu’s. i hope plesk fixes the issue.

Read More...

mysql ubuntu help

MySQL find all instances of mysql: ps -aux | grep mysql stop MySQL /etc/init.d/mysql stop skip grant tables: mysqld_safe ?skip-grant-tables & remove mysql: apt-get –purge remove mysql-client mysql-server login: mysql -u -p example: mysql -u root -p change password: http://www.mydigitallife.info/2006/06/06/change-and-reset-mysql-root-password/ update mysql.user set password=password(‘XXXXX’) where user=’admin’; DEFAULT PASS SHOULD BE SETUP!!! update mysql.user set password=password(‘setup’)…

Read More...

qmail restart / messages pre IP

QMAIL restart /etc/init.d/qmail restart QMAIL – messages per IP /etc/xinetd.d/smtp_psa and /etc/xinetd.d/smtps_psa http://glomerate.wordpress.com/category/plesk/ added this: instances = 10 per_source = 1 server = /var/qmail/bin/tcp-env

Read More...

plesk fix email permissions

most likely doing the plesk 9.3.0 update today stopped midway and messed up email perms.  we kept getting the error Technical details of permanent failure: Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error….

Read More...

plesk 9 restart networking apache 2

restart plesk /etc/init.d/psa stopall /etc/init.d/psa start restart network services: sudo /etc/init.d/networking restart restart apache: sudo /etc/init.d/apache2 restart port scan: nc -z -v -w2 127.0.0.1 1-3000

Read More...

ubuntu packages rebuild, remove and fix

rebuild pkg stuff: sudo dpkg –configure -a remove pkg: apt-get autoremove fix installed pkg: sudo apt-get -f install

Read More...