If you encounter the error: in your PHP application, it means your code is using a deprecated function that is no longer supported in modern PHP versions. This issue commonly appears after upgrading PHP, especially when migrating to PHP 5.4 or later. Understanding why this Deprecated Function error occurs and how to fix it will help ensure your application works properly on newer PHP environments. What Causes the Deprecated Function Error? The set_magic_quotes_runtime() function was used in older PHP versions to automatically escape special characters in incoming data and database queries. However, due to security concerns, performance issues, and the availability of better alternatives, this function was: As a result, applications that still use this Deprecated Function will generate warnings …
Webmail applications such as Horde and SquirrelMail are commonly used in hosting environments to access email accounts through a browser. Sometimes, users may encounter the following error while trying to log in: Even when the correct login credentials are used, this issue may still occur due to server configuration problems or incorrect domain settings. In this blog, we’ll explain the common causes of the Horde/Squirrel Mail login issue and how to fix it easily on a cPanel server. What is Horde/Squirrel Mail? Horde Webmail Horde is a feature-rich webmail application included with cPanel hosting. It provides: Horde is widely used because of its advanced collaboration features. SquirrelMail SquirrelMail is a lightweight webmail client written in PHP. It offers: Although older …
How to Install custom Apache or PHP modules via easy apache on Cpanel servers?
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 …