{"id":19195885,"url":"https://github.com/smart-core/debian-deployer","last_synced_at":"2025-02-23T04:42:26.113Z","repository":{"id":146266631,"uuid":"185318182","full_name":"Smart-Core/debian-deployer","owner":"Smart-Core","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-29T05:50:22.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T08:46:53.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Smart-Core.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-07T04:01:03.000Z","updated_at":"2021-12-30T17:56:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"2dd31a55-ca4b-402a-97ba-a63a3cd725cf","html_url":"https://github.com/Smart-Core/debian-deployer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smart-Core%2Fdebian-deployer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smart-Core%2Fdebian-deployer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smart-Core%2Fdebian-deployer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smart-Core%2Fdebian-deployer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Smart-Core","download_url":"https://codeload.github.com/Smart-Core/debian-deployer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240271519,"owners_count":19774859,"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":[],"created_at":"2024-11-09T12:11:52.741Z","updated_at":"2025-02-23T04:42:26.087Z","avatar_url":"https://github.com/Smart-Core.png","language":"Shell","readme":"Debian 9 and 10 Deployer\n========================\n\nInstallation\n------------\n\n```\napt-get update\napt-get install git screen lsb-release -y\ngit clone https://github.com/Smart-Core/debian-deployer.git\ncd debian-deployer\n./install.sh\n```\n\nor in one line command\n\n```\napt-get update \u0026\u0026 apt-get install git screen lsb-release -y \u0026\u0026 git clone https://github.com/Smart-Core/debian-deployer.git \u0026\u0026 cd debian-deployer \u0026\u0026 ./install.sh\n```\n\nAlternative via zip\n\n```\napt-get update \u0026\u0026 apt-get upgrade\napt-get install zip screen lsb-release -y\nwget https://github.com/Smart-Core/debian-deployer/archive/master.zip -O debian-deployer.zip\nunzip debian-deployer.zip\ncd debian-deployer-master\n./install.sh\n```\n\nDefault installed soft\n----------------------\n\n```\nphp7.3\nphp7.3-fpm\nmariadb-server\npostgresql\nredis-server\nnginx\nnodejs\npostfix\nvarnish\n```\n\n**Deactivated packages:**\n```\ncassandra\nelasticsearch\nmongodb-org\nrabbitmq-server\n```\n\nUse screen\n----------\n\nList all screens\n\n```\nscreen -ls\n```\n\nConnect to screen\n\n```\nscreen -r \u003cscreen_name\u003e\n```\n\nDetach current screen\n```\nCtrl+a, d\n```\n\nCreate virtual hosts\n--------------------\n\n```\ncreate-symfony-nginx-vhost mysymfony-project.ru\ncreate-nginx-vhost mysite.ru\ncreate-apache-vhost mysite.ru\n```\n\nLinux Add a Swap File – Howto\n-----------------------------\n\nhttp://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/\n\n\n**Step #1: Create Storage File**\n\nType the following command to create 512MB swap file (1024 * 512MB = 524288 block size):\n```\ndd if=/dev/zero of=/swapfile1 bs=1024 count=524288\n```\n\n**Step #2: Secure swap file**\n\nSetup correct file permission for security reasons, enter:\n```\nchown root:root /swapfile1\nchmod 0600 /swapfile1\n```\n\n**Step #3: Set up a Linux swap area**\n\nType the following command to set up a Linux swap area in a file:\n```\nmkswap /swapfile1\n```\n\n**Step #4: Enabling the swap file**\n\nFinally, activate /swapfile1 swap space immediately, enter:\n```\nswapon /swapfile1\n```\n\n**Step #5: Update /etc/fstab file**\n\nTo activate /swapfile1 after Linux system reboot, add entry to /etc/fstab file. Open this file using a text editor such as vi:\n```\nmcedit /etc/fstab\n```\nAppend the following line:\n```\n/swapfile1 none swap sw 0 0\n```\n\nQuick install swap 512Mb:\n\n```\ndd if=/dev/zero of=/swapfile1 bs=1024 count=524288\nchown root:root /swapfile1\nchmod 0600 /swapfile1\nmkswap /swapfile1\nswapon /swapfile1\necho \"/swapfile1 none swap sw 0 0\" \u003e\u003e /etc/fstab\n```\n\nUser managment\n==============\n\n```\nuseradd -m -G www-data,docker -s /bin/bash \u003cusername\u003e\npasswd \u003cusername\u003e\n```\n\n```\nusermod -aG www-data \u003cusername\u003e\nusermod -aG docker \u003cusername\u003e\n```\n\nПростой скрипт для оценки производительности VPS\n================================================\n\n```\nbash \u003c(wget --no-check-certificate -O - https://raw.github.com/mgutz/vpsbench/master/vpsbench)\n```\n\nPHP-FPM Pools per Site\n======================\n\nhttps://gist.github.com/fyrebase/62262b1ff33a6aaf5a54\n\n1. Copy `/etc/php/7.3/fpm/pool.d/www.conf` to `/etc/php/7.3/fpm/pool.d/my_site.conf`\n2. Pool name. It is on the top [www]. Rename it to [mysite]\n3. Next, change the user and group field and put the username and group to run it with.\n```\nuser = mysite_user\ngroup = mysite_user\n```\n4. Change the socket file name. Every pool should have its own separate socket. And the particular site should use this particular socket file to connect to fpm.\n```\nlisten = /run/php/php7.3-fpm-mysite.sock\n```\n5. Now restart php-fpm\n```\n/etc/init.d/php7.3-fpm restart\n```\n6. Configure Nginx\n```\nfastcgi_pass unix:/var/run/php/php7.3-fpm-mysql.sock;\n```\n7. Now reload nginx\n```\n/etc/init.d/nginx reload\n```\n\n@todo\n-----\n\n * Nginx/php-fpm umask setting (https://stackoverflow.com/questions/11584021/nginx-php-fpm-umask-setting)\n * Backup resolf.conf default config\n * Install latest phpmyadmin via http://www.phpmyadmin.net/home_page/version.json\n * IonCube Loader (https://www.digitalocean.com/community/tutorials/how-to-install-ioncube-loader)\n * Install via tar archive\n * HTTPS\n * PECL uploadprogress и/или apc.rfc1867 = 1\n * http://www.shellhacks.com/ru/Ustanovka-i-Nastroyka-Fail2ban-v-CentOS-Ubuntu\n * apache-autoconf.conf (https://github.com/helios-ag/symfony-website-config)\n * MUnin (http://habrahabr.ru/post/30494/)\n * https://developers.google.com/speed/pagespeed/module\n * https://eavictor.wordpress.com/2017/05/31/install-scout-realtime-auto-start/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmart-core%2Fdebian-deployer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmart-core%2Fdebian-deployer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmart-core%2Fdebian-deployer/lists"}