Skip to content

marcoskubis/avhCreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

avhCreator

PHP Apache Virtual Host Creator for WAMP

Configuration

The first thing to do is config only three varables:

  • The wamp's www path.
$www_dir = 'C:/wamp/www/';
  • The httpd-vhosts.conf file location. Here, almost in all of the cases the only thing that changes is the version of apache.
$httpdVhosts = 'C:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf';
  • The apache service name. This might be wampapache64 for 64 bits machines, or wampapache for 32 bits.
$apache_service_name = 'wampapache64';

Running

First, download the avhCreator file from this repository.
Open the prompt (or similar) as Administrator and run this command:

cd /location/of/avhCreator/file
php avhCreator <serverName> <publicFolder>

Parameters

Parameter Required Default value Description
serverName yes The name of the server that you want create.
Ex.: myecommerce.app, myblog.app, ...
publicFolder no public The public folder for your server.
Ex.: public, public_html, web, ...
#### Example
php avhCreator myblog.app public_html
And then, go to http://myblog.app

About

Apache Virtual Host Creator with PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published