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]

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
PhPMyAdmin 4.8.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
PhPMyAdmin 4.8.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
PhPMyAdmin 4.8.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
PhPMyAdmin 4.8.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.4/7.1.16/7.0.29/5.6.35 - MySQL 5.7.22 - MariaDB 10.2.14
PhPMyAdmin 4.8.0 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.