Archive for the tag 'enable'

How to enable the power user mode through API RPC

Send the following request packet to the server:

[packet version="1.6.3.0"]

[server]

[set]

[mode]poweruser[/mode]

[/set]

[/server]

[/packet]

Enabling the power user mode via API RPC does not create a default webspace.
The default webspace information will be requested and created as soon as admin logs in to the Panel

Reference:http://parallels.com/

How do I enable error logging for PHP scripts which helps in debugging application?

PHP errors are by default logged to the web server’s error log file (at least they are with the default setup on most Linux distros) but it is also possible to instead log PHP errors to a file of your choice. This is useful on production websites so you can periodically check for errors and fix them in a location other than the default webserver error log file.

If you do not currently have a php.ini, make one and place it in the same folder(s) as the PHP script(s) that you want to track errors for. You will need to add the following 2 lines:

log_errors = On
error_log = error_log

If we choose to enable error logging, then we MUST check the error_log often and take corrective actions for persistent errors, it’s recommend having it disabled for security reasons.

How to enable cPanel / WHM /webmail after enabling firewall in Virtuozzo

By default, cPanel’s and WHM’s ports are closed for Virtuozzo. We will need to open them using SSH.

As root, run the following commands:

/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2082 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2083 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2086 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2087 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2095 -j ACCEPT
/sbin/iptables -A VZ_INPUT -p tcp -m tcp –dport 2096 -j ACCEPT

This will opens cPanel with and without SSL, and WHM with and without SSL and webmail ports.

To save the firewall changes, use the following:

/etc/rc.d/init.d/iptables save

To see the firewall rules, type

iptables –list
SBDavid

Enable Mailman in Plesk

Enable Mailman in Plesk

The following steps will show you how to enable Mailman.

1. Login to Plesk.
2. Click on Server.
3. Click on Set Up Mailman.
4. Configure Mailman by providing the Mailing list administrator’s email and password.
5. Once you hit OK you should be taken back to the server page with the message letting you know that the Mailman icon will no longer be accessible.

For information on using Mailman please visit http://www.gnu.org/software/mailman/index.html

How do I enable cgi-scripts to run from both httpdocs and httpsdocs directories in Plesk?

By default Plesk runs CGI scripts in /cgi-bin/ folder only. To allow CGI scripts be processed from any folder, you should uncomment the cgi-script AddHandler directive in the main apache configuration file /etc/httpd/conf/httpd.conf

AddHandler cgi-script .cgi

Then restart Apache with the following command:

/etc/rc.d/init.d/httpd restart

Such customizations can also be done on a per domain basis in vhost.conf.

Next »