Showing posts with label Plesk Linux. Show all posts
Showing posts with label Plesk Linux. Show all posts

Tuesday, April 8, 2008

How to Update stats on Plesk server

Run the following command to update stats on plesk server.

/usr/local/psa/admin/sbin/statistics

Wednesday, March 19, 2008

What is the proper way to reinstall Plesk?

You can uninstall Plesk using 'Add/Remove Programs' wizard, or by running Plesk installer program and selecting the Uninstall option.

Then you should manually delete the folders %plesk_dir% (usually c:\program files\SWsoft\Plesk) and %plesk_vhosts% (usually c:\inetpub\vhosts).
Once done, install Plesk again.

Why do all of my clients face a 30-60 second delay when trying to send/receive mail?

Check to make sure that the name servers that are listed in /etc/resolv.conf have not been
shut down and are working properly.

It's also very possible that the name servers in the /etc/resolv.conf file are working fine but
the ip from where the client is accessing the server is not reverse resolvable. In this case you
could turn off the reverse lookup completely.

For Linux servers the -Rt0 option needs to be added to the beginning of the server_args line in
the /etc/xinetd.d/smtp_psa file:

server_args = -Rt0 /var/qmail/bin/relaylock......

It is necessary to restart xinetd to apply the changes.

For FreeBSD servers the option is the same (-Rt0) but FreeBSD uses inetd so the modification
must be made to the /etc/inetd.conf file:

Example:

smtp stream tcp nowait root /usr/local/psa/qmail/bin/tcp-env tcp-env -Rt0 /usr/local/psa/qmail/bin/smtp.....

It is necessary to restart xinetd or inetd in order for the changes to take effect the next time SMTP is used.

Wednesday, March 12, 2008

To get admin password of plesk

Login to the server through ssh.

# cat /etc/psa/.psa.shadow

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 ?

Hello,
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

Plesk Database installed as a different instance of MySQL and it is running on a different TCP IP port: 8306. It has a database named PSA.
Use the following command to connect to psa database:
mysql -uadmin -p psa -P8306.

Plesk Qmail logs

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

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)

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

Create it as a normal site. ie secure.site.com as a normal site. Then you will see the ssl options. As a side note you need to make sure you have a static IP for that domain to use the with a ssl cert.

Unable to change ownership of file

Error
# 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

Dns entries on plesk for domain

/var/named/run-root/var/domain.com

Wednesday, March 5, 2008

Plesk - What ports need to be opened for all of PSA's services to work behind a firewall?

Generally it depends on what services are running on the server. All the ports which can be used by Plesk/services are listed below:

#20 ftp-data
#21 ftp
#22 ssh
#25 smtp
#53 dns (TCP and UDP)
#80 http
#106 poppassd (for localhost only)
#110 pop3
#113 auth
#143 imap
#443 https
#465 smtps
#990 ftps
#993 imaps
#995 pop3s
#3306 mysql
#5432 postgres
#8443 plesk-https
#9080 tomcat
#5224 (outgoing) plesk-license-update

I deleted mail messages in Horde Webmail, but I'm still able to see the deleted messages if I use Outlook to check mail.

Please make sure that you use "Purge Deleted" rather then "Hide Deleted" in Webmail interface. If you don't use "Purge Deleted", messages which were deleted are marked as hidden under webmail, but still available for download through POP3 or IMAP.

How do I restart Plesk for Linux?

To restart Plesk for Linux, issue the following commands via SSH:

# /etc/rc.d/init.d/psa stopall
# /etc/rc.d/init.d/psa start

Plesk > How do I login as root in MySQL?

Plesk does not have a root user for MySQL. You will need to login via the following command:

mysql -u admin -p`cat /etc/psa/.psa.shadow`

Where can I find php.ini configuration file on the Plesk server?

Usually the location of the file is /etc/php.ini. And PHP modules *.ini files are placed in /etc/php.d. Also, you can find which configuration files are used by PHP using a script with phpinfo() function:

phpinfo();
?>

Simply create a phpinfo.php file with the code above, and access that page in your web browser and look for "Configuration File (php.ini) Path", "Scan this dir for additional .ini files" and "additional .ini files parsed" sections at the beginning of the page.

How to Retrieve Your Plesk Admin Password

If you have forgotten your Plesk password, it can be retrieved with the following command via SSH:

cat /etc/psa/.psa.shadow

Please note that it is imperative for security reasons this file maintains the 0600 file permissions, so you will need to be "root" in order to view the contents of this file. This is also the "admin" login to the MySQL database service, and the contents of this file must always match the "admin" login to MySQL to ensure proper Plesk operation.