{"id":36398533,"url":"https://github.com/i30/wp-scratch","last_synced_at":"2026-01-11T16:01:36.704Z","repository":{"id":56987924,"uuid":"71471071","full_name":"i30/wp-scratch","owner":"i30","description":"A scalable WordPress project from scratch. Easy to deploy!","archived":false,"fork":false,"pushed_at":"2020-12-21T01:42:14.000Z","size":30,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-19T10:41:54.771Z","etag":null,"topics":["wordpress-deployment","wordpress-installation"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/i30.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":"2016-10-20T14:24:34.000Z","updated_at":"2021-04-05T01:51:14.000Z","dependencies_parsed_at":"2022-08-21T12:50:31.470Z","dependency_job_id":null,"html_url":"https://github.com/i30/wp-scratch","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/i30/wp-scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i30%2Fwp-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i30%2Fwp-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i30%2Fwp-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i30%2Fwp-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i30","download_url":"https://codeload.github.com/i30/wp-scratch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i30%2Fwp-scratch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28312091,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["wordpress-deployment","wordpress-installation"],"created_at":"2026-01-11T16:00:41.485Z","updated_at":"2026-01-11T16:01:36.674Z","avatar_url":"https://github.com/i30.png","language":"Shell","readme":"# WordPress Scratch\n\n[![Build Status](https://travis-ci.org/i30/wp-scratch.svg?branch=master)](https://travis-ci.org/i30/wp-scratch)\n[![Latest Stable Version](https://poser.pugx.org/i30/wp-scratch/v/stable)](https://packagist.org/packages/i30/wp-scratch)\n[![Latest Unstable Version](https://poser.pugx.org/i30/wp-scratch/v/unstable)](https://packagist.org/packages/i30/wp-scratch)\n[![License](https://poser.pugx.org/i30/wp-scratch/license)](https://packagist.org/packages/i30/wp-scratch)\n\nA scalable WordPress project from scratch. Easy to deploy!\n\nWhile working with WordPress, i feel unease to config virtual hosts, set up brand new WordPress installations, copy essential plugins... for each new project again and again.\n\nWith this, you can proxy static contents, databases, back-end and front-end into smaller servers. All of them use a same WordPress installation, it's really helpful in term of performance and maintainability. Moving your servers around or setting up load balancing becomes easier.\n\n## Requirements\n\n- [PHP][1] \u003e= 5.6\n- [MySQL][2] \u003e= 5.6\n- [WP-CLI][3] \u003e= 0.24\n- [Composer][4] \u003e= 1.0\n\n## Installation\n\n1. Prepare your server block for [Nginx][5] or virtual host for [Apache][6]. You do not need to create MySQL database, it will be created while installing WordPress.\n\n2. Run these two commands on your command line respectively:\n\n  ```bash\n  $ composer create-project i30/wp-scratch /path/to/project/directory\n  $ cd /path/to/project/directory \u0026\u0026 ./install\n  ```\n\n3. Follow instructions to finish the installation. It's easy!\n\nFrom now on, to add a new WordPress site, you just need to fire the `install` script again.\n\n## Important Notes\n\n- Since `$_SERVER['SERVER_NAME']` is used to determine which site will respond to requests, please make sure `SERVER_NAME` is configured properly. For Apache 2, remember to add `UseCanonicalName = On` in every virtual host.\n\n- While working with multiple sites (not WordPress multisite), you might need to separate `UPLOADS` directory. Use this script as a must-use plugin:\n\n  ```php\n  /**\n   * Plugin Name: Dynamic Uploads Directory\n   * Version:     1.0.0\n   * Description: Create custom uploads directory base on the DB_NAME constant.\n   * Author:      sarahcoding\n   * Author URI:  https://sarahcoding.com\n   * License:     GPL v3+\n   */\n  add_filter('upload_dir', function($args)\n  {\n    $base_url = WP_HOME . '/uploads';\n    $base_dir = APP_ROOT . 'app/uploads';\n    $custom_url = WP_HOME . '/' . DB_NAME . '-uploads';\n    $custom_dir = APP_ROOT . 'app/' . DB_NAME . '-uploads';\n\n    $args['url'] = str_replace($base_url, $custom_url, $args['url']);\n    $args['path'] = str_replace($base_dir, $custom_dir, $args['path']);\n    $args['baseurl'] = str_replace($base_url, $custom_url, $args['baseurl']);\n    $args['basedir'] = str_replace($base_dir, $custom_dir, $args['basedir']);\n\n    return $args;\n  }, PHP_INT_MAX);\n  ```\n\n## Contributing\n\nContribution is always welcome!\n\n\n[1]: http://php.net\n[2]: http://dev.mysql.com/downloads/mysql/\n[3]: http://wp-cli.org\n[4]: https://getcomposer.org\n[5]: https://www.nginx.com\n[6]: https://www.apache.org\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi30%2Fwp-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi30%2Fwp-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi30%2Fwp-scratch/lists"}