Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jgauthi/wordpress_composer
Wordpress5 with composer
https://github.com/jgauthi/wordpress_composer
composer php56 wordpress
Last synced: 14 days ago
JSON representation
Wordpress5 with composer
- Host: GitHub
- URL: https://github.com/jgauthi/wordpress_composer
- Owner: jgauthi
- License: gpl-3.0
- Created: 2018-06-30T14:35:48.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-13T11:31:57.000Z (over 1 year ago)
- Last Synced: 2024-11-13T03:15:02.708Z (2 months ago)
- Topics: composer, php56, wordpress
- Language: PHP
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress with composer project
## Prerequisites
* The PHP version must be greater than or equal to PHP 7.4
* The date.timezone parameter must be defined in php.ini or `public/wp-config.php`
* If composer is not installed, install it following the instructions for [Linux/Unix/OSX](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx) or [Windows](https://getcomposer.org/doc/00-intro.md#installation-windows).More information on [WordPress website](https://wordpress.org/about/requirements/).
_(Optional)_ For Makefile usage:
* Make command: Under linux `sudo apt install build-essential` or for [Windows users](https://stackoverflow.com/questions/32127524/how-to-install-and-use-make-in-windows/54086635)
* [wp-cli](https://wp-cli.org)## Installation
Clone project into your own directory.```bash
make install# Without makefile
cp public/wp-config.default.php public/wp-config.php
composer install# You can add more WordPress plugin by completing the composer.json
composer require wpackagist-plugin/plugin-name
```## Configuration
Edit the file `public/wp-config.php` with your own values for the following variables :* Database variables
* DB_NAME
* DB_USER
* DB_PASSWORD
* DB_HOST
* DB_CHARSET
* DB_COLLATEOn server configuration, set the DocumentRoot on Apache or Nginx to `public/` folder.
Bonus, you can edit some options on `public/wp-config.php`:
* **Smtp configuration:** Uncomment the lines `SMTP_*` and complete the values.
* **Proxy support:** Uncomment the lines `WP_PROXY_*` and complete values.
* **Debug support:** On dev environnement, you can use the functions and features provided by the [component debug](https://github.com/jgauthi/component_debug), require `WP_DEBUG` to `true`.## Maintenance mode
To pass the site into maintenance mode,* Rename file: `.htaccess` to `.htaccess_standby`
* Rename file: `.htaccess_maintenance` to `.htaccess`
* Edit `.htaccess` file
* Replace the domain (current platform)
* Add Authorized IPTo stop maintenance mode, reverse rename `.htaccess` files.
## Done
Enjoy coding or just viewing the site