{"id":22974394,"url":"https://github.com/diversen/densite","last_synced_at":"2025-08-05T23:19:31.538Z","repository":{"id":138270779,"uuid":"920526","full_name":"diversen/densite","owner":"diversen","description":"small hosting scripts for drush and drupal ","archived":false,"fork":false,"pushed_at":"2011-08-06T14:56:02.000Z","size":147,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T00:41:29.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.os-cms.net","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diversen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-18T11:36:18.000Z","updated_at":"2014-08-07T20:31:02.000Z","dependencies_parsed_at":"2023-03-14T21:15:42.302Z","dependency_job_id":null,"html_url":"https://github.com/diversen/densite","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/diversen/densite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fdensite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fdensite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fdensite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fdensite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diversen","download_url":"https://codeload.github.com/diversen/densite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diversen%2Fdensite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268988156,"owners_count":24340807,"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","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-12-15T00:00:39.401Z","updated_at":"2025-08-05T23:19:26.518Z","avatar_url":"https://github.com/diversen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Download And Install\n\nI moved these scripts to github some time ago. You can find the\nlatest version on\n\u003ca href=\"https://github.com/diversen/densite\"\u003egithub.com/diversen/densite\u003c/a\u003e\nBest option is to cd into your drush/commands folder, and clone the script:\n\n     git clone git://github.com/diversen/densite.git\n\nthen they are installed. You can use the master or select latest tag.\n\n#### Introduction\n\nThe following scripts are tested and working on Debian systems\nMySQL and Postgresql is supported.\nThe densite scripts creates virtual host configuration and drupal-5.x and\ndrupal-6.x, drupal-7.x sites (most testing is done with drupal-6.x). It also updates\nyour /etc/hosts file with installed site. It can also 'curl' a default user\nso you don't have to use the browser. This only works on drupal-6.x\n\nThe script also secures your site by setting good permissions for your\nfile folder and your settings.php file. The default configuration will also\ndelete all .txt files. Finally crontab will be updated.\n\n#### Requirements\n\n* Access to creating crontab entries\n* a2ensite\n* a2dissite\n* [drush-All-Versions-2.0.tar.gz](http://ftp.drupal.org/files/projects/drush-All-Versions-2.0.tar.gz) Or later.\n* Or any later version should work.\n* PHP, Apache2, MySQL or PostgreSQL\n* sudo (and root privileges) (on other Debian you may need to do\n\n    su root\n\n* Access to creating databases (MySQL or PostgreSQL or both)\n\n#### Config\n\nFor configuration you can look at the following two files and change them\nas needed. Else they will just be created from the default config files:\n\n    /path/to/drush/commands/densite/apache2/apache2.conf\n    /path/to/drush/commands/densite/densite.conf\n\n#### Usage\n\nIf you yet does not have a working drupal install, you can use the densitein\n(densite install) command which will prompt for a version to\ndownload and install. The version you download will be installed\nin your current working directory. E.g. make a www directory in your\nhome folder, e.g:\n\n    mkdir /home/user/www \u0026\u0026 cd /home/user/www\n    drush densitein www.example.com\n\n(You will not be able to visit the real www.example.com after this, because\n/etc/hosts now has this domain.\n\nTo create a sub site in a install of drupal. cd to the document root of\nyour newly installed site, e.g.:\n\n    /home/user/www/www.example.com/htdocs\n\nCreate and enable a subsite use:\n\n    drush densite example2.com\n\nThe name your are using will be used as the ServerName in your VirtualHost configuration. The name will figure as the site name in the sites/ folder, e.g. sites/dev.os-cms.net for the above example. It will also be used as the apache2 virtualHost configuration placed in /etc/apache2/sites-available folder. If you choose to let the densite script generate a database name, then the name of the database will be devoscmsnet (the site's name without any special signs). Created log files for apache2 will be placed in (from your current drupal document root view):\n\n    ../../dev.os-cms.net/logs\n    ../../dev.os-cms.net/logs/access.log\n    ../../dev.os-cms.net/logs/error.log\n\nDelete the newly created subsite:\n\n    drush dissite example2.com\n\nDeletes database for website, log files, apache2 virtualhost file and\nreloads apache2 and removes the site files, and removes the crontab entry,\nstep by steep.\n\nIn order to create and enable a new (s)tand(a)lone or base install:\n\ncd to document root of your site, e.g:\n\n    cd /home/user/www/www.example.com/htdocs\n    drush densitesa example3.com\n\nNotice the name of the command. It is just densite ending with 'sa' (standalone).\n You can clone the current site or you can download a version of\ndrupal of your choice. You will be prompted for the version you wish to\ndownload. The new site will be created like this (from your current drupal\ndocument root view:)\n\n    ../../dev.os-cms.net/logs\n    ../../dev.os-cms.net/htdocs\n\nNotice That a base install creates a folder called htdocs containing the\nnew base site. Log files will also be created as in the densite command:\n\n    ../../dev.os-cms.net/logs\n    ../../dev.os-cms.net/logs/access.log\n    ../../dev.os-cms.net/logs/error.log\n\nDelete a (s)tand(a)lone drupal install:\n\n    drush dissitesa example3.com\n\nIn order to delete a standalone or base site all sub sites needs to\nbe deleted first. For each of the standalone code bases you can use the\ndensite command for creating new sub sites. Or the dissite command for\ndeleting them.\n\nList all sites installed with the densite, densitesa, and densitein commands.\nYou have to stand in a directory containing a base install, e.g. in:\n\n    cd /home/user/www/dev.os-cms.net/htdocs\n\nAnd do a:\n\n    drush listsites\n\n#### Options\n\nYou can use the following flags:\n\n    --simulate\n\nflag to see what the commands will do to your system. When using simulate there\nwill be no changes to your system.\n\n    -f\n\nForce the script to continue when errors are encountered. E.g.:\nYou have tried to install a site but your failed halfway due to permissions.\nYou can then change the permissions on your server, and force the script to execute.\n\n    -s\n\nSilence the script will produce less output, and only prompt you when\nquestions are raised.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fdensite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiversen%2Fdensite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiversen%2Fdensite/lists"}