{ "info": { "author": "GoTLiuM InSPiRiT", "author_email": "gotlium@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "--------------------------------------------------------------\n ABOUT\n--------------------------------------------------------------\nPackage for control apache/nginx virtual hosts, mysql/ftp\nusers, bind zones, apache clients certificates on\ndeveloper/production web-hosts. Tested on\nUbuntu/Debian Linux.\nPublished under GNU GPL v.2.\n--------------------------------------------------------------\n\n##############################################################\n\n--------------------------------------------------------------\n INSTALLATION\n--------------------------------------------------------------\nApache Host Control:\n--------------------------------------------------------------\n $ sudo -i\n # apt-get update && apt-get upgrade -y\n # apt-get install -y python-pip python-mysqldb python-flup git-core make python-pycurl\n # cd /usr/src/ && git clone https://github.com/gotlium/ahc.git\n # cd ahc/ && pip install -r requirements.txt && make install\n\nOR using pip:\n\n # sudo pip install ahc\n\nAfter installation, you can install system packages and firewall:\n # ahc -m install -s lamp\n # ahc -m install -s firewall\n--------------------------------------------------------------\n\n##############################################################\n\n--------------------------------------------------------------\n USAGE\n--------------------------------------------------------------\nApache hosts:\n--------------------------------------------------------------\n# ahc -m install -s apache2_ssl\n# ahc -m test -s apache\n# ahc -m apache -t php -a example.com\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nNginx hosts:\n--------------------------------------------------------------\n# ahc -m install -s nginx_ssl\n# ahc -m test -s nginx\n# ahc -m nginx -t php -a example.com\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nFTP accounts:\n--------------------------------------------------------------\n# ahc -m install -s ftp\n# ahc -m test -s ftp\n# ahc -m ftp -a example.com -u User -p Password\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nMySQL accounts:\n--------------------------------------------------------------\n# ahc -m install -s mysql\n# ahc -m test -s mysql\n# ahc -m mysql -a example.com -u User -p Password\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nBind zone:\n--------------------------------------------------------------\n# ahc -m install -s bind\n# ahc -m test -s bind\n# ahc -m bind -a example.com -i 127.0.0.1\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nGit deployment:\n--------------------------------------------------------------\n# ahc -m test -s git\n# ahc -m git -a example.com\n# ahc -m git -d example.com\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nGit jail:\n--------------------------------------------------------------\nahc -m test -s git_jail\nahc -m git_jail -a mail@example.com -p 'TYPE KEY-STRING COMMENT'\nahc -m git_jail -d mail@example.com\nahc -m git_jail -l\nahc -m git_jail -i example.com -e templates -u mail@example.com\nahc -m git_jail -i example.com -f templates -u mail@example.com\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nProject Protection\n--------------------------------------------------------------\n# ahc -m test -s crypt\n# ahc -m crypt -a mount\n# ahc -m crypt -a umount\n--------------------------------------------------------------\n\n--------------------------------------------------------------\niRedMail\n--------------------------------------------------------------\n# ahc -m install -s mail\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nFirewall:\n--------------------------------------------------------------\n# ahc -m install -s firewall\n# iptables -L -n\n or\n# cat /etc/init.d/rc.fw\n--------------------------------------------------------------\n\n##############################################################\n\n--------------------------------------------------------------\n EXAMPLES\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nApache2\n--------------------------------------------------------------\n# ahc -m apache -t php -a hostname -o -x\n# ahc -m apache -t php -d hostname\n# ahc -m apache -t php -e hostname\n# ahc -m apache -t php -f hostname\n# ahc -m apache -t php -l\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nNginx\n--------------------------------------------------------------\n# ahc -m nginx -t php -a hostname\n# ahc -m nginx -t php -d hostname\n# ahc -m nginx -t php -e hostname\n# ahc -m nginx -t php -f hostname\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nFTP\n--------------------------------------------------------------\n# ahc -m ftp -a hostname -u user -p password\n# ahc -m ftp -a hostname -u user -p random\n# ahc -m ftp -a hostname -u user -p password -f folder\n# ahc -m ftp -a hostname\n# ahc -m ftp -d hostname\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nMySQL\n--------------------------------------------------------------\n# ahc -m mysql -a hostname -u user -p password\n# ahc -m mysql -a hostname -u user -p random\n# ahc -m mysql -a hostname\n# ahc -m mysql -d hostname -u user\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nBind9\n--------------------------------------------------------------\n# ahc -m bind -a hostname -i ip-address\n# ahc -m bind -d hostname\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nBackups\n--------------------------------------------------------------\n# ahc -m backup -b mysql\n# ahc -m backup -b site\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nTests\n--------------------------------------------------------------\n# ahc -m test -s apache\n# ahc -m test -s nginx\n# ahc -m test -s ftp\n# ahc -m test -s mysql\n# ahc -m test -s bind\n# ahc -m test -s crypt\n# ahc -m test -s git\n# ahc -m test -s git_jail\n# ahc -m test -s sendmail\n# ahc -m test -s all\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nCertificates\n--------------------------------------------------------------\n# ahc -m certs -i example.com -a email-address\n# ahc -m certs -i example.com -d email-address\n# ahc -m certs -i example.com -l\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nOpenVPN\n--------------------------------------------------------------\n# ahc -m vpn -a client1\n# ahc -m vpn -d client1\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nProjects protection\n--------------------------------------------------------------\n# ahc -m crypt -a encrypt\n# ahc -m crypt -a mount\n# ahc -m crypt -a umount\n# ahc -m crypt -a decrypt\n OR\n# ahc -m crypt -a e\n# ahc -m crypt -a m\n# ahc -m crypt -a u\n# ahc -m crypt -a d\n--------------------------------------------------------------\n\n--------------------------------------------------------------\nService Installing\n--------------------------------------------------------------\n# ahc -m install -s apache2_ssl\n# ahc -m install -s nginx_ssl\n# ahc -m install -s ftp\n# ahc -m install -s bind\n# ahc -m install -s mysql\n# ahc -m install -s firewall\n# ahc -m install -s nginx_proxy\n# ahc -m install -s certs -i example.com\n# ahc -m install -s lighttpd\n# ahc -m install -s sendmail\n# ahc -m install -s mail\n# ahc -m install -s shell\n# ahc -m install -s jira\n# ahc -m install -s confluence\n# ahc -m install -s web\n# ahc -m install -s vpn\n# ahc -m install -s dropbox\n# ahc -m install -s all\n--------------------------------------------------------------\n\nAhc flags:\n --version - current version\n -h or --help - help section\n\nBind flags:\n -a = add zone\n -d = remove zone\n -i = ip-address for a specified zone\n\n\nCerts flags:\n -a = add user\n -d = remove user\n -l = List of users\n\n\nMySQL flags:\n -a = add [database] or [hostname]\n -d = remove database\n -u = username(optional)\n -p = password(optional)\n\n\nFTP flags:\n -a = add ftp account for hostname\n -d = remove ftp account(still working, when hostname is removed)\n -u = username (optional)\n -p = password (optional)\n -f = manual specified folder (optional)\n\n Note:\n Default \"username\" & \"password\" is equal to hostname\n\n\nGit jail flags:\n -a - add user\n -p - ssh public key\n -d - delete user\n -l - user list\n -i - project name (domain name)\n -e - add access for directory in project\n -u - email address\n -f - remove access for directory\n\n\nApache/Nginx flags:\n -t = type [php,python,django,ruby,ror]\n -a = add host\n -d = remove host\n -e = enable host\n -f = disable host\n -o = static optimization(optional)\n -x = enable host protection(optional)\n -l = list available websites\n -w = wsgi config for python OR django (nginx/uwsgi)\n -b = basic auth. params=user:password\n -v = VirtualEnv (available for python & django)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/gotlium/ahc", "keywords": "console utils developers", "license": "GPL-2", "maintainer": null, "maintainer_email": null, "name": "ahc", "package_url": "https://pypi.org/project/ahc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/ahc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/gotlium/ahc" }, "release_url": "https://pypi.org/project/ahc/1.5.0/", "requires_dist": null, "requires_python": null, "summary": "Package with extensions for Developers on Python(+Django), Ruby(+RoR) and PHP.", "version": "1.5.0" }, "last_serial": 786196, "releases": { "1.5.0": [ { "comment_text": "", "digests": { "md5": "db65fb37f47036e7a99d9f1174fda262", "sha256": "77799d33ddb5047297883ee0e4e396c94f9b274199a3f5e529e9c7bae0f645c4" }, "downloads": -1, "filename": "ahc-1.5.0.tar.gz", "has_sig": false, "md5_digest": "db65fb37f47036e7a99d9f1174fda262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93821, "upload_time": "2013-04-09T06:00:41", "url": "https://files.pythonhosted.org/packages/29/cc/c457dfc92ce72b421dd1c68635bc22b32d15525ad372432a336c6c37c2da/ahc-1.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db65fb37f47036e7a99d9f1174fda262", "sha256": "77799d33ddb5047297883ee0e4e396c94f9b274199a3f5e529e9c7bae0f645c4" }, "downloads": -1, "filename": "ahc-1.5.0.tar.gz", "has_sig": false, "md5_digest": "db65fb37f47036e7a99d9f1174fda262", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 93821, "upload_time": "2013-04-09T06:00:41", "url": "https://files.pythonhosted.org/packages/29/cc/c457dfc92ce72b421dd1c68635bc22b32d15525ad372432a336c6c37c2da/ahc-1.5.0.tar.gz" } ] }