Archive for the tag 'Setting'

How to modify the open_basedir setting for one domain

To change the open_basedir value when using php in CLI mode (not suPhp), you can do so by going to:

Admin Level -> Custom httpd configuration -> domain.com

In the top text area, insert this one line:

|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/|

which is the default value in the templates. Edit the paths in that line to meet your needs.

Source: http://directadmin.com

Setting up webmail.domain.com as default for new domains with DirectAdmin

1) You’ll need to setup the virtualhost for apache. This can be accomplished by adding a 2nd virtualhost along side the domains main one.

cd /usr/local/directadmin/data/templates
cp virtual_host.conf custom
cd custom

You’ll need to edit the newly copied virtual_host.conf (or virtual_host2.conf if you’re using apache 2) file , just add the following to the end of whatever you currently have.

</VirtualHost>
<VirtualHost |IP|:80>
ServerName webmail.|DOMAIN|
ServerAdmin |ADMIN|
DocumentRoot /var/www/html/squirrelmail
CustomLog /var/log/httpd/domains/|DOMAIN|.bytes bytes
CustomLog /var/log/httpd/domains/|DOMAIN|.log combined
ErrorLog /var/log/httpd/domains/|DOMAIN|.error.log
</VirtualHost>

Save and exit. Then run

echo “action=rewrite&value=httpd” >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d

to rewrite the httpd.conf files.

2) You’ll also need to setup the dns portition.

cd /usr/local/directadmin/data/templates
cp dns_a.conf custom
cd custom
echo “webmail=|IP|” >> dns_a.conf

This will setup the webmail A record for new dns zones. For existing dns zones, you’ll have to manually add the webmail A record to point to the domains IP.

Source : http://directadmin.com/

Setting up the Linux terminal to use proxy servers

If you are running proxy at IP 192.168.1.1 with the proxy port as 3128 and wish to use wget, lynx and other utilities from a shell prompt then export the following variables on the command line.

export http_proxy=http://192.168.1.1:3128/
export ftp_proxy=http://192.168.1.1:3128/
export ftps_proxy=http://192.168.1.1:3128/
export https_proxy=http://192.168.1.1:3128/

Now your will be able to use the update commands from the command line.

How to modify the open_basedir setting for one domain in DirectAdmin

To change the open_basedir value when using php in CLI mode (not suPHP), you can do so by going to:

Admin Level -> Custom httpd configuration -> domain.com

In the top text area, insert this one line:

|?OPEN_BASEDIR_PATH=`HOME`/:/tmp:/usr/local/lib/php/|

which is the default value in the templates. Edit the paths in that line to meet your needs.

Source : http://directadmin.com/

Setting Up and Starting Watchdog Services in Plesk

To configure Watchdog settings common for all services:

Click the Modules shortcut in the navigation panel > Watchdog. A list of Parallels Plesk Panel services will be displayed.
Click the Preferences icon in the Tools group.

Monitor all services started by administrator. Leave this option selected if you wish the module to monitor all the Parallels Plesk Panel services that you start. If you install a new system service later on, the module will automatically start looking after it. Deselect this check box, if you are going to shut down some of the Parallels Plesk Panel services and you do not want the module to bring them up automatically or bother you with any alert messages.
Polling interval. Specify the interval between service status queries in seconds.

Store resource usage statistics. Leave this option selected if you wish the system to keep reports on CPU and RAM usage for the amount of time you specify.
Repeat security scanning. Specify how often Watchdog should scan the server for malicious code.

Send reports. Specify how often Watchdog should send you consolidated reports on CPU and RAM load, monitored services, disk space partitions and security scanning results.
Send e-mail to. Specify the e-mail address where Watchdog should deliver alerts and reports. By default, the Parallels Plesk Panel administrator’s e-mail address is used.

Send e-mail from. E-mail address on behalf of which the reports and alerts should be sent. By default, this e-mail address is watchdog@your-host-name.

Finally Click Apply to submit the settings.

Source: http://parallels.com/Plesk/

« Prev - Next »