admin

Feb 122017
 

Howdy all!

There looks to be a bug with cPanel 11.62 and EasyApache 4 which causes Softaculous to fail when attempting to install software. You will probably see an error in Softaculous stating that it can’t connect to MySQL. You will also see something like the following in cPanel’s error log.

cPanel LiveAPI parser returned XML, which is deprecated. Please file a bug report at https://tickets.cpanel.net/submit/
sh: /opt/cpanel//root/usr/bin/php: No such file or directory
[2017-02-09 17:14:04 -0500] warn [cpaneld] The subprocess (cpanel (cpanel)) exited with an error: The subprocess ended prematurely because it received the “SEGV” (11) signal. The process dumped a core file. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 159.
Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0x2b7b180)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 74
Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0x2b7b180), "subprocess_name", "cpanel (cpanel)", "subprocess_read_handle", IO::Handle=GLOB(0x2b7afa0), "subprocess_write_handle", IO::Handle=GLOB(0x2b7af88), "api_type", ...) called at cpsrvd.pl line 6476
    cpanel::cpsrvd::cpHandler("app", "cpanel", "document", "./frontend/paper_lantern/softaculous/index.live.php") called at cpsrvd.pl line 2363
    cpanel::cpsrvd::dodoc_cpaneld() called at cpsrvd.pl line 1607
    cpanel::cpsrvd::dodoc(HASH(0x13a7770)) called at cpsrvd.pl line 1314
    cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 849
    cpanel::cpsrvd::script() called at cpsrvd.pl line 319

This is a known bug in cPanel 11.62 that was in line for repair, but apparently is still an issue.
https://www.softaculous.com/board/index.php?tid=9987&pid=34008
Softaculous pushed an update which provides a work-around for this. You should be able to update Softaculous by running its cron.php.

/usr/local/cpanel/3rdparty/bin/php /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/cron.php

The version with the workaround should be 4.8.8.

 Posted by at 8:51 am
May 282016
 

Hey all,

We all know the feeling of dread (eg. pucker) when a linecard goes down because someone uploaded and then rebooted into a corrupt IOS on a core router and the phones start ringing off the hook… le sigh…

Here. It. Comes.

I AM LOSING THOUSANDS OF DOLLARS A SECOND….!!!

In having to deal with this and a multitude of other issue which caused client’s “concern”, I have found that the following thoughts and ideas can shape your perspective on how to address a client’s concerns in a manner that is beneficial to both you and them and will ultimately address the overriding issue at hand, which is the primary goal. (Is some of it positive psychological manipulation? yup… Knowing and understanding human behavior is the best way to deal with any issues, even in such a temporarily client/vendor relationship as addressing a new issue)
Continue reading »

 Posted by at 11:18 am
May 212016
 

DESCRIPTION
‘findmnt’ will list all mounted filesytems or search for a filesystem. The findmnt command is able to search in /etc/fstab, /etc/mtab or proc/self/mountinfo. If device or mountpoint is not given, all filesystems are shown.
The device may be specified by device name, maj:min, filesystem LABEL or UUID, or partition PARTUUID or PARTLABEL. Note that a device name may be interpreted as a mount?point (and vice versa) if the –target or –source options are not specified. The command prints all mounted filesystems in the tree-like format by default.

Continue reading »

 Posted by at 8:21 am

How Do I Block One Domain From Sending Email From My Server? | cPanel Forums

 General Info  Comments Off on How Do I Block One Domain From Sending Email From My Server? | cPanel Forums
May 122016
 

Source: How Do I Block One Domain From Sending Email From My Server? | cPanel Forums

You can try the following steps. First, in root SSH, run these commands:

Code:

touch /etc/blockeddomains
echo "domain.com" >> /etc/blockeddomains

Please replace domain.com with the domain name. Do not replace the “” part as that’s required, only the domain.com part with the right domain name.

In WHM > Exim Configuration Editor > Advanced Editor, put the following in the topmost box:

Code:

domainlist blocked_domains = lsearch;/etc/blockeddomains

Locate the “ROUTERS CONFIGURATION” section, and right below these lines:

democheck:
driver = redirect
require_files = "+/etc/demouids"
condition = "${if eq {${lookup {$originator_uid} lsearch {/etc/demouids} {$value}}}{}{false}{true}}"
allow_fail
data = :fail: demo accounts are not permitted to relay email

Put the following lines:

Code:

reject_domains:

driver = redirect
# RBL Blacklist incoming hosts
domains = blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

Then, when trying to delete all messages from the spammy user you’ll see :

[[email protected] /home/spammyuser/public_html]# exim -bp | grep 'spammyuser' | awk '{print $3}' | xargs exim -Mrm
Message 1b0uv7-004IeB-Ci is locked (mail that was in the queue)
Message 1b0uvC-004IfV-2V is locked
Message 1b0uuC-004IBU-Ja has been removed
(mail that was in the queue that was deleted)
Message 1b0uuC-004IBb-UZ has been removed
Message 1b0uuQ-004IGx-IJ has been removed
Message 1b0uuQ-004IHR-UT has been removed
Message 1b0uul-004INM-0i has been removed
Message 1b0uun-004IPX-W8 has been removed
Message 1b0uv7-004IeB-Ci is locked

Noice!

 Posted by at 3:24 pm