Can't create a virtual domain
Posted by: Ed767 (---.syrcny.fios.verizon.net)
Date: April 11, 2018 06:35PM

I have created many virtual domains in the past with wampserver, but now everytime i go to the Add a VirtualHost panel and paste in the complete absolute path to the virtualHost and the name of the virtual Host and click “Start the creation of the virtualHost” button I get the error message
c:/users/edkna/onedrive/documents/mysites/site1 does not exist or is not a directory. the directory does exist and i was careful to put the correct path to it.
any ideas why I am getting this message?

thanks!

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Otomatic (Moderator)
Date: April 11, 2018 07:29PM

Hi,

OneDrive problem.

See all the thread : [forum.wampserver.com]

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Ed767 (---.syrcny.fios.verizon.net)
Date: April 11, 2018 08:52PM

I put the directory on my desktop to avoid OneDrive:

C:\Users\edkna\Desktop\allsites\site1\

but I still get the message:

C:\Users\edkna\Desktop\allsites\site1\ does not exist or is not a directory. the directory does exist

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Otomatic (Moderator)
Date: April 12, 2018 11:07AM

Hi,

c:\Users\Dominique\Desktop\allsites\concorde\ works well.

I think you don't have sufficient rights to access the folder.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Ed767 (---.syrcny.fios.verizon.net)
Date: April 14, 2018 02:21PM

It doesn't seem like not having sufficient rights would be the problem. It doesnt matter what folder or where i put it, i get the same message.It worked fine 6 months ago. and it's my computer and I have all administrative rights on it. Any other ideas?

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Otomatic (Moderator)
Date: April 14, 2018 02:50PM

Hi,

> C:\Users\edkna\Desktop\allsites\site1\ does not exist or is not a directory.

Are you sure this is the correct and complete error message, with backslashes in the path?

I ask you this question because, before checking with PHP instructions (file_exists() and is_dir()), any backslashes (\) in the path are replaced by slashes (/) and the error message should have slashes and not backslashes.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Ed767 (---.syrcny.fios.verizon.net)
Date: April 14, 2018 03:14PM

the exact error message is:

c:/users/edkna/desktop/allsites/site1 does not exist or is not a directory


I appreciate your help and for sticking with me on this!

what do you think I should try ?

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Otomatic (Moderator)
Date: April 14, 2018 03:34PM

Hi,

You can try to add clearstatcache(); in wamp\www\add_vhost.php file.about on line 332, like this :
	/* Validité du nom de domaine */
	clearstatcache(); // added for update 3.1.4
	if(preg_match('/^
		(?=.*[A-Za-z]) # at least one letter somewhere
For possible explanations see the PHP documentation : clearstatcache

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Ed767 (---.syrcny.fios.verizon.net)
Date: April 14, 2018 03:52PM

I inserted: clearstatcache();

just before:
if(preg_match('/^
(?=.*[A-Za-z]) # at least one letter somewhere


to make it:

/* Validité du nom de domaine */
clearstatcache();
if(preg_match('/^
(?=.*[A-Za-z]) # at least one letter somewhere



restarted the dns
then did a retry to create the virtual domain
and got the same error message

Options: ReplyQuote
Re: Can't create a virtual domain
Posted by: Otomatic (Moderator)
Date: April 14, 2018 04:18PM

Hi,

The folder name on the disk must not have whitespaces or tab at the beginning or end because a trim() PHP instruction is done over it : strip_tags(trim($_POST['vh_folder'])). vh_folder is the complete path.

trim
strip-tags

After that, I admit that I don't see what or where to look to find where this problem comes from.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.