All Projects → ousamabenyounes → ShellVhostManager

ousamabenyounes / ShellVhostManager

Licence: Apache-2.0 license
Helps you managing LAMP basic needs (virtualHost, Ftp users, Mysql Database)

Programming Languages

shell
77523 projects
Smarty
1635 projects

Projects that are alternatives of or similar to ShellVhostManager

Familamp
Cloud-synchronized lamps
Stars: ✭ 59 (+73.53%)
Mutual labels:  lamp
Lnmp
LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RHEL/Fedora/Aliyun/Amazon、Debian/Ubuntu/Raspbian/Deepin/Mint Linux VPS或独立主机安装LNMP(Nginx/MySQL/PHP)、LNMPA(Nginx/MySQL/PHP/Apache)、LAMP(Apache/MySQL/PHP)生产环境的Shell程序。
Stars: ✭ 2,119 (+6132.35%)
Mutual labels:  lamp
exploit-CVE-2015-3306
ProFTPd 1.3.5 - (mod_copy) Remote Command Execution exploit and vulnerable container
Stars: ✭ 97 (+185.29%)
Mutual labels:  proftpd
Setup
My own front end web development set up, covering everything from operating system to analytics.
Stars: ✭ 93 (+173.53%)
Mutual labels:  lamp
Vagrant Lamp Bootstrap
A super-simple Vagrantfile / bootstrap.sh to setup a LAMP stack inside Vagrant 100% automatically
Stars: ✭ 132 (+288.24%)
Mutual labels:  lamp
Lamp
Install LAMP(Linux + Apache + MySQL/MariaDB + PHP ) for CentOS/Debian/Ubuntu
Stars: ✭ 2,456 (+7123.53%)
Mutual labels:  lamp
Drucker
drucker: Drupal + Docker - Spin up Drupal, Lightning or BLT in seconds.
Stars: ✭ 26 (-23.53%)
Mutual labels:  lamp
TwistPHP
A fresh, new PHP MVC framework built from the ground up
Stars: ✭ 27 (-20.59%)
Mutual labels:  lamp
Oneinstack
OneinStack - A PHP/JAVA Deployment Tool
Stars: ✭ 1,983 (+5732.35%)
Mutual labels:  lamp
proftpd-mod proxy
FTP proxy support for ProFTPD
Stars: ✭ 35 (+2.94%)
Mutual labels:  proftpd
Lamp Yum
Yum Install LAMP(Linux + Apache + MySQL/MariaDB + PHP ) for CentOS
Stars: ✭ 93 (+173.53%)
Mutual labels:  lamp
Vagrant Php7
A simple Vagrant LAMP setup with PHP 7.1 running on Ubuntu 16.04 LTS
Stars: ✭ 112 (+229.41%)
Mutual labels:  lamp
Lnmp
LEMP stack/LAMP stack/LNMP stack installation scripts for CentOS/Redhat Debian and Ubuntu
Stars: ✭ 2,488 (+7217.65%)
Mutual labels:  lamp
Open Desk Lamp Firmware
Open source firmware for the xiaomi desk lamp
Stars: ✭ 78 (+129.41%)
Mutual labels:  lamp
prestafony-project
Some resources to help you migrate PrestaShop to Symfony 3
Stars: ✭ 12 (-64.71%)
Mutual labels:  prestashop
Desk Lamp Alternative Firmware
An alternative firmware for the Mijia Xiaomi Desk Lamp
Stars: ✭ 54 (+58.82%)
Mutual labels:  lamp
Php Examples For Aws Lambda
Demo serverless applications, examples code snippets and resources for PHP
Stars: ✭ 177 (+420.59%)
Mutual labels:  lamp
omeka-s-docker
Omeka-S in Docker containers.
Stars: ✭ 18 (-47.06%)
Mutual labels:  lamp
productcomments
PrestaShop module that allows users to post reviews and rate products.
Stars: ✭ 29 (-14.71%)
Mutual labels:  prestashop
Baota
宝塔Linux面板 - 简单好用的服务器运维面板
Stars: ✭ 3,163 (+9202.94%)
Mutual labels:  lamp

ShellVhostManager

This shell script helps you managing LAMP basic needs (virtualHost, Ftp users, Mysql Database) You have a linux server, and you always lose time configuring your websites, downloading last cms versions, installing mysql databases... This script will help you earn time and let you focus on managing your contents.

This shell script was developped & tested on an Ubuntu 12.10

Configuration

First, rename conf.sh.dist to conf.sh
And then you must just specify your mysql administrator login & password.

Usage

ShellVhostManager.sh -H -d -p -f -m -l -c -v -s -h -t -r -k
  -H: Host .  
  -p: Project name.  
  -d: Domains(fr|com|net).  
  -f: Ftp User Name (will generate user pwd)  
  -m: Mysql username (will generate user pwd) DB name will be the host name  
  -l: Passwords length. (default 10 chars)  
  -c: CMS/Framework/Repository to install (allowed values are: wordpress, prestashop, sf2, owncloud, seafile, import, git, hg, svn)  
  -v: CMS/Framework Version (By Default last version is allready set)  
  -s: Subdomain.  
  -h: Print this Help.  
  -t: Log Type (echo|file) to get silent mode set it to file."  
  -r: Repository url we want to clone (git/hg/svn)    
  -k: Keep this vhost protected with htaccess/htpasswd (login|passwd)   
 

Sample

$ ./bin/ShellVhostManager.sh -p myprojects -H prestashop -d "fr|com|tk" -f ous -c prestashop -m DbUsr -D DbName
  • First This will create web root directory (/var/www/myprojects/prestashop.fr/
  • Create log directory & files (/var/log/apache2/myprojects/prestashop.fr/error.log & access.log
  • Create FTP user: ous:ftpgroup with home directory => previous created web root dir
  • Create MySQL config: database=prestashop User=ous Pwd=generatedPasswd
  • Create Vhost: /etc/apache2/site-available/prestashop.fr from a vhost template
    Also added aliases for the given extentions: fr & com & tk
    Enable the vhost & reload apache
  • Add "127.0.0.1 prestashop.fr" on your /etc/hosts file
  • Download last version of prestashop and install it on your web root directory (chown with the ftp user)

If you choose option "-c import ", you'll be asked your FTP host:login:pwd and it will download all available files You must set a dump file of your mysql database, so it will install it with the previously created mysql user

Here is the Generated VHOST content:

<VirtualHost *:80>
    ServerName prestashop.fr
    ServerAlias  www.prestashop.fr prestashop.fr www.prestashop.com prestashop.com www.prestashop.tk prestashop.tk
    DocumentRoot /var/www/myprojects/prestashop.fr
    
    ErrorLog /var/log/apache2/myprojects/prestashop.fr/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/myprojects/prestashop.fr/access.log combined
</VirtualHost>

#Requirements

  • proftpd => apt-get install proftpd
  • logrotate => apt-get install logrotate
  • Lamp Basics (Apache, MySql, Php)

#Todo

  • fix owncloud data directory right?
  • Add Local Cache (like composer's cache => .composer path on home directory)
  • Add others web project content:
    Cloud opensource project (owncloud or seafile...)
  • Fix Linux compatibility issues (apache home directory, log change...)
  • Add Nginx feature (asked by Melvyn)
  • Check /etc/hosts content before updating
  • Vhost BackUp commands
  • Add docker & configure it to a real project isolation (security, light backup...)
  • Study capifony integration (asked by rocky)
  • Publish a video & a blog article to present some real sample
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].