Resolved problem creating multi level alias
Posted by: tony_arcucci (---.alida.it)
Date: September 26, 2014 04:09PM

Wamp Version 2.5

Adding an alias with textual wizard like subpath1/subpath2 receive an error 'unable to create conf file'
that because Wamp try to create a file named subpath1/subpath2.conf, in Windows is impossible.

So I changed line 123 of file \wamp\scripts\addAlias.php

from

file_put_contents($aliasDir.$newAliasDir.'.conf',$newConfFileContents) or die ("unable to create conf file"winking smiley;

to

file_put_contents($aliasDir.str_replace('/', '_', $newAliasDir).'.conf',$newConfFileContents) or die ("unable to create conf file"winking smiley;

now, new file .conf is named subpath1_subpath2.conf, it's works.


Ciao!

Tony Arcucci
Napoli (Italy)

Options: ReplyQuote
Re: Resolved problem creating multi level alias
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: September 26, 2014 04:28PM

You are much better advised to use Virtual Hosts and not Alias's

See this post WAMPServer 2.5 The Homepage, Your Projects Menu and the need for Virtual Hosts

This was written for WAMPServer 2.5 but is relevant to any version of WAMPServer or Apache.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Resolved problem creating multi level alias
Posted by: tony_arcucci (---.alida.it)
Date: October 06, 2014 03:40PM

Yes, I use virtual host too, but it does not mean that there was no error in file addAlias.php

Options: ReplyQuote


Sorry, only registered users may post in this forum.