![]() You are viewing this HTML file from a device via LAN Create Test Page inside the root directory of htdocsįor testing purposes, we will create a sample page located in the root directory of htdocs in xampp ( C:\xampp\htdocs) namely mywebpage.html with the following content: After doing this with both processes ( Apache HTTP Server and mysqld), the processes should have now a green checked icon, for example with Apache:Īfter allowing inbound connections, you should be ready now to test from other device. In this menu, the default section General should be visible and you will find the Action sub-group, in this area select the Allow the connection option:Īnd apply changes. Select every option respectively, do right click on them and select Properties: On the Windows Defender Firewall With Advanced Security you should be able to find the Apache HTTP Server and mysqld rules. In Windows you can easily do this accesing the firewall settings and searching for the Advanced Settings menu. Allow Inbound Connections for Apache and MySQL on the FirewallĪs first step, considering that you have XAMPP already installed and fully functional on your own computer (the host), you will need to allow inbound connections to the Apache (HTTPD) and MySQL (MYSQLD) rules on the firewall of your computer. Another device to check if its working (we'll use a mobile device connected to the same Wi-Fi network).ġ.XAMPP needs to be already installed (Apache and MySQL services are not required to be installed as services).In this short article, we will explain you how to access the htdocs directory of your xampp instance from another device in the same local area network. I quoted the we can't because it's actually possible to do this in xampp, however not everybody knows how to do it. "We can't" access easily local sites from other devices, for example on mobile devices or even when you need to show your page to some workmate. To adjust to our need we only have to edit the values of the php.ini that is on the route:Īnd with this, I believe that they are the most basic concepts of using XAMPP that more than one novice will use.While working on some projects that required to be tested on mobile devices (not emulated as i needed the camera), a common problem that a lot of developers have, came in. This configuration file is often very useful because the configurations that PHP usually comes with are not enough. ![]() If your project is in /opt/lampp/htdocs/web/index.php, in the address bar you type localhost / web / index.php. If you put the file "test.php" in / opt / lampp / htdocs /, in the address bar you write localhost / test.php. If you have already placed your project, try it inside the XAMPP folder and you want to view it in the browser you just have to type in the address bar localhost or 127.0.0.1. How to view my XAMPP tests in the browser? ![]() If you are only creating in HTML, CSS JavaScript will have no major problem since browsers interpret these languages without major problem.īut if it is PHP is when the problem arises, you just have to make sure that the Apache and MariaDB services are running without problems. One of the most common errors is that they do not place the files inside the indicated folder, in the previous point the route was given, another that usually happens a lot to newbies is that they do not have the Apache or MariaDB daemon started. ![]() opt / lampp / htdocs How to see my web pages created in XAMPP? If you do not know where is the location where you should place your projects to carry out your tests or simply place your web pages and be able to view them from the browser the route is as follows: You just have to look for his manager in your application menu.Īlso if you prefer you can run these services from the terminal, to do this you just have to run the following commands:įor start XAMPP sudo /opt/lampp/lampp startįor stop XAMPP sudo /opt/lampp/lampp stopįor restart XAMPP sudo /opt/lampp/lampp restart Where is the XAMPP folder? In order to run all the services that make up XAMPP, you can do it by running its manager, with which we can start or stop the service daemons.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |