![]() If it’s a PHP project inside a directory, change the URL path. Note: As an example, I have chosen MyApp.php as a sample PHP file and MyPHPProject as a sample PHP project. direct to our apache2 home page the MyApp.php file inside htdocs directory. Default htdocs directory location is shown below. But now, we have to paste/clone our PHP file or project to this directory. This location can be changed later to whatever value we want. The “ htdocs” is the directory that the Apache web server looks for files to serve on our domain by default. Paste/clone the PHP app to “htdocs” directory #Xampp windows freeIf you have any queries or suggestions, feel free to ask me in the comment section below.It also needs to configure the database details in our PHP project. #Xampp windows windowsThat’s it! I hope you have a clear idea of setting up Virtual Hosts for WordPress with XAMPP running on Windows 10. Since the setup of Virtual Hosts for WordPress Website is done, here is what the final results would look like: Restart Apache and visit your virtual host URL, in our case it’s “ farhan.cw” and check whether the domain has been set up successfully. Then open wp_options and click edit the site URL from to, and home URL from to. Now, it’s time to change the database URL (a very important step to configure virtual host).įor this, open your browser and go to and select your database. Configure WordPress Site URLĪt this point, I am assuming that you have a WordPress website set up. You can see that the domain has been changed successfully and a 500 internal server error appears for your previous URL ( Next, we need to change the site URL of our WordPress and therefore, we need to access the database. Once you are done, you need to restart Apache and MySQL from the XAMPP control panel and check whether opens up in your browser. Next, open the Host file in your text editor and add the following line in the Host file. Now, go to Windows > Search > Run and paste the following line: C:\Windows\System32\drivers\etc\hosts
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |