安装
cd/data/web/phpgitclonehttps://github.com/ssdb/phpssdbadmin
编辑 app/config/config.php:
'ssdb'=>array('host'=>'127.0.0.1','port'=>'8888',),
nginx 配置
server{listen80;server_namelocalhost;set$root_path'/data/web/php';root$root_path;indexindex.htmlindex.htmindexindex.php;allow58.247.44.170;denyall;location/phpssdbadmin{try_files$uri$uri//phpssdbadmin/index.php?$args;}location~\.php${fastcgi_pass127.0.0.1:9000;fastcgi_paramSCRIPT_FILENAME$document_root$fastcgi_script_name;includefastcgi_params;}location~*\.(source|ico|css|js|gif|jpe?g|png)${expires30d;add_headerPragmapublic;}#error_page404/404.html;#redirectservererrorpagestothestaticpage/50x.html#error_page500502503504/50x.html;location=/50x.html{roothtml;}}
php.ini 配置
short_open_tag 必须启用!
编辑 php.ini, 查找 short_open_tag, 如果没有, 则加入下面一行, 如果有, 修改为
short_open_tag = On
注意, 行的前面不要有分号或者其它字符!
重启服务:
service php-fpm restart
service nginx reload
浏览器打开:http://localhost/phpssdbadmin
原文地址:ssdb 图形界面管理工具 phpssdbadmin, 感谢原作者分享。 生气是拿别人做错的事来惩罚自己