![]() #this is the second vhost address in XAMPP for project like LaravelĭocumentRoot "C:/vhost/Laravel-Blog/public" #this is the first vhost address in XAMPP Open nf file C:nf Add following code in line depending on how many vhost you want to create:.In c:vhost folder we create a sub-folder domain1 or project1 or any other, it is up to you ( c:vhostproject1).Create a folder for your projects I have create one in c:vhost you can call it projects etc.However, if you need to develop many projects then it suggested separating them by virtual host, as mentioned earlier. Note: By default server documents are locate on C:XAMPPhtdocs or C:Bitnamiwampstackapache2htdocs that’s fine if you have only one project or many small test files. While we have nf file open we need to ensure that nf is included: Or you find the file here C:nf, C:nf, C:nf or C:nf or similar location. If left default, then jump to Setting virtual host – If you keep Apache to default port 80, skip this part and move on to Virtual hostsĬhange XAMPP/WAMP port (only if necessary) – For next section, we need to use text editor like notepad or regular IDE. I have chosen to change my Apache to port 8080. OR Change your others software/IIS port and keep Apache to default port 80 in case of Skype, just kill the Skype app and restart it after installing Apache on port 80, Skype will automatically get new port.or some other free ports (note: 8080 can some times also give some problems) Change your Apache port to port 8080, 8081 etc.*Note: By default, most web servers will uses port 80 as default port, in some situation if you have another web server installed like (Microsoft IIS), it uses port 80 as well OR in other cases SKYPE does also some times use port 80 like it is the case for some in Windows 8/10 for some users, in that case you can do two thing’s Btw, in my case, I have only installed Apache and MySQL. You are expected to have installed the latest version of XAMPP/WAMP. Project 4 is a WordPress with url wordpress.locathost.Project 3 is a Codeigniter with url codeigniter.locathost.Project 2 is a Laravel project with url laravel.localhost.Project 1 is based on php and has local url address php.localhost.Introduction: vhost (virtual host) is a great solution if you intend to develop many independent project in php and keep them isolated from each others, like: ![]() Note: To start with, the only difference for this guideline, between XAMPP and WAMP or other Apache packages for Windows, is question where those packages are installed on your computer.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |