Giter Site home page Giter Site logo

darkwhispering / newvhost Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 10 KB

Simple script to help you create new Apache virtual hosts quickly and pain free. With the optional step to also create a mysql database and user for your new virtual host.

Shell 100.00%

newvhost's Introduction

Not maintained

NEWVHOST SCRIPT

Simple script to help you create new Apache virtual hosts quickly and pain free. With the optional step to also create a mysql database and user for your new virtual host.

Requirements

  • Apache 2.4+
  • MySQL 5+
  • User with sudo access

Installation

  1. Download the files and upload to any location on your server.
  2. Edit the first section of newvhost after your needs.
  3. Give the installer script execution permission with chmod +x installer
  4. Run the installer with sudo ./installer
  5. Use the now available sudo newvhost command to create your first virtual host.

When finished the installation you can safely delete the files you downloaded.

Uninstallation

  1. Give the uninstaller script execution permission with chmod +x uninstaller
  2. Run the uninstaller with sudo ./uninstaller
  3. Done

Configuration

Variable Default value Description
tSERVERUSER root User to user for permissions
tLOCATION /var/www Location to host all virtual hosts (recommended is the home folder of the user specified above)
tLOCATIONSAFE /var/www Safe ocation path, must be same as tLOCATION!
tDBPW null

Tested environment

The script have been tested succefully on a clean machines running

  • Ubuntu 14.04 LTS with Apache 2.4 and MySQL Server 5.5
  • Debian 7.5 with Apache 2.4 and MySQL Server 5.5

Special thanks

Special thanks to my friend Tzunamii for the original script and code.

By me a beer

Like and use any of my pluings and scripts? Me too!

By me a beer

Changelog

v1.1.0 (2015-02-18)

  • Updated vhost templet for Apache 2.4+
  • Added some more comments to newvhost script
  • Added required section to readme
  • Smaller changes to readme

v1.0.0 (2014-07-13)

  • First release

newvhost's People

Contributors

darkwhispering avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

silverbull

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.