# RedisWebManager
**Repository Path**: facengineer/RedisWebManager
## Basic Information
- **Project Name**: RedisWebManager
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-05-15
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
RedisWebManager
===============
## Preview
**GIF Demo**: [https://imgur.com/kiYTz0V](https://imgur.com/kiYTz0V)
Home page:

Check the value by popup(config option "valDisplayType" to "popup" at RedisWebManager/config/params.php):

Check the value inline(config option "valDisplayType" to "inline" at RedisWebManager/config/params.php):

Check the value in new page(only when the data is too long, check it in new page will be more clear and comfortable):

Overview server info:

Web client:

As you can see above, RedisWebManager Show the origin value(maybe array or object), not just simply a json string or a serialized string, this is the advantage of this tool(unserializing string only support PHP for the present).
## 中文版本/Chinese Version
[中文版本](https://www.xiebruce.top/664.html)
## Features
- View the redis key list
- Preview value of a key(popup / inline / new page)
- Preview json as array, serialized object as an object(the most important reason I wrote this tool)
- Search by key prefix or suffix
- Delete key & batch delete keys
- Select to show which db
- Flush current db or flush all db
- View redis server info
- Use client directives on Web just like in Terminal
## Redis Config
redis config is located at(auto read redis_local.php at local while redis.php online):
```
RedisWebManager/config/redis.php
RedisWebManager/config/redis_local.php
```
## Flush password & quickSearch Key
```
RedisWebManager/config/params.php
RedisWebManager/config/params_local.php
```
## Login Account Config
```
RedisWebManager/models/User.php
```

## Set permission
```bash
sudo chmod -R 777 /path/to/RedisWebManager/runtime
sudo chmod -R 777 /path/to/RedisWebManager/web/assets
```
## Nginx Config
```nginx
server {
charset utf-8;
client_max_body_size 128M;
listen 80; ## listen for ipv4
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
server_name mysite.test;
root /path/to/basic/web;
index index.php;
access_log /path/to/basic/log/access.log;
error_log /path/to/basic/log/error.log;
location / {
# Redirect everything that isn't a real file to index.php
try_files $uri $uri/ /index.php$is_args$args;
}
# uncomment to avoid processing of calls to non-existing static files by Yii
#location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
# try_files $uri =404;
#}
#error_page 404 /404.html;
# deny accessing php files for the /assets directory
location ~ ^/assets/.*\.php$ {
deny all;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
try_files $uri =404;
}
location ~* /\. {
deny all;
}
}
```
## Update Log
### 2019-02-22 v0.3.1
- Fix bug when click checkbox to select a key
- Fix bug when using not default port 6379
- Update README.md
### 2018-12-27 v0.3
- Add Overview server info
- Add Web redis-cli
- change redis client to predis(phpredis before)
- Use ajax search other than refreshing page
- Add load more button(remove pagination)
### 2018-12-19 v0.2
- Add inline preview manner.
- Add showing ttl of a key.
- Modified the popup window to bootstrap modal, not simply alert by js.
- Modified the new preview page, more beautiful now.
- Showing the array or object colorfully.
- fix many bugs.
### 2018-12-14 v0.1
- A tool that allows you to search, delete, batch delete redis key, preview value of key, flush current db or flush or db.