{"id":15145679,"url":"https://github.com/ousamabenyounes/shellvhostmanager","last_synced_at":"2025-08-01T08:09:34.360Z","repository":{"id":9686704,"uuid":"11632834","full_name":"ousamabenyounes/ShellVhostManager","owner":"ousamabenyounes","description":"Helps you managing LAMP basic needs (virtualHost, Ftp users, Mysql Database)","archived":false,"fork":false,"pushed_at":"2016-04-01T21:13:24.000Z","size":20039,"stargazers_count":34,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-01-30T22:03:38.664Z","etag":null,"topics":["lamp","mysql","prestashop","proftpd","shell","vhost","vhost-builder"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ousamabenyounes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-24T11:10:59.000Z","updated_at":"2023-11-19T23:04:55.000Z","dependencies_parsed_at":"2022-09-24T05:51:32.196Z","dependency_job_id":null,"html_url":"https://github.com/ousamabenyounes/ShellVhostManager","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousamabenyounes%2FShellVhostManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousamabenyounes%2FShellVhostManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousamabenyounes%2FShellVhostManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ousamabenyounes%2FShellVhostManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ousamabenyounes","download_url":"https://codeload.github.com/ousamabenyounes/ShellVhostManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237896634,"owners_count":19383556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lamp","mysql","prestashop","proftpd","shell","vhost","vhost-builder"],"created_at":"2024-09-26T11:41:42.892Z","updated_at":"2025-02-09T02:31:43.201Z","avatar_url":"https://github.com/ousamabenyounes.png","language":"Shell","readme":"ShellVhostManager\n=================\n\nThis shell script helps you managing LAMP basic needs (virtualHost, Ftp users, Mysql Database)\nYou have a linux server, and you always lose time configuring your websites, downloading last cms versions, installing mysql databases...\nThis script will help you earn time and let you focus on managing your contents.\n\nThis shell script was developped \u0026 tested on an Ubuntu 12.10 \n\nConfiguration\n=================\n\nFirst, rename conf.sh.dist to conf.sh  \nAnd then you must just specify your mysql administrator login \u0026 password.  \n\n\nUsage\n=================\n\n\u003cpre\u003eShellVhostManager.sh -H -d -p -f -m -l -c -v -s -h -t -r -k\n  -H: Host .  \n  -p: Project name.  \n  -d: Domains(fr|com|net).  \n  -f: Ftp User Name (will generate user pwd)  \n  -m: Mysql username (will generate user pwd) DB name will be the host name  \n  -l: Passwords length. (default 10 chars)  \n  -c: CMS/Framework/Repository to install (allowed values are: wordpress, prestashop, sf2, owncloud, seafile, import, git, hg, svn)  \n  -v: CMS/Framework Version (By Default last version is allready set)  \n  -s: Subdomain.  \n  -h: Print this Help.  \n  -t: Log Type (echo|file) to get silent mode set it to file.\"  \n  -r: Repository url we want to clone (git/hg/svn)    \n  -k: Keep this vhost protected with htaccess/htpasswd (login|passwd)   \n \u003c/pre\u003e\n\nSample\n=================\n\n\n\n    $ ./bin/ShellVhostManager.sh -p myprojects -H prestashop -d \"fr|com|tk\" -f ous -c prestashop -m DbUsr -D DbName\n\n- First This will create web root directory (/var/www/myprojects/prestashop.fr/\n- Create log directory \u0026 files (/var/log/apache2/myprojects/prestashop.fr/error.log \u0026 access.log\n- Create FTP user: ous:ftpgroup with home directory =\u003e previous created web root dir\n- Create MySQL config: database=prestashop User=ous Pwd=generatedPasswd\n- Create Vhost: /etc/apache2/site-available/prestashop.fr from a vhost template  \nAlso added aliases for the given extentions: fr \u0026 com \u0026 tk  \nEnable the vhost \u0026 reload apache \n- Add \"127.0.0.1 prestashop.fr\" on your /etc/hosts file\n- Download last version of prestashop and install it on your web root directory (chown with the ftp user)\n\nIf you choose option \"-c import \", you'll be asked your FTP host:login:pwd and it will download all available files\nYou must set a dump file of your mysql database, so it will install it with the previously created mysql user\n\nHere is the Generated VHOST content:\n\n\n    \u003cVirtualHost *:80\u003e\n        ServerName prestashop.fr\n        ServerAlias  www.prestashop.fr prestashop.fr www.prestashop.com prestashop.com www.prestashop.tk prestashop.tk\n        DocumentRoot /var/www/myprojects/prestashop.fr\n        \n        ErrorLog /var/log/apache2/myprojects/prestashop.fr/error.log\n\n        # Possible values include: debug, info, notice, warn, error, crit,\n        # alert, emerg.\n        LogLevel warn\n\n        CustomLog /var/log/apache2/myprojects/prestashop.fr/access.log combined\n    \u003c/VirtualHost\u003e\n\n\n#Requirements\n\n- proftpd =\u003e apt-get install proftpd \n- logrotate =\u003e apt-get install logrotate\n- Lamp Basics (Apache, MySql, Php)\n  \n#Todo\n- fix owncloud data directory right?\n- Add Local Cache (like composer's cache =\u003e .composer path on home directory)  \n- Add others web project content:  \n Cloud opensource project (owncloud or seafile...)  \n- Fix Linux compatibility issues (apache home directory, log change...)  \n- Add Nginx feature (asked by Melvyn)  \n- Check /etc/hosts content before updating  \n- Vhost BackUp commands  \n- Add docker \u0026 configure it to a real project isolation (security, light backup...)  \n- Study capifony integration (asked by rocky)  \n- Publish a video \u0026 a blog article to present some real sample  \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousamabenyounes%2Fshellvhostmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fousamabenyounes%2Fshellvhostmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fousamabenyounes%2Fshellvhostmanager/lists"}