Head over to the WordPress download page and download the ZIP file. Now that our database setup is complete, type exit and close the shell window. create user identified by 'wordpressdatabasepassword' įinally, we need to give this user to operate on the wordpress database: grant all privileges on wordpress. This password shouldn’t be the same as the root password. Here, we’ve used an username wordpress and password of wordpressdatabasepassword. Next, we’ll create an user account for WordPress to connect to the MySQL database. WordPress will use our newly created user to talk to MySQL and store information in it.įirst, we’ll create the database with the following command: create database wordpress Now, we need to create a database into which WordPress stores all its data, and a separate MySQL user for WordPress. Run the following command to set the root password: alter user identified by 'myrootpassword' ĭon’t just close the shell window yet - we’re going to need it in the next section. We’ll assume that the password you chose is myrootpassword. You should also note down this password, as you may need it when installing other applications on your XAMPP server. Next, decide on a root password since we’ll use it to protect MySQL. You will be logged into MySQL, as shown below: To secure the MySQL database, click on the “Shell” button in the XAMPP Control Panel, and type in: mysql\bin\mysql.exe -u root This is bad, because if a hacker gained access to your website, they can log in as the “root” user (with no password to protect it) and change or delete databases. However, by default, XAMPP doesn’t use a password to protect this account. MySQL comes with a database administrator account called “root”. Setting up the database consists of two steps - securing MySQL’s “root” account and then setting up a user and a database for WordPress. Now, before we move on to installing WordPress, we need to set up MySQL, since WordPress stores your website’s pages in MySQL. If you can see this page, this means you were able to install XAMPP successfully. If the setup was successful, you should be able to see the default web page, as shown in the screenshot below: Next, open your favourite browser and navigate to localhost, which tells your browser to connect to the website hosted on your own computer. Be sure to click “Allow” (or a similar option) so that the web server works properly. The Windows firewall (or any other antivirus installed on your system) may warn you at this point. Click on the start button for Apache and MySQL on the control panel. Now, we’ll check whether the server is working. The control panel allows you to can start and stop the web server, change configuration settings and view server logs. Select a language of your choice and click “Save”. The XAMPP Control Panel will start up, and prompt for the language of your choice. If you have changed the XAMPP installation path when installing it, you would need to replace C:\xampp with the path where you installed it. Enter C:\xampp\xampp-control.exe in the dialog box, and hit Enter.Press the Windows R keys to bring up the “Run” dialog box.You can launch the XAMPP Control Panel through the following steps: The control panel allows you to start and stop the web server, change configuration settings, and view server logs. Once the installation is complete, you should launch the “XAMPP Control Panel”. If you want, you may uncheck the rest of the components.Ĭomplete the rest of the installation steps by following through all the steps in the installer. To run WordPress, the minimum components we need PHP, MySQL, Perl and the Apache web server. You will be prompted to check the components that you wish to install. Once the download is complete, run the executable installer file. Go to the Apache Friends website and download the latest Windows version. The first step is to install the XAMPP package. In this post, you will learn how to install WordPress on a Windows computer using XAMPP. The Apache Friends project provides a software package named XAMPP, which comes with Apache, PHP and MySQL pre-configured out of the box. In order to use WordPress, we also need to install and configure a web server and a database. It can be used to create nearly all kinds of websites ranging from blogs to e-commerce websites. WordPress is a great Content Management System.
0 Comments
Leave a Reply. |