Wordpress setup in Xamp Localhost
- Create Project folder in htdocs
- Download and extract wordpress files in Project folder.
- Go to phpmyadmin and create new Database for this project.
-Rename wp-config-sample.php to wp-config.php
- Edit it and change the database settings
Set Up a Custom Domain (e.g., mytheme.local)
Edit hosts File -> C:\Windows\System32\drivers\etc\hosts
Add this line at the end -> 127.0.0.1 mytheme.local
Edit Apache Config -> C:\xampp\apache\conf\extra\httpd-vhosts.conf
Add this configuration at the bottom ->
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/mythemeproject"
ServerName mytheme.local
<Directory "C:/xampp/htdocs/mythemeproject">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
After Go to XAMPP Control Panel and restart Apache.
Comments
Post a Comment