How to install wordpress plugins on localhost

How to install wordpress plugins on localhost

How to install wordpress plugins on localhost?

Do you want to build your website quickly and easily, without the hassle of waiting for a hosting provider? Installing WordPress plugins on localhost is the perfect way to get started. In this blog post, we’ll walk you through how to install WordPress plugins on localhost step-by-step so that you can get up and running in no time.

Local host is one of the best methods for wordpress developers to improve their skills. it helps them to do some trainings in designing and making different types of websites absolutely for free. It’s very good for new developers or those who want to learn wordpress just for fun.

1. Download XAMPP

To begin the process of installing WordPress plugins on localhost, you will first need to download and install XAMPP. XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends. It consists of Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. Installing XAMPP is simple, just head over to the Apache Friends website and download the correct version for your operating system. Once you have downloaded XAMPP, launch the program and follow the installation instructions. After installation is complete, start up XAMPP to test your connection.

2. Install & Run the XAMPP on Your PC

Once you have downloaded XAMPP, the next step is to install and run it on your computer. XAMPP is a free software that allows you to set up a local server environment for running WordPress on your computer. It’s easy to install and configure, so you should be able to have WordPress running on your computer in no time. Follow the instructions in the XAMPP software package to get it installed and running. Once you’ve done that, you’re ready to start installing WordPress!

3. Installing WordPress on Localhost

Once XAMPP is installed and running, the next step is to install WordPress on localhost. Installing WordPress on localhost is very straightforward and can be done in a few simple steps. The important thing to remember is that WordPress itself does not run directly on XAMPP, so you will need to create a separate database for it first. Then, you can upload the WordPress files to the XAMPP htdocs folder and finish the installation from there. Working locally is great: it’s a lot faster, we can test new features without affecting our live sites, and it’s easier to debug any errors that might occur during development.

4. Search for a Plugin with the Search Bar in the Top Right Corner

Once you are in the WordPress admin area, you can use the search bar in the top right corner to search for the plugin you want to install. This will help you quickly find the plugin you are looking for and narrow down your search results.

5. Navigate to Plugin and Click Add New

Once you have installed and run XAMPP on your computer, you can install WordPress on localhost. To install a WordPress plugin, go to the Dashboard’s Plugins page and you will see the new plugin listed. You can then click “Add New” to begin the installation process. If a mistake is made, simply delete all the newly uploaded files and begin again. Make sure to double-check that you have entered all the correct database information into wp-config.php before proceeding.

6. Try to Add FS_METHOD in WP-Config File

5. Navigate to Plugin and Click Add New:
Once you have found the plugin you want to install on your localhost, navigate to the plugin page and click “Add New”. This will bring up a prompt asking for your FTP credentials. In order to successfully install WordPress plugins on localhost, you will need to set a different Filesystem Method (FS_METHOD). This can be done by editing your wp-config.php file, which is located in the root directory of your WordPress installation.

7. Fix WordPress File & Folder Permissions

Once you have installed WordPress on localhost, it’s important to fix the file and folder permissions so that WordPress can write files to your server. This is necessary to update plugins or themes, and also to upload media like images and videos. To edit file permissions, right-click on one or more files or folders and choose the File Permissions option. Generally, WordPress directory and folder permissions should be set to 755, and most file permissions need to be set to 644. Installing security plugins is a good practice and a must for every WordPress website. In some cases, setting the wp-content/plugins folder permissions to 775 may help resolve issues with media uploads or plugin installation, however it’s best to use the default settings for security reasons.

8. Download Plugin from Source

Now that the XAMPP is installed and running on your PC, it’s time to download the plugin from the source. Downloading a plugin is easy – just head over to the WordPress.org online repository, search for a plugin you want to install, and then download its zip file. Once the zip file has been downloaded, copy its contents into your local plugin directory, which is located in /wp-content/plugins. Make sure to follow all of the instructions provided by the plugin developer carefully so that everything is installed correctly.

9. Go to WordPress Admin Area

Once you have the plugin downloaded, you need to go to your WordPress admin area. Here, you will be able to search for plugins using the search bar in the top right corner. You can then navigate to the plugin section and click ‘Add New’, which will allow you to install the plugin on your localhost. Additionally, you may need to add FS_METHOD in your WP-Config file in order for WordPress to work correctly. It is also important to fix any WordPress file and folder permissions if you encounter any errors.

10. Copy Plugins into /wp-content/plugins

Once you have the plugin downloaded, you can copy it into the /wp-content/plugins directory. This is a simple way to install plugins on your localhost. Make sure that the plugin directory has the right permissions so that WordPress can update it properly.

Potential Errors And Solutions

In case you have uploaded the plugin but this message appears to you

Fatal Error: Maximum Execution Time Exceeded In WordPress

You can solve it by adding these codes to your .htaccess file which you will find it in your domain file

php_value max_execution_time 300
php_value max_input_time 300

Also if you saw this message

Maximum upload file size : 2 MP

Add these codes and it will be solved

php_value upload_max_filesize 64M
php_value post_max_size 128M

Now you know how to install wordpress plugins on localhost. You can also use the same way to install your theme, just when you go to wp content, you will find a file called “Themes”. Enter it and extract your theme file there and you will find it in your wordpress dashboard → Appearance → Themes. Then you can simply activate it from there.

If you faced any issue or you have any question please leave it on the comments section down below and i will do my best to help you as fast as i can. Thanks for reading.

2 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *