SSDB 数据库的图形化界面管理工具
Switch branches/tags
Nothing to show
Clone or download
ideawu
Latest commit b783bf7 Jan 25, 2018
Permalink
Failed to load latest commit information.
app fix cookie issue Jan 25, 2018
css update Jul 30, 2014
fonts update Jul 22, 2014
imgs udpate Jul 23, 2014
iphp update Mar 28, 2016
js encryp password when post login form Aug 18, 2015
logs update Jul 22, 2014
.gitignore update Jul 22, 2014
LICENSE Initial commit Jul 22, 2014
README.md update Oct 10, 2017
favicon.ico update Jul 22, 2014
index.php udpate Jul 29, 2014
robots.txt update Jul 22, 2014
version 0.0.2 add login captcha Aug 6, 2015

README.md

phpssdbadmin

安装

编辑 app/config/config.php:

'servers' => array(
	array(
		'host' => '127.0.0.1',
		'port' => '8888',
	),
),

hostport 修改成正确的值.

然后编辑你的 Nginx 配置文件, 加入一条 URL 重写规则:

location /phpssdbadmin {
	try_files $uri $uri/ /phpssdbadmin/index.php?$args;
}

注意: 如果你还没有配置好 php, 请先配置好 php! 下面是一个示例, 但不保证你能完全理解. 如果你无法理解, 请在搜索引擎上学习如何配置 nginx+php, 谢谢!

index index.php;
root /somewhere/htdocs
location ~ \.php$ {
	include        fastcgi_params;
	fastcgi_pass   127.0.0.1:9000;
	fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
}

如果你使用的是 Apache 的话, 你可以试试这条 URL 重写规则.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /phpssdbadmin/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /phpssdbadmin/index.php [L] 
</IfModule>

PHP 模块依赖

  • php-gd
  • php-mcrypt
  • php-openssl

phpssdbadmin

SSDB Admin Tool Built with PHP.

Install

Edit app/config/config.conf:

'servers' => array(
	array(
		'host' => '127.0.0.1',
		'port' => '8888',
	),
),

Change host and port to the right values.

Then edit your Nginx configuration, add one URL rewrite rule as:

location /phpssdbadmin {
	try_files $uri $uri/ /phpssdbadmin/index.php?$args;
}

Your have to set up nginx+php first!

index index.php;
root /somewhere/htdocs
location ~ \.php$ {
	include        fastcgi_params;
	fastcgi_pass   127.0.0.1:9000;
	fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
}

If you are using Apache, try this URL rewrite rule:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /phpssdbadmin/
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule . /phpssdbadmin/index.php [L] 
</IfModule>

PHP module dependency

  • php-gd
  • php-mcrypt
  • php-openssl

Screenshots