Refresh Nepal

WordPress Installation in computer with Xampp, Wamp, Mamp, Lamp, Laragon #2

To make a WordPress website, you need to install dependencies. These include Apache web server, PHP programming, Mysql Database, and PHPMyAdmin. You can find all of these in software like

Xampp

 

XAMPP is a free and open-source cross-platform web server solution stack package developed by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters for scripts written in the PHP and Perl programming languages. Since most actual web server deployments use the same components as XAMPP, it makes transitioning from a local test server to a live server possible. It is compiled and maintained by apache. XAMPP provides an easy-to-use control panel to manage Apache, MySQL, and other programs without using commands. To use PHP, we need to install Apache and MySQL.

Basic packages include system, programming & server software:

X – [cross platform operating systems] meaning it can run on any OS: macOS, Windows, Linux etc.
A – Apache – this is the web server software.
M – MySQL – Database.
P – PHP programming language
P – Perl – scripting language
ProFTPD – an FTP server
OpenSSL – for secure sockets layer support
PhpMyAdmin – for MySQL admin.

Wamp

WampServer refers to a solution stack for the macOS, created by Romain Bourdon and consisting of the Apache web server, OpenSSL for SSL support, MySQL database and PHP programming language

Mamp

Mamp refers to a solution stack for the Microsoft Windows operating system, created by Romain Bourdon and consisting of the Apache web server, OpenSSL for SSL support, MySQL database and PHP programming language.

Lamp

LAMP (Linux, Apache, MySQL, PHP/Perl/Python) is an acronym denoting one of the most common software stacks for many of the web’s most popular applications. However, LAMP now refers to a generic software stack model and its components are largely interchangeable.[1]

Each letter in the acronym stands for one of its four open-source building blocks:

Laragon

Laragon is a portable, isolated, fast & powerful universal development environment for PHP, Node.js, Python, Java, Go, Ruby. It is fast, lightweight, easy-to-use and easy-to-extend.

Laragon is great for building and managing modern web applications. It is focused on performance – designed around stability, simplicity, flexibility and freedom.

Laragon is very lightweight and will stay as lean as possible. The core binary itself is less than 2MB and uses less than 4MB RAM when running.

You can download it from here https://laragon.org/download/index.html

Features

  • Terminal Access
    You can access the terminal in windows also as in Linux operating system
  • Database Access
    You can access the database from this app also.
  • Pretty URLs
    Use app.test instead of localhost/app.
  • Portable
    You can move the Laragon folder around (to another disk, to another laptop, sync to Cloud,…) without any worries.
  • Isolated
    Laragon has an isolated environment with your OS – it will keep your system clean.
  • Easy Operation
    Unlike others who pre-config for you, Laragon auto-configs all the complicated things. That way you can add another version of PHP, Python, Ruby, Java, Go, Apache, Nginx, MySQL, PostgreSQL, MongoDB,… effortlessly.
  • Modern & Powerful
    Laragon comes with a modern architecture which is suitable to build modern web apps. You can work with both Apache & Nginx as they are fully managed.
    Also, Laragon makes things a lot easier:

    • Wanna have a WordPress CMS? Just 1 click.
    • Wanna show your local project to customers? Just 1 click.
    • Wanna enable/disable a PHP extension? Just 1 click.

How to Install XAMPP 

We look into step by step process to install XAMPP for Windows. For Other Operating Systems, XAMPP installation steps are similar.

1. Download XAMPP and start the installation file

Click here to XAMPP download and download the latest PHP version 8.1 plus: https://www.apachefriends.org/download.html

After you have downloaded XAMPP, run the setup. The warning message dialogue window shown below appears.

Once the installer downloads, run it and you’ll see the Setup Wizard:

You can click Next through all of the initial screens until you get to the install process:

Here, wait for XAMPP to install. You may need to enter your computer’s administrator password to proceed, but this is safe to do.

Once the files are unpacked and installed, you can begin to fire up XAMPP itself.

2. Start XAMPP and Test the Connection

When you’re ready, start XAMPP from wherever your computer’s applications live. Once it’s loaded, you’ll see a dashboard waiting for your input:

There are three tabs along the stop, and on the Manage Servers screen you can see the status of your local server:

In order to run WordPress, you need to see the MySQL Database and Apache Web Server options with a green light. To do this, click the Start All button. When everything is green, head to http://localhost within your browser – you should see an XAMPP welcome page:

This confirms that XAMPP is running, which means you can begin to build your site’s database.

3. Create a Database for Your New Site

There are two parts to a WordPress website: the back end, and your database. The latter holds almost every piece of information about your site, so it’s an essential component.

To create one for your site, head to http://localhost in your browser, and click the phpMyAdmin link in the top right-hand corner:

This will bring you to a screen to help you create and manage your databases. Much of this tool is beyond the scope of this lesson, although it’s straightforward to create a database. First, click the Databases tab along the top of the screen:

Next, enter a database name where it specifies, then click the Create button:

Unlike a live server, you don’t need to create a database user here, but you do need to remember the database name because you’ll need it next.

When you’re done, exit out of phpMyAdmin and get ready to install WordPress.

4. Download and Install WordPress in XAMPP

There are lots of ways to install WordPress, but when you use XAMPP, the best approach is to do so yourself. Your first job is to create a folder within XAMPP to hold your WordPress site. First, navigate to wherever you installed XAMPP. The best way to find this is to click the Open Application Folder link on the Welcome screen:

Here, look for a htdocs folder. This is where your site will live:

Inside, create another directory for your site. You can name it whatever you like, but we suggest something you will recognize, as you’ll need to access your site using it later.

Next, head to the WordPress website within your browser, and click the Get WordPress button at the top:

On this screen, scroll down, find the blue WordPress download button, and click it:

The process here is to extract the entire folder and move the contents into your site directory from earlier:

Next, head to your site’s URL within your browser. For example, localhost/mysite/wp-admin/setup-config.php. This will bring you to the infamous WordPress Five-Minute Install wizard:

The first screen will ask you for your database credentials. Here, you enter the database name you created earlier, set the username as root, and leave the password field blank:

For the next screen, you can fill in the fields as presented – they’re relevant to your site and how you log into it:

Once you click Install WordPress, you’ll see a success screen. From here, you can click the login link to access your WordPress dashboard.

5. Build Your WordPress Website, Starting With a Single Page

Once XAMPP and WordPress are installed and running, you’re ready to create content! The first step should be to create a single page, as this will help you learn the different aspects of WordPress.

Once XAMPP and WordPress are installed and running, you’re ready to create content!

The first screen you’ll see is the WordPress dashboard:

You access the different screens using the left-hand sidebar, and work with the information in the middle. Along the top is a toolbar that may look different depending on what you have installed on your system.

While you’re welcome to create a Post, we’re going to create a Page by clicking Pages > Add New link:

The screen will change to show the WordPress Block Editor. This is where you create your layouts and write content:

A great start is to follow the prompts and add a title and body content. From here, you can do almost whatever you want! For example, you can format text like you would in a word processor, or add Blocks to enhance the functionality of your Page:

When you’re ready, you’ll want to Publish your page. You can do this using the blue publish button in the top right-hand corner of the screen:

WordPress will take a few seconds to publish your page, but you’ll then see a new link to your live page:

While the platform tells you the page is live, it’s only visible on your computer and not the whole internet. We’ll cover how to get your site online in another course.

 

In Summary

Stack-based solutions such as XAMPP make for a great way to develop WordPress websites on your computer. The entire setup process takes no time, and once you have everything installed, you’re able to create posts, pages, and the entirety of your WordPress website.

If you have any issue or problem during installation you can comment down below, and we will reply as soon as possible.

You’re almost at the end of this Getting Started course, and there’s one more lesson to go – we’ll meet you there!