Search Posts

Month: April 2013

Disable Recursive DNS in cPanel server.

Edit the /etc/named.conf file After the “CONTROLS” section, add the following: acl “trusted” { 127.0.0.1; YOUR IP 1; YOUR IP2; }; options { directory “/var/named”; version “not currently available”; allow-recursion { trusted; }; allow-notify { trusted; }; allow-transfer { trusted; }; dump-file “data/cache_dump.db”; statistics-file “data/named_stats.txt”; memstatistics-file “data/named_mem_stats.txt”; }; Remove the other “OPTIONS” section in your named.conf file. You can check the named conf sysntax using the following command. # named-checkconf /etc/named.conf Then #rndc reload #/etc/init.d/named […]

How to Add SRV record?

The information provided to you for adding SRV record should be looking like as follows: My SRV record information ================== Record Type: SRV Service: _mytestingsrv Protocol: _tcp Port: 443 Weight: 0 Priority: 0 TTL: 300 Name: yourodmain.com Target: xyz.online.test.com =================== There is an order to add these records in zone file. Go to WHM >> Home » DNS Functions » Edit DNS Zone. Open the particular domains zone file. Then choose a new field to […]

Bug in PHP release version.

I came across the following error while “make” process during custom compilation of PHP. This is bug in its release which can rectified by applying a patch. ============ /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c: In function dom_canonicalization: /usr/local/src/php_sources/php-5.4.5/ext/dom/node.c:1898: error: dereferencing pointer to incomplete ============ Download the patch “php1.patch” from the below URL. http://www.mediafire.com/?ii19zwu444z4o1z and execute the following command in the php source directory. ============ @Host [/usr/src/php-5.2.17]# chmod 755 php1.patch @Host [/usr/src/php-5.2.17]# patch -p0 < php1.patch patching file ext/dom/node.c Hunk #1 […]

500 No response while loading cPanel

Sometimes the following would be the error generates when we try to load the cPanel of an account. ================== [2013-04-07 08:15:05 -0500] warn [cpanel] Failed to load cPanel user file for ‘cPanel_username’ at /usr/local/cpanel/Cpanel/Config/LoadCpUserFile.pm line 32 Internal Server Error: “GET /cpsess7952893738/frontend/x3/index.html?post_login=88039081253834 HTTP/1.1” 500 No response from subprocess ( (cpanel)) with exit signal: 255 ================== This is a permission or ownership issue with the cpanel user file present in the path /var/cpanel/users. It should be corrected […]

HTTP not working, but HTTPS does in NGINX

Found an issue regarding with http url of site is not working, but sametime https does. Here the Nginx works as a Front End Proxy on port 80 for Apache. ——————- tcp 0 0 IP:80 0.0.0.0:* LISTEN 2023/nginx tcp 0 0 IP:80 0.0.0.0:* LISTEN 2023/nginx tcp 0 0 IP:80 0.0.0.0:* LISTEN 2023/nginx tcp 0 0 IP:8081 IP:38574 ESTABLISHED 24791/httpd ——————- Troubleshoot part =========== Section 1: ————- I tried first to switch to apache as main […]