Welcome Guest, Not a member yet? Register   Sign In
Automatic/Push Button site folder/vhost creation in Linux via CI/PHP
#3

[eluser]Devon Lambert[/eluser]
[quote author="n0xie" date="1274364339"]You can just write a bash script, then call that from within PHP. This is my addsite.sh I call when starting a new project which takes care of vhost and hosts file[/quote]

Hey Noxie,

Does this code actually make an addition to the existing vhost/host files OR does it create a new vhost/host file for each site?

Pardon my stupidity on this one, I only ask because I do not see where the actual site/domain is being defined?

i.e. How do you tell the script that your adding www.mygreatnewsite.com to the file and also how does it know that this new site is supposed to reference the same ip address as every other site already on file?

Thanks again for this, I'm sure once I figure it out it will be immensely useful.


Messages In This Thread
Automatic/Push Button site folder/vhost creation in Linux via CI/PHP - by El Forum - 05-20-2010, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB