We can install additional modules not listed in the cPanel easyapache config options .To add custom module, we must know the version of Apache and PHP to which we need to add the module. Easy Apache allows us to specify any configure option supported by Apache and/or PHP. Place the option in the appropriate file; the files are as follows: Apache 1.3.x /var/cpanel/easy/apache/rawopts/Apache1 Apache 2.0.x /var/cpanel/easy/apache/rawopts/Apache2 Apache 2.2.x /var/cpanel/easy/apache/rawopts/Apache2_2 All PHP 4.x versions /var/cpanel/easy/apache/rawopts/all_php4 All PHP 5.x versions /var/cpanel/easy/apache/rawopts/all_php5 Mod_suPHP /var/cpanel/easy/apache/rawopts/all_suphp Specific PHP Version /var/cpanel/easy/apache/rawopts/PHP-X.X.X Adding entries to the appropriate file, easyapache will pick them up. For example, if we need to add LDAP support to PHP5, Create all_php5 file under /var/cpanel/easy/apache/rawopts. In this file please add the line –with-ldap …
In certain situations such as security incidents, compromised accounts, or routine security maintenance, administrators may need to reset passwords for all cPanel accounts on a server. The following script helps automate the process by generating strong passwords and updating them for every cPanel and FTP account. Step 1: Create the Password Change Script Create a script file named changepass.sh using your preferred editor: Add the following content: This script: Step 2: Set Execute Permission Make the script executable: Step 3: Run the Script Execute the script using: Output After execution: Important:Store the new-pass.txt file securely and delete it after distributing credentials to users. If you require help, contact SupportPRO Server Admin
RHEL5 and CentOS 5 run an older version of ssh, which makes doing a chroot sftp or scp more difficult. Pre-requisites:- You need to have following packages and it’s dependencies installed:- Yum install -y rpm-devel rpm-build pam pam-devel perl openssl-devel tcp-wrappers Steps:- It is not recommended to build RPM as root user. 1. Login to server using SSH as a normal user. 2. In your home directory create a file .rpmmacros and add following entires to it. %_topdir %(echo $HOME)/rpmbuild 3. Next step is creating the build environment. In your home directory, create following directories:- $mkdir rpmbuild $cd rpmbuild $mkdir BUILD RPMS SOURCES SPECS SRPMS
For many reason Mysql service may go down. If the mysql service is showing down, first you check the mysql log file ‘/var/log/mysqld.log’ for errors. If you get the following errors in log, you can easily fix this by correcting the access permission of mysql (/var/lib/mysql where the ibdata1 is located) directory to mysql user access permission. 101114 12:45:43 mysqld started 101114 12:45:43 InnoDB: Operating system error number 13 in a file operation. InnoDB: The error means mysqld does not have the access rights to InnoDB: the directory. InnoDB: File name ./ibdata1 InnoDB: File operation call: ‘open’. InnoDB: Cannot continue operation. 101114 12:45:43 mysqld ended You can correct the permission by running the following command and finally restart the mysql …
Sometime you will get error Error from park wrapper: domain.com is already configured. while creating a parked domain ‘domain.com’ in Cpanel. This is because the entry for that particular domain is present in some of the configuration file in the server. You can fix this error by removing those entry from the server. If we see an error like this please check the following files for that particular domains entry and remove those entry if you found any. /etc/httpd/conf/httpd.conf /etc/named.conf /var/cpanel/users/username /scripts/updateuserdomains /var/named/domain.db /etc/userdomains /etc/localdomains /etc/trueuserdomains /etc/trueuserowners /etc/valiases/domain.com /etc/vdomainaliases/domain.com /etc/vfilters/domain.com Once you done this, you should be able to create parked domain from cpanel. It will work for you ….:) If you require help, contact SupportPRO Server Admin
How to Fix “No such file or directory: /home/user1/etc/domain.com/passwd” in cPanel
While creating an email account in cPanel, you may encounter the error: This error typically means the system cannot find the required directory structure to generate mailbox configuration files. In most cases, the issue occurs because the etc directory inside the user’s home folder is missing or was accidentally deleted. Let’s understand why this happens and how to fix it safely. Why This Error Occurs When an email account is created in cPanel, the system automatically generates configuration files inside: Inside this directory, cPanel creates the passwd file, which stores mailbox configuration details. If the /etc directory does not exist inside the user’s home path, the mail system cannot create the required file. As a result, you see the “No …
cPHulk is a brute force protection system developed by the cPanel team and is exclusive to cPanel / WHM control panels. This protects service like WHM, SSH,FTP,IMAP and POP3 by disabling the authentication to those service after a brute force attack is detected. cPHulk mainly blocked the IPs which have perform more than one wrong login attempt with in a tiny time limit. If we need to remove a particular IP from the cPHulk deny list this is possible in two ways, Either from WHM or through database. Let us see how to remove IP from database. First you need to SSH to the server as root. # mysql (prompt should change to mysql) mysql> use cphulkd; (database changed ) …
Prerequisites Before you begin, ensure the following requirements are met: Tools Required: OpenSSL Operating System: Ubuntu Web Server: Nginx Assumptions Step-by-Step Installation Guide 1. Generate a Private Key Start by creating a 2048-bit RSA private key. Log in to your server via SSH and run: This will generate the private key file: mydomain.com.key. 2. Generate a Certificate Signing Request (CSR) Use the private key to generate a CSR: You will be prompted to enter the following details: Ensure the Common Name matches your domain name exactly. 3. Purchase an SSL Certificate Submit the generated CSR to a trusted Certificate Authority (CA) such as: After validation, the CA will issue your SSL certificate (mydomain.com.cert). 4. Verify the Certificate and Private Key …
An SSL certificate is a file installed on a secure web server that identifies a website. SSL certificate is mainly used is tokeep sensitive information sent across the Internet encrypted so that only the intended recipient can understand it. An SSL Certificate is used for the following functions. 1. Authentication and Verification: The SSL Certificate holds the information about the authenticity of certain details regarding the identity of a person, business or website, which it will display to visitors on your web site when they click on the browser’s padlock symbol. 2. Data Encryption: The SSL Certificate enables encryption, which means that the sensitive information transmitted through the website/Internet cannot be intercepted and read by anyone other than the intended …
Cloning an Open VZ container is a useful process for creating an exact copy of an existing VPS container. The cloned container contains the same files, configurations, applications, and settings as the original container but uses a different container ID and storage path. This process is commonly used for backup purposes, server migration, testing environments, and rapid VPS deployment. OpenVZ provides a utility called vzmlocal that simplifies container cloning directly from the host node. What is Cloning an Open VZ Container? Cloning an Open VZ container means reproducing an existing virtual private server (VPS) into another container with identical content and configuration. The cloned container includes: However, the cloned VPS will have: This allows administrators to create duplicate environments quickly …