Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting VHosts working with EasyPHP

So I've been trying to setup vhosts on my new Windows 10 Installation with EasyPHP Devserver 16.1.

I've modified etc/vhosts to include my new domain (mysite.local), which works, but still points to the default easyphp directory. So I modified httpd-vhosts.conf to point that domain to my new directory:

<VirtualHost *:80>
    DocumentRoot "C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www"
    ServerName localhost
</VirtualHost>
<VirtualHost *:80>
    DocumentRoot "C:\Users\Chris\Documents\Web_Development\mysite"
    ServerName mysite.local
</VirtualHost>

However when I start the server, it wipes this file so that it's just blank, and my domain still points to the default easyphp directory. What would be causing this/how can I fix it?

I've tried putting the vhosts directly into httpd.conf, however that doesn't change anything, still my new domain points to the default folder.

I'm really not getting anywhere with this and I absolutely need vhosts working so I can work on multiple sites.

I could go back to Xampp, which is what I used on Mac OS, however I had an ongoing issue with that where PHPExcel didn't export properly so I'd like to try with Easy PHP

like image 424
Chris Avatar asked Mar 16 '16 01:03

Chris


People also ask

Is EasyPHP open source?

OPEN SOURCE / FREE TO USE.

Where is Httpd Vhosts conf in xampp?

First, you need to navigate to D:\xampp\apache\conf\extra or wherever your XAMPP files are located. In my case, my XAMPP file is located in drive D. Then, edit httpd-vhosts. conf with any text editor.


1 Answers

At the end of your httpd.conf add : Include conf/whateveryouwant.conf And put your virtual hosts in this file

like image 104
EasyPHP Avatar answered Oct 22 '22 01:10

EasyPHP