Xampp Public Server

The extra work you need to do is adding name-server of FreeDNS in your domain. Setup Apache for VirtualHosts. Navigate to C:/xampp/apache/conf/extra or wherever your XAMPP files are located. Open the file named httpd-vhosts.conf with a text editor. You can see all lines are commented using #. At the bottom of the text put this code. Follow the below steps to Change localhost to custom domain name in XAMP server. 1) Open the file C: Windows System32 drivers etc and edit “as Administrator” = hosts file. Add the below line and save the file. phpcodez.com. 2) Edit httpd-vhosts.conf file (In my system E: xampp apache conf extra and edit httpd-vhosts.conf ). Open Command Terminal. Go to your Ubuntu or Debian based Linux systems and open the. As a network administrator, I would never green light hosting anything public on XAMPP but that is a different issue. Nikki05 August 30, 2014, 3:44pm #12.

In case you don’t want to use PHP’s built-in webserver, you can set up your Apache environment on Windows to run Laravel with a custom local domain like laravel.test.


This tutorial starts from the point where Apache, MariaDB/MySQL andPHP are already installed on your PC. If you don’t have them yet, justdownload and install XAMPP.

Download xampp server windows 10

You should also have Composerinstalled, which is a dependency manager for PHP. If you download itnow, use the installer, it will set up your PATH so that you can call composer from any directory in your command line.

For people who use XAMPP or something similar for web development, Laravel’s command line installs and operations might be repulsive in the beginning. But since many modern dev tools require typing commands in terminal (e.g.: NodeJS, Composer), you’ll have to get used to them inevitably. To make your life easier, I would like to recommend you a better, free terminal tool instead of the default Windows cmd interface. It’s called ConEmu. Among many nice features, it handles multiple tabs, remembers the directory where you were last time and supports copy paste properly. Once you complete this tutorial, you don’t have to type php artisan serve anymore, at least. 🙂


Install Laravel globally and create a project

Xampp Public Server

If you already have a Laravel project in the root of your webserver then you can skip this section and jump to the next.

Open a terminal and run the following command: composer global require laravel/installer to install Laravel globally. Once it’s done, you can create a fresh Laravel project with the laravel new command in the directory you’re in. In your terminal go to the root of your webserver (e.g.: cd C:xampphtdocs) and run laravel new your_project. Hon exposure.

Custom domain for your Laravel project on localhost

Install Xampp Server

Now dream a custom domain for your project. We will use laravel.test in this tutorial. Go to the following folder C:WindowsSystem32driversetc and open the hosts file, paste the following line and save it.

By doing this we tell Windows to direct laravel.test domain to our localhost. Don’t worry, http://localhost will remain available as well.

Now we will create a virtual host in Apache and we will instruct ourserver to load the contents of a specific folder when someone requeststhe laravel.test URL. The specific folder is your Laravel project’s public directory. Find the httpd-vhosts.conf file in your Apache’s conf directory, e.g.: C:xamppapacheconfextrahttpd-vhosts.conf, open it, paste the following lines and save it.

Now start/restart your apache server and visit laravel.test in your preferred browser. Your laravel project should be up and running there.

How To Configure Xampp Server

That’s it! Happy coding!

If you are a PHP/MySQL developer or administrator who need to test configuration of Apache web server, you may want to setup local Apache web server to test your developed script or configuration before deploy to production environment. You can manually install and configure Apache, PHP and MySQL on your local computer. But it takes time and requires some skill to configure these applications. If you are looking for an easier solution, you may be interested in this article.

Localhost Xampp

Few years ago, I wrote an article about how to setup Apache web server using AppServ. Now there are many software similar to AppServ so I decide to write a new fresh one. But instead of using the same software as the previous article, I will use XAMPP this time. XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. At the moment there are four XAMPP distributions: Windows, Linux, Mac OS and Solaris. See XAMPP for more information.

Xampp Public Server Download

XAMPP is not meant for production use but only for developers in a development environment. XAMPP is configured is to be as open as possible and to allow the web developer anything he/she wants. For development environments this is great but in a production environment it could be fatal.
Reference:XAMPP security consoleThis article will show you how to setup Apache web server with PHP/MySQL using XAMPP on Windows 7 (x64). The current version of XAMPP is 1.7.4. It comes with PHP 5.3.5 so if you don’t plan to use this PHP version, you should download the older version of XAMPP instead.

Step-by-step to setup Apache web server using XAMPP

Online Xampp Server

  1. Download XAMPP for Windows. Browse to www.apachefriends.org/en/xampp.html and click XAMPP for Windows.
  2. Scroll down to Download section, there are 3 formats which you can choose to download. In this example, I select ZIP format.
  3. Unzip the file into the folder of your choice. If you extract XAMPP in a top level folder like “C:” or “D:”, you can skip to step 5. Otherwise, you have to run “setup_xampp.bat” in xampp folder. In this example, I extract to C: so I can skip to step 5.
  4. Here is the screenshot of the execution of file setup_xampp.bat.
  5. Open XAMPP Control Panel by right-click on xampp-control.exe and select Run as administrator.
    Note: If you’re using Windows XP, you just double-click on the file.
  6. On XAMPP Control Panel Application, select Svc checkbox of Apache and click OK. This will install Apache as a service on this computer.
  7. Click Start to start Apache web server.
  8. Repeat step 6-7 on MySQL. Now Apache and MySQL are installed as Windows services and already started.
  9. You can check if the services are really installed on the computer by click SCM.
  10. On Services, you will see Apache and MySQL services are started and startup type are set to Automatic which means that services will be started automatically when the computer starts.
  11. Now it’s time to test, browse to “http://localhost” or “”. You will see the screen as below. This is XAMPP’s splash screen, select English language.
  12. Here is the XAMPP’s main page. You can view other pages using navigation menu on the left side. For example, XAMPP’s status to see which components are running, security page to view current security configuration of the XAMPP installation, etc.
  13. The main directory for all WWW documents is xampphtdocs. If you put a file “test.html” in this directory, you can access it with the URI “http://localhost/test.html”.
  14. You can manage MySQL using phpMyAdmin by browse to “http://localhost/phpmyadmin” or you can select phpMyAdmin link on the XAMPP’s main page (in Tools section).
    Note: By default, the root’s password is empty (blank password).