{"id":14969108,"url":"https://github.com/simplyjarod/server","last_synced_at":"2025-10-26T06:31:07.467Z","repository":{"id":176878491,"uuid":"93329038","full_name":"simplyjarod/server","owner":"simplyjarod","description":"CentOS server installations and configurations","archived":false,"fork":false,"pushed_at":"2023-12-31T15:49:11.000Z","size":183,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T16:12:06.907Z","etag":null,"topics":["iptables","iptables-configurations","iptables-rules","lamp","lamp-server","lamp-setup","lemp","lemp-automation","lemp-server","mariadb","mariadb-server","mysql","mysql-installation","mysql-server","nginx","nginx-configuration","nginx-php-fpm","nginx-server","php","php-fpm"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplyjarod.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-04T17:13:01.000Z","updated_at":"2023-05-04T12:57:01.000Z","dependencies_parsed_at":"2023-12-01T01:26:15.243Z","dependency_job_id":"89d1c1cf-fba1-4b8e-a3de-4871bffebeb3","html_url":"https://github.com/simplyjarod/server","commit_stats":{"total_commits":101,"total_committers":2,"mean_commits":50.5,"dds":0.01980198019801982,"last_synced_commit":"3e515ce7639be7643cfdd268883c85c684feabaf"},"previous_names":["simplyjarod/server"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyjarod%2Fserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyjarod%2Fserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyjarod%2Fserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyjarod%2Fserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplyjarod","download_url":"https://codeload.github.com/simplyjarod/server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238276073,"owners_count":19445344,"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":["iptables","iptables-configurations","iptables-rules","lamp","lamp-server","lamp-setup","lemp","lemp-automation","lemp-server","mariadb","mariadb-server","mysql","mysql-installation","mysql-server","nginx","nginx-configuration","nginx-php-fpm","nginx-server","php","php-fpm"],"created_at":"2024-09-24T13:41:08.291Z","updated_at":"2025-10-26T06:31:02.174Z","avatar_url":"https://github.com/simplyjarod.png","language":"HTML","readme":"# Ubuntu (and CentOS 6/7/8) server installation and configuration\n\nPlease, **download _all files_ before executing any script**. There are several dependencies between them.\n\n## Ubuntu\n```bash\napt update -y \u0026\u0026 apt upgrade -y\ngit clone https://github.com/simplyjarod/server \u0026\u0026 cd server\nchmod u+x *.sh -R\n```\n\n## CentOS\n```bash\nsudo yum install wget unzip -y\nwget https://github.com/simplyjarod/server/archive/master.zip\nunzip master.zip \u0026\u0026 cd server-master \u0026\u0026 rm -rf ../master.zip\nchmod u+x *.sh -R\n```\n\n# What you can do with these scripts\n*Elements with link are updated for Ubuntu compatibility.*\n- [Install LAMP server](#install-lamp-server-linux--apache--mysql--php)\n- [Install LEMP server](#install-lemp-server-linux--nginx--mysql--php)\n- [Install apache](#install-apache)\n- [Install NGINX](#install-nginx)\n- [Add apache virtual host](#add-apache-virtual-host)\n- [Add NGINX virtual host](#add-nginx-virtual-host)\n- [Manage HTTP traffic with IPTABLES](#manage-http-traffic-with-iptables)\n- [Manage MySQL traffic with IPTABLES](#manage-mysql-traffic-with-iptables)\n- Generate Let's Encrypt SSL certificates\n- [Install PHP](#install-php)\n- Update PHP to latest version\n- [Install NodeJS, NPM and PM2](#install-nodejs-npm-and-pm2)\n- [Install MariaDB](#install-mariadb)\n- [Create MySQL DB and user](#create-mysql-db-and-user)\n- [Remove MySQL DB and user](#remove-mysql-db-and-user)\n- Install REDIS\n- [Install WordPress](#install-wordpress)\n\n\n## LAMP server: Linux + apache + MySQL + php\nRun `./lamp-install.sh` as **root** from the folder this file is placed.\nThis will run the following scripts: [Install apache](#install-apache), [Install MariaDB](#install-mariadb), [Install PHP](#install-php), [Add apache virtual host](#add-apache-virtual-host) and [Manage HTTP traffic with IPTABLES](#manage-http-traffic-with-iptables).\n\n## LEMP server: Linux + NGINX + MySQL + php\nRun `./lemp-install.sh` as **root** from the folder this file is placed.\nThis will run the following scripts: [Install NGINX](#install-nginx), [Install MariaDB](#install-mariadb), [Install PHP](#install-php), [Add NGINX virtual host](#add-nginx-virtual-host) and [Manage HTTP traffic with IPTABLES](#manage-http-traffic-with-iptables).\n\n\n## Install apache\nRun `./apache-install.sh` as **root** from the folder this file is placed.\nThis will install apache2 and some basic setup.\n\n\n## Install NGINX\nRun `./nginx-install.sh` as **root** from the folder this file is placed.\nThis will install NGINX and some basic setup.\n\n\n## Add apache virtual host\nRun `./apache-add-virtual-host.sh` as **root** from the folder this file is placed.  \nThis will create a new user (if not created previously) and virtual host in apache2 in interactive mode: the script will ask you for system username and domain.\n\n\n## Add NGINX virtual host\nRun `./nginx-add-virtual-host.sh` as **root** from the folder this file is placed.  \nIt is mandatory to have NGINX installed previously.\nThis will create a new user (if not created previously) and virtual host in NGINX in interactive mode: the script will ask you for system username and domain.\n\n\n## Manage HTTP traffic with IPTABLES \nRun `./iptables-accept-http.sh` as **root** from the folder this file is placed.  \nIt is mandatory to have IPTABLES installed previously (you can run [iptables.sh from my system repository](https://github.com/simplyjarod/system/blob/master/iptables.sh)).\nThis will insert into IPTABLES a new rule for port 80 (HTTP traffic) binded to an IP or to all IPs (unrestricted).\n\n\n## Manage MySQL traffic with IPTABLES \nRun `./iptables-accept-mysql.sh` as **root** from the folder this file is placed.  \nIt is mandatory to have IPTABLES installed previously (you can run [iptables.sh from my system repository](https://github.com/simplyjarod/system/blob/master/iptables.sh)).\nThis will insert into IPTABLES a new rule for port 3306 (MySQL traffic) binded to an IP or to all IPs (unrestricted).\n\n\n## Install PHP\nRun `./php-install.sh` as **root** from the folder this file is placed.\nThis will install PHP latest available version. In CentOS, PHP is not available on latest version, so `php-update.sh` is executed right after the default installation. Some \"basic\" libraries and modules are also installed.\n\n\n## Install NodeJS, NPM and PM2\nRun `./nodejs-install.sh` as **root** from the folder this file is placed.\nThis will install NodeJS and NPM latest LTS version directly from nodesource.com.\n\n\n## Install MariaDB\nRun `./mariadb-install.sh` as **root** from the folder this file is placed.\nThis will install MariaDB (MySQL), mysql_secure_installation (interactive mode) and some basic setup.\n\n\n## Create MySQL DB and user\nRun `./mysql-create-db-and-user.sh` from the folder this file is placed. You will be asked for **mysql's root password**.  \nIt is mandatory to have MySQL or MariaDB installed previously.\n\n\n## Remove MySQL DB and user\nRun `./mysql-remove-db-and-user.sh` from the folder this file is placed. You will be asked for **mysql's root password**.  \nIt is mandatory to have MySQL or MariaDB installed previously.\n\n\n## Install WordPress\nRun `./wordpress-install.sh` as **root** from the folder this file is placed.\nThis will download a new WordPress copy and install it in the folder you specify, configuring (or creating if not exists) database, user and password (random names or the ones you provide).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyjarod%2Fserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplyjarod%2Fserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyjarod%2Fserver/lists"}