How to install WordPress on Xampp
How to install WordPress on Xampp
If you’re looking to install wordpress on xampp, this is the guide for you. It will show you how to do it step by step so that you can enjoy your new website! for more information please visit how to install wordpress on xampp
start xampp control panel
To start xampp control panel, you need to download and install it.
Once you have done that, type the following command in your terminal:
$ cd /var/www/html
$ sudo ./xamppinstaller.php -a ALL_ACTIVE_FIELDS=1 -i file://example.com -d example.com –httpd-user=www-data –httpd-group=www-data –user=$USERNAME
create database
You’ll want to create a database user and password. This is so that you can connect to your database with the same username/password pair every time.
To do this, click on “Add New User” in your WordPress dashboard:
You will then be prompted for the following information:
- Username (This should be unique) 2) Email address 3) Password 4) First name 5) Last name 6)- The following fields are optional but recommended: 7)- Gender 8)- Birthday 9)- Location 10-) Social Media accounts
download wordpress
- Go to the website for WordPress.org and download the latest version of WordPress.
- You can also install it from the command line by typing:
sudo apt-get install wordpress
or from a terminal window by typing in:
apt-get install wordpress
extract wordpress
- Unzip the WordPress file by clicking on the “Extract” link in the left-hand side panel of your browser. This will extract all of the content from your ZIP file into a single directory on your computer, as long as you have enough free space to hold this new folder’s contents.
- Copy that extracted directory onto your server (or wherever else you want it). You can either use FTP or SFTP if you’re comfortable with those protocols; if not, simply click on “Save As” when prompted and choose a place where you want to save it before clicking OK again automatically *(it shouldn’t be too hard).*
3a) If there are any files left over after extracting and placing them somewhere else, delete them now! These files aren’t necessary for our next step so don’t worry about keeping them around unnecessarily! 3b) Once everything is save for now go ahead and rename wp-config.*php file from .php extension back into wp-config.*php
copy and paste wordpress into htdocs folder
Before you can install WordPress, make sure that your computer is configured to access the XAMPP folder. If you’re using Windows 10 or macOS High Sierra, it should be located at C:Program Filesxampphtdocs. If this isn’t the case and you’ve followed our instructions correctly, then there shouldn’t be any spaces in the name of your htdocs folder!
Once everything is set up properly on both sides of things (your local computer and server), copy and paste all files into their respective locations on each side—you’ll need both versions so that nothing gets overwritten by mistake when installing new versions later down the line!
navigate to local host directory in browser
When you’re ready to install WordPress, navigate to localhost in your browser. The URL should look something like this:
http://localhost/wordpress/wp-admin
If you see a page that looks like this, then everything is working:
rename wp-config file to .php extension
You will need to rename the wp-config.php file to .php extension. To do this, you will use a text editor on your computer.
Once you have renamed the file, make sure it is saved with a .php extension and not with any other extensions such as .html or .xml (which are common).
open php.ini file
To open the PHP.ini file, you must first have root privileges on your computer. If you don’t know how to do this, please refer to the articles below:
- How to get root access in Linux/Unix systems
- How can I make my Linux system run as administrator?
edit date.timezone variable
To edit the date.timezone variable, open the php.ini file in a text editor like Notepad or TextEdit. Then search for “date_default_timezone_set.” This will take you to an empty line with no other code on it (and this is where your new setting should be). Copy and paste the following code into that blank line:
date_default_timezone_set(‘America/New York’);
run the installation script
To run the installation script, open your browser and enter localhost in the address bar. You should see a page that looks like this:
- Click on “Install WordPress”.
- Enter your username and password (only if you’ve already logged in).
Once you’ve entered those details and clicked Continue, you’ll be taken through an automated process that will install WordPress onto your server. After it’s finished, click on Done.
You can install wordpress on xampp
If you don’t have a server, or if your hosting provider doesn’t offer PHP and MySQL, then you can install WordPress on Xampp. This article will show you how to do this.
Xampp is free and open source software for running Apache HTTP Server, MySQL and PHP applications. Xampp supports Windows, Linux & Mac OS X operating systems as well as most of the popular web browsers like Internet Explorer 8+, Firefox 3+, Google Chrome etc..
Conclusion
I hope this helps you installing wordpress on xampp
0