The Blog

Author: admin

.htaccess for PHP errors

Posted on

DirectoryIndex index.html index.htm index.php

# PHP error handling for development servers
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
php_flag log_errors on
php_flag ignore_repeated_errors off
php_flag ignore_repeated_source off
php_flag report_memleaks on
php_flag track_errors on
php_value docref_root 0
php_value docref_ext 0
php_value error_log /var/www/vhosts/twang.com/httpdocs/PHP_errors.log
php_value error_reporting 999999999
php_value log_errors_max_len 0

<Files /var/www/vhosts/twang.com/httpdocs/PHP_errors.log>
 Order allow,deny
 Deny from all
 Satisfy All
</Files>

Posted in Uncategorized Leave a comment

The server is saturated with SPAM. There are many messages in the queue. The mail is sent slowly.

Posted on
APPLIES TO:
  • Plesk 7.5.x Reloaded
  • Plesk 9.x for Linux/Unix
  • Plesk 8.x for Linux/Unix

Resolution

First check that all domains have the option ‘Mail to non-existing user’ set to ‘reject’ but not to ‘forward’. You can change this setting to all domains using “Group Operations” in the “Domains” tab in Parallels Plesk Control Panel. The option “Reject mail to nonexistent user” is available since Parallels Plesk Panel 7.5.3. Read More

Posted in PLESK Leave a comment

PLESK misc.

Posted on

/usr/local/psa/bin/psadump -F -z -f /backups –nostop –nostop-domain

rsync -a /home/httpd/vhosts/ /backups/

/usr/local/psa/admin/sbin/websrvmng -u –vhost-name=xfloyd.net

/usr/local/psa/admin/sbin/websrvmng –reconfigure-vhost –vhost-name=

vhost.conf
vhost_ssl.conf
In conf/vhost.conf add

ServerAlias *.mydomain.com

websrvmng -u –vhost=mydomain.com

0 */6 * * * rsync -a –delete /var/lib/mysql /backups/mysql/
0 0 */7 * * rsync -a –delete /var/www/vhosts/ /backups/
0 5 * * * rsync -a /var/www/vhosts/ /backups/
Backups FULL SERVER

/usr/local/psa/bin/pleskbackup –all /var/backups/plesk_full_backup.gz

Posted in PLESK Leave a comment

Remote restart into safe mode

Posted on

If you have admin rights on the remote machine then it’s possible.

You need to edit the boot.ini file (usually found on the root of the C: drive)

Open a command prompt on your local machine

add this to the boot.ini of that machine.

/safeboot:network

example:

multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Professional"   
/noexecute=optin /fastdetect /safeboot:network 

or try this link

http://support.microsoft.com/kb/239780

you won't be able to remote unless you can remotly execute VNC

Posted in Uncategorized Leave a comment
« Previous PageNext Page »