Update installation procedure
This commit is contained in:
@@ -2,24 +2,23 @@
|
||||
|
||||
> A fork of [PHPagebuilder](https://github.com/HansSchouten/PHPagebuilder) by [Hans Schouten](https://github.com/HansSchouten).
|
||||
|
||||
> Still a work-in-progress
|
||||
Plugi is a website boilerplate with a drag-and-drop page builder.
|
||||
|
||||
This boilerplate defines the project structure for quickly creating a website that can be managed with a drag and drop
|
||||
pagebuilder.
|
||||
## Quick installation
|
||||
|
||||
## Installation
|
||||
1. Use PHP 8.4 with the PDO MySQL extension and a MySQL 8 database. The supplied Docker image is based on PHP 8.4.
|
||||
2. Copy `.env.dist` to `.env` and `config.dist.php` to `config.php`; set the database connection, public `BASE_URL`, and a unique admin username and password hash in `.env`.
|
||||
3. Create the database and a database user, deploy the project at the web root, and make `uploads/` writable by the web server.
|
||||
4. Open the site, sign in at `/admin/auth`, and follow the Website Manager database update prompt to create/update the schema.
|
||||
|
||||
To setup your website download the latest version of Plugi and upload it to the webroot directory of your website.
|
||||
See [the installation guide](docs/installation.md) for manual deployment, Docker development, security, and troubleshooting details.
|
||||
|
||||
### Edit the config file
|
||||
The file `config.php` holds all the basic configuration for your project. Edit as needed. Be sure to update the
|
||||
login-credentials.
|
||||
## Local Docker development
|
||||
|
||||
### Login
|
||||
Now you should be able to log in to the admin panel by going to the `/admin` URL of your website using `admin` and
|
||||
`admin` (you can change these in the config file). If you are able to login you can start building your website.
|
||||
The supplied Compose stack uses PHP 8.4 and MySQL 8.0 and is for local development only. Copy `.env.dist` to `.env` and `config.dist.php` to `config.php`, replace the sample database and MySQL root passwords, then run:
|
||||
|
||||
Note: make sure to disable error reporting in `index.php` once your website goes into production!
|
||||
```sh
|
||||
docker compose up --build -d
|
||||
```
|
||||
|
||||
## Docker
|
||||
Simply run `docker-compose up -d` using the supplied `docker-compose.yml`. The image uses PHP 8.2
|
||||
The app is available at `http://localhost:63000`; Adminer is bound to localhost at `http://localhost:63001`.
|
||||
|
||||
Reference in New Issue
Block a user