Wednesday, March 12, 2008
How to disable root login through SSH
How to install Ioncube On Plesk VPS
1) Login into shell through root
2) cd /usr/localDownload the tar.gz file which is compatible with your server from http://downloads.ioncube.com/wget http://downloads.ioncube.com/loader_…lin_x86.tar.gz
3) Untar the file.tar -zxf ioncube_loaders_lin_x86.tar.gz
4) chown -R root:root /usr/local/ioncube/
5) vi /usr/local/Zend/etc/php.ini (or whatever your path is)In Plesk the path is
/usr/local/psa/admin/conf/php.ini
/etc/php.ini
Add the following line before any other zend_extension
zend_extension=/usr/local/ioncube/ioncube_loader_lin_4.4.so
It would go between these two entries
zend_optimizer.version=2.5.10a
zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
Save changes, then:
6) /etc/init.d/httpd restart
PHP upgrade on plesk ?
How to upgrade php on Plesk 8.1.x ?
>>Make sure that you have YUM installed on your plesk server. If so then do the following steps
Step 1) Set up the atomic channel:wget -q -O - http://www.atomicorp.com/installers/atomic.sh sh
Step 2) Check all the updated modules version using >>yum update
Step 3) Upgrade the php to the latest version 5.2.x using the following command >>yum update php
Step 4) Replace the PHP 4 ini with PHP 5.2.x's (if applicable)mv /etc/php.ini.rpmnew /etc/php.ini
Step 5) Step 4) Replace the php.conf with the PHP 5.2 php.conf (if applicable)
mv /etc/httpd/conf.d/php.conf.rpmnew /etc/httpd/conf.d/php.conf
Thats all... :)
Combat with spamming On plesk
1. Log into the Plesk >Click- 'Server' > 'Mail'
2. Inside 'Server-wide mail preferences' option-> In the 'Relaying' section - Confirm you have selected 'authorization is required' option and you have ticked the POP3 and SMTP option
3. Check that you have added all local and virtual domains to /var/qmail/control/rcpthosts . Never leave the file rcpthosts as blank as this will lead to an open relay
Where is Internal Plesk Database
Use the following command to connect to psa database:
mysql -uadmin -p psa -P8306.
Plesk Qmail logs
tail -f /usr/local/psa/var/log/maillog
tail -f /var/log/messages
/var/log/mail.info
You can edit the /etc/xinetd.d/smtp_psa file and add -a to exclude the IPs which you dont want to be blocked by the RBL lists:
e.g:
server_args = -Rt0 /usr/sbin/rblsmtpd -a 59.93.244.0 -r relays.ordb.org ..
How make safe_mode=off for a domain in plesk
Login in to plesk select the domain
Domains > domain.com > setup
PHP support (PHP 'safe_mode' on ) untick it to make safemode off
How to access the site by ip address (Plesk)
To make site browse Ip address
Server > IP Address > Hosting > select the site domain.com > Set As Default
To change Ip address of domain
Login to pleskDomains > domain.com > setup > ipaddress
How create subdomain ssl in plesk
Unable to change ownership of file
# chown ftp.domain.org.psacln .htaccess
chown: `ftp.domain.org.psacln': invalid group
FIX
# chown ftp\.domain\.org:psacln .htaccess
Please put \ before the dot as there are too many dots in the ownership
Cannot FTP to a domain after its physical hosting has been recreated
530 User fp1 cannot log in, home directory inaccessible.
CAUSE
IIS cache causes this problem.
RESOLUTION
Here is two possible ways to resolve:
1. Clean up IIS FTP service cache. To reset FTP cache restart IIS FTP
servicenet stop MSFTPSvc
net start MSFTPSvc
2. Disable IIS FTP cache. To completely disable caching set the following parameter:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\DisableMemoryCache DWORD 1
Web Based MSSQL manager not working
Error
Web Based MSSQL manager is not working when I goes to http://mssql.domain.com after opening when click on any links it is not taking me to login page.
FIX
The problem with SQL admin has been caused by disabled ASP.NET 1.1 as web service extension. I went to IIS > Web service extensions > Allow ASP.NET 1.1. After that I got sql admin working