It is currently Fri May 17, 2024 6:35 am

News News of Server Side Actions

Site map of Server Side Actions » Forum : Server Side Actions

Here you can find tutorials and notes for server-side maintenance/configuration
Forum rules
All information is given AS IS

Full cPanel backup creation into alternative dir

Some times you need to re-define default target directory for backup creation (for example lack of free space on the /home partition). To do it just for a specific backup job (not server-wide), you may use following syntax:
Code: Select all
/scripts/pkgacct {accountname} /backup backup
or
/scripts/pkgacct {accountname} /backup userbackup

This will define "/backup" partition/directory as a target for backup of account '{accountname}'.
Read more : Full cPanel backup creation into alternative dir | Views : 2095 | Replies : 0


error reading from spamd socket: Connection timed out

When we are using "custom" (in other words per user SpamAssasin (SA) configuration) sometimes following error may occur:
spam acl condition: error reading from spamd socket: Connection timed out

If the spamd is timed out, it should not get the spam score and email should save in the user inbox as usual instead filtered out.
To avoid this problem, increase the spamd children maximum process. Go to WHM -> cPanel -> Manage Plugins and install ...
Read more : error reading from spamd socket: Connection timed out | Views : 3448 | Replies : 0


RoundCube SMTP issue

This totally fixes roundcube smtp issue, and is compatible with the csf smtp owner restriction.
Code: Select all
vi /usr/local/cpanel/base/3rdparty/roundcube/config/main.inc.php

and changed
Code: Select all
$rcmail_config['smtp_user'] = '%u';
to
$rcmail_config['smtp_user'] = '';
Read more : RoundCube SMTP issue | Views : 2053 | Replies : 0


Ixed Problems with Fantastico

If you have an error after clicking the icon Fantastico :
PHP script =
/usr/local/cpanel/base/frontend/x/fantastico/includes/enc_restrictions.in=
c.php is protected by SourceGuardian and requires file =
ixed.lin.4.3.8.pxp.
Please read SourceGuardian protected scripts manual.


How to fix it:
Code: Select all
/scripts/upcp --force
cd /usr/local/cpanel/3rdparty/etc/
wget http://netenberg.com/files/ixed.tgz
tar xzpf ixed.tgz
rm -f ixed.tgz
cp /usr/local/cpanel/3rdparty/etc/ixed/* /usr/local/ixed/
chattr -i /usr/local/cpanel/3rdparty/etc/php.ini

Code: Select all
vi /usr/local/cpanel/3rdparty/etc/php.ini

See: http://www.cpanelthemes.com/forum/viewtopic.php?t=894 about what to put in this file and change
Code: Select all
chattr +i /usr/local/cpanel/3rdparty/etc/php.ini
Read more : Ixed Problems with Fantastico | Views : 2114 | Replies : 0




Error while creating backup through the cPanel interface

Problem creating backup through the cPanel interface on the server. The following error appeared in the /usr/local/cpanel/logs/error_log:
2009-08-31 19:54:11 info Not updating privileges for {account} (reseller login and no password specified in ~/.my.cnf)
2009-08-31 19:54:20 info Not updating privileges for {account} (reseller login and no password specified in ~/.my.cnf)

The backup cannot be created with the following message in the cPanel interface:
backup-8.31.2009_19-54-34_{account}.tar.gz (Mon Aug 31 19:54:34 2009)

Tthe issue is ...
Read more : Error while creating backup through the cPanel interface | Views : 2553 | Replies : 0




RvSkin/RvSiteBuilder PHP configuration requirements

RvSkin/RvSitebuilder PHP configuration requirements

Following values should be adjusted in the cPanel`s PHP (/usr/local/cpanel/3rdparty/bin/php) configuration file:

$RVSReq->{'memory_limit'} = '164M';
$RVSReq->{'max_execution_time'} = '180';
$RVSReq->{'post_max_size'} = '105M';
$RVSReq->{'upload_max_filesize'} = '100M';
$RVSReq->{'enable_dl'} = 'On';
$RVSReq->{'file_uploads'} = 'On';

To perform automatic adjustment one can use following script (available after Rv* product installation)
Code: Select all
perl /var/cpanel/rvglobalsoft/rvsitebuilder/panelmenus/cpanel/scripts/autofixphpini.pl
Read more : RvSkin/RvSiteBuilder PHP configuration requirements | Views : 2545 | Replies : 0


Rebuild the NET::SSLeay

Can't locate auto/Net/SSLeay/ssl_read_un.al in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/Cpanel/CPAN/overload/__Time /usr/local/cpanel/Cpanel/CPAN/overload/__File__GlobMapper /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/perl /usr/local/cpanel/build-tools/stubs /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/5.6.2/IO/Socket/SSL.pm line 676
Can't locate auto/Net/SSLeay/ssl_write_a.al in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/Cpanel/CPAN/overload/__Time /usr/local/cpanel/Cpanel/CPAN/overload/__File__GlobMapper /usr/local/cpanel/Cpanel/CPAN/overload/__Digest /usr/local/cpanel/perl /usr/local/cpanel/build-tools/stubs /usr/lib/perl5/5.6.2/i686-linux /usr/lib/perl5/5.6.2 /usr/lib/perl5/site_perl/5.6.2/i686-linux /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl .) at /usr/lib/perl5/site_perl/5.6.2/IO/Socket/SSL.pm line 601

Below is the step of rebuild the NET::SSLeay :
Code: Select all
cd /usr/local/cpanel/src/3rdparty/perl/
make netssleay
make netssleayinstall

The above can be simplified to:
Code: Select all
/usr/local/cpanel/bin/nativessl-install
Read more : Rebuild the NET::SSLeay | Views : 1868 | Replies : 0


Phpmyadmin - MySQL client version: 4.1.22

Recently rebuilt apache and PHP with MySQL 5 and PHP 5 but in phpmyadmin it says "MySQL client version: 4.1.22."

Check:
Code: Select all
cat /home/username/.cpanel/datastore/_usr_sbin_mysqld_--version

If:
Server version: 5.0.77-community-log MySQL Community Edition (GPL)

Do:
Code: Select all
/scripts/makecpphp
Read more : Phpmyadmin - MySQL client version: 4.1.22 | Views : 2265 | Replies : 0


 

Login


Statistics

Total posts 505 • Total topics 442 • Total members 22