Category: PHP

Create WordPress Admin User Through FTP

Create WordPress Admin User Through FTP

Hello friends, Today in this article, we will learn how to create WordPress admin users through FTP. FTP will help us to create a WordPress Admin User when we don’t have any other access. You can explore our FTP tutorial if FTP(File Transfer Protocol) is a new thing to you. A few days back, one of my friends asked me if it is possible to create an admin user without Database or WordPress Admin access. I said Yes, of course, it is possible. Actually, sometimes users forget their username/password, or some security plugins lock users. We can also add an Admin user in WordPress through MySQL, but today we will learn how to create an Admin user through FTP. So

Continue Reading

How to Add Multiple CSS Classes in WordPress

CSS plays an important role in UI/UX Today, we will learn how to add multiple CSS classes using functions. This helps you design each WordPress post differently using specific classes. STEP I:- First, define the classes as an array in the functions.php file inside your child-theme folder. It’s very simple. For Example, use class names like (long-form-article, featured-story, and interactive) for a single Div tag. STEP II:- After defining classes in the functions.php file under the child-theme folder. We have to now call them in the post_class function in the Div tag. Let’s see how it looks. A core WordPress function called post_class() is used by themes to tell WordPress where to add those default classes for posts and pages. The post_class

Continue Reading
Enable zip in cpanel

How to Enable PHP Extensions through cPanel

Friends, today we’ll discuss how to enable PHP extensions through cPanel. A few weeks ago, we shared a post about enabling PHP modules in WHM. So, we’re writing this post now because a subscriber requested it. Install PHP Zip in cPanel if not enabled by default. Let’s see how to enable the PHP ZIP extension. Follow the steps below—screenshots are from GoDaddy cPanel: STEP 1: Log in to your website’s cPanel (Control Panel), then go to the Software section. See screenshot(source: GoDaddy cPanel) STEP 2: First, go to the PHP PEAR Package. Then type Zip in the search bar, and you will find Archive_Zip. Finally, click on the green install icon, see the screenshot (source: GoDaddy cPanel) STEP 3:  After

Continue Reading
How to Enable PHP Modules in WHM

VIDEO VERSION: How to Enable PHP Modules via WHM

Hello friends, today we will learn about How to enable PHP modules in WHM(Web Host Manager). WordPress beginners face this problem while importing demo content on a Paid WordPress theme. Sometimes these modules are not installed/activated by default in cPanels that’s why we get the error, so we have to install it manually. Today, we are talking about this general error: PHP Zip Module I hope this article helped you learn about how to Enable PHP Modules in WHM. Please share your thought in below comment box. You can also read this article here. If you liked this article, please subscribe to our YouTube Channel for more tutorials. Keep learning and sharing.

Continue Reading
How to Enable PHP Modules in WHM

How to Enable PHP Modules in WHM

Hello friends, today we will learn how to enable PHP modules in WHM(Web Host Manager). Many WordPress beginners face this issue while importing demo content on a paid WordPress theme. Sometimes, required PHP modules are not installed or activated by default in cPanel. In this article, we will focus on one common error: the PHP Zip Module. Yesterday, a friend of mine installed a theme but faced this error while importing demo content: Oops, Unyson Backup requires PHP Zip module but it is not enabled on your server. If you are not familiar with PHP Zip module, please contact your hosting provider. How to Enable the PHP Zip Module in WHM Let’s see how to enable it and fix the

Continue Reading
HTTP ERROR 500

How to resolve “This Page isn’t Working – HTTP ERROR 500”

Hello, friends, today we will learn how to resolve “This Page isn’t Working HTTP ERROR 500”. Last week, we got this error while shifting one of my websites from one server to another. However, there’s no need to worry, WordPress has this common error, and we can easily resolve it. What we have to do is to follow these steps:   1. Deactivate all plugins First, we will try to deactivate all the plugins. Do you know how we can deactivate all plugins at a time? We can do this in both ways, either from the admin panel or from FTP, but we are getting HTTP ERROR, so we can do this only from FTP/cPanel, just rename the plugin directory like

Continue Reading
php_value memory_limit 512M

Increase WordPress Memory Limit using .htaccess

If you don’t have access to the php.ini file, don’t worry! You can easily increase the PHP memory limit via the .htaccess file. Just copy and paste the following code into your .htaccess file to increase the memory limit. To increase the memory limit, simply add the following line to your .htaccess file, which is usually located in the root directory of your website: If you already have this code and nothing will change then try… Adding this snippet will help your WordPress site handle more memory-intensive processes, improving performance and avoiding memory exhaustion errors.

Continue Reading
memory_limit 256M

Increase WordPress Memory Limit using php.ini

If you want to Increase WordPress Memory Limit using php.ini, and you have access to your website’s root directory, you can easily do this by editing the php.ini file. Simply add or update this line in your php.ini file to set the memory limit to 256MB: If you already have this setting but still face memory issues, try increasing the memory limit further by setting it to 512MB in the php.ini file. By following these steps, you can successfully Increase WordPress Memory Limit using php.ini and avoid errors like “Allowed memory size exhausted”. This also helps improve the performance of your WordPress site when running resource-heavy plugins or themes.

Continue Reading
htaccess-http-https

HTTP to HTTPS Redirection Automatically Using .htaccess and web.config

Hello Friends, Today we will learn about “How we can redirect visitors to our HTTP website to HTTPS“. If you have an SSL Secure Certificate installed on your website, you can easily redirect visitors to the secure version of your website(HTTPS) automatically. First, we have to know where your website is hosted. Linux & cPanel If you don’t have an .htaccess file in the root directory of your website, then you have to create a new file. If you don’t know how to create this, watch the video: Once you create the .htaccess file in the file manager, just copy & paste this code into the .htaccess file. NOTE: If you already have an .htaccess file, then check these points

Continue Reading