Keep the database details with you (database name, mysql username and password), We will use this database details in our wordpress installation Let’s call it myProject for this demonstration. create database xampp phpmyadminĬreate a database with your desired named. Open localhost/phpmyadmin and visit Databases tab. Just couple of steps more before you can begin working with WordPress.Īs wordpress installation will ask us for the database details where it will generate the initial tables and data. That’s all is required to start executing WordPress code on your localhost via XAMPP. Thus when we enter myproject.local in our browser it will get the connect to the local IP address 127.0.0.1 on which your XAMPP apache server is running etc/hosts file translate our domain names to IP address. Now open file /etc/hosts and add following entry into it. You can modify these two according to the name of the domain you want to access your local wordpress site with, and the folder name in which you kept the wordpress code. ![]() We are adding a new host myproject.local in the virtualHost and we will access the directory /opt/lampp/htdocs/myProject with it. ĭocumentRoot "/opt/lampp/htdocs/myProject" Open file /opt/lampp/etc/extra/nf and add the following virtual host entry into the file. Let’s go ahead and create a Virtual Host for the WordPress Site, Before we start with the wordpress installation in our browser. ![]() Move your downloaded wordpress folder ( myProject) to /opt/lampp/htdocs directory With XAMPP all the PHP source code to be executed goes into the htdocs directory. Now we need a home for the wordpress source code from where they can be executed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |