First , Install XAMPP is an easy to install Apache distribution containing MariaDB, PHP, and Perl. Just download and start the installer.
Check and download the required version.
https://www.apachefriends.org/download.html#641
Once the download finishes, run the file you downloaded to launch the XAMPP installer. If you’re running antivirus software, you might get a warning like this:
Just click Yes to continue. Depending on your Windows configuration, you might also get a prompt about User Account Control (UAC). Just continue through that prompt as well. Once you get through all of the prompts, you should see the standard installer screen:
Just click Next to continue.
On the next screen, you can choose which components to install. To install XAMPP and WordPress, you do not need all of the components. In addition to the required components, all you need are:
- MySQL
- PHPMyAdmin
Uncheck everything else and click Next.
You can now select which folder to install XAMPP in. I always leave it as the default:
On the next screen, you’ll get a prompt asking you to install Bitnami for XAMPP. You do not need this to install XAMPP and WordPress, so just uncheck the box:
Once you click Next, you’re ready to run the install:
The install process might take a few minutes:
Once it finishes, you can launch the control panel to start working with XAMPP:
Step 2: Start the modules and test your server
To install XAMPP and WordPress properly, you’ll need to run two modules:
- Apache
- MySQL
You can start both modules from the XAMPP control panel:
Once you launch them, you should see their status turn to green:
And now you should be able to test that your local server is working by going to http://localhost/ in your web browser of choice:
Add the WordPress files
If you’ve ever manually installed WordPress
First, you need to go to wordpress.org and download the latest version of WordPress.
Then, in Windows, navigate to the folder where you installed XAMPP. For me, that’s C:/xampp. It should be something similar for you. Then, in that folder, find the htdocs subfolder:
Once you create the folder, extract the WordPress .zip file you downloaded from wordpress.org into it:
Create a database for WordPress
Next, you need to create a MySQL database for your WordPress install.
Open the MySQL 5.5. Command Line Client
Enter password:
# CREATE DATABASE wordpress;
# CREATE USER wordpress@localhost;
# GRANT ALL PRIVILEGES ON wordpress.* TO ‘wordpress@'localhost' IDENTIFIED BY ‘Password’;
Query OK, 0 rows affected (0.00 sec)
# FLUSH PRIVILEGES;
Open wp-config.php and fill the correct the database details as :-
………………………………………………………………………………..
[...]
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wordpress');
/** MySQL database username */
define('DB_USER', 'wordpress');
/** MySQL database password */
define('DB_PASSWORD', ‘Password');
/** MySQL hostname */
define('DB_HOST', 'localhost');
[...]
…………………………………………………………………………………………
Now , launch the web WordPress by http://localhost/wp-admin/install.php
After that you need to enter a username, password, and an email address for your admin account.
You can login to your website by going to /localhost/website1/wp-adminpage and use the username / password that you entered during installation to login.
No comments:
Post a Comment