cpanel
How to Set the PHP Version per Directory in cPanel
Do you want to use different PHP versions per directory? You can do this using cPanel and the dot htaccess file. Log in to your cPanel account. In the Software section, click on MultiPHP Manager. The first thing we need to do is to get the code generated by cPanel. Scroll down to the bottom of the page. Select your domain from the left side of the screen. You can view the PHP Version from the drop-down menu on the right. Please, select the appropriate PHP version from it and click on Apply. First, open the /public_html/.htaccess file in the cPanel File Manager, and you will find the code generated by cPanel. After you copy the code, should you wish to set the PHP to version 8 in the directory forums, create a .htaccess file in the directory /forums/ and paste the code generated in the previous step. Congratulations, now
How to Install cPanel
cPanel ranks as the premier Hosting Control Panel in the web hosting domain. Its installation is straightforward. Prerequisites: A pristine installation of either Ubuntu or AlmaLinux OS on your VPS/Server. Steps for cPanel Installation: Access your VPS/Server using an SSH Client. Execute the command below by pasting it into your SSH terminal and hitting Enter. cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest The cPanel installation process will commence, typically spanning 10 to 20 minutes. Upon completion, the terminal will relay a confirmation: cPanel Installation Finished. Navigate to https://your-server-IP-here:2087 to access WHM. Provide the root username and password. Select Login. cPanel/WHM Setup Guide: Step 1: Review and accept the terms. Step 2: In cases where the cPanel license isn’t active, you might need to sign in to the cPanel store to activate a trial license. Step 3: Configure Email and Nameservers: Email Address: Input your email. This
How to Password Protect a Directory in cPanel
You can lock a directory with a password using the cPanel’s Directory Privacy. Log in to your cPanel account. In the Files section, click on Directory Privacy. Click on the directory to open it. Click on the Edit, showing next to the directory you want to protect. Under Security Settings, check-mark Password protect this directory. Then click on Save. Now click on Go back. Scroll down the page. Under Create User, fill in the username and password fields or use the Password Generator option to generate a new random password and copy it to Notepad. Click on Save. If you try to open the password-protected directory in your browser via the URL www.example.com/myfolder, your browser prompts for credentials.
Related: cpanel
How to Read cPanel Emails in Android
Suppose you have already added your cPanel email accounts to your Android built-in email application. In that case, you can also add a widget to your Android screen to easily read your cPanel emails by just opening a widget. Open your Android mobile. Tap on an empty area of your home screen for a few seconds, and you will see several options displayed, such as Wallpaper and Widgets. Tap on Widgets. Locate Gmail and tap to expand it. Touch the Gmail widget and hold it. Drag it to your Android screen and release the hold. We dragged it to the Android screen. If you have multiple email accounts, select an appropriate email account. It will then show an option to choose a folder. Tap on Inbox. Tap Done. Open the widget. Tap on Take Me to Gmail. Congratulations. From now on, you can easily read, compose, or check emails by
How to Remove a CSR code in cPanel
You can remove the CSR code, which is no longer needed. Please, keep a backup of the CSR code for the active SSL on your computer. Log in to your cPanel account. In the Security section, click on SSL/TLS. Under Certificate Signing Request, click on Generate, View or Delete CSR link. Under Certificate Signing Requests on Server, you can see previously generated CSR. Click on Delete, located under the Action option. Choose Delete again to confirm. The CSR code will be removed and no longer stored on the server.