dfgallery 2.0 安装配置
来源:互联网 发布:网络贷款哪个最容易 编辑:程序博客网 时间:2024/06/06 07:40
最近几天一直郁闷dfgallery2.0的配置,原打算用作图片展示程序,1.0用过没问题,放在opencms上运行很给力。由于图片展示电脑很多情况下是单机运行,考虑采用独立平台的2.0.但是一直没配置成功。
今天大神来了,一切都改变了。原来老外的程序也有bug(毕竟BUG这个词是他们发明的),现在把问题表述一下,并且给使用dfgallery2.0的网友提供方便。
1、程序配置成功后不能放在httpd的根目录,需要配置虚拟目录或者放到子目录里边。然后修改.htaccess
原来配置:
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$"> Order allow,deny</FilesMatch>Options -IndexesOptions +FollowSymLinksErrorDocument 404 /index.phpDirectoryIndex index.php<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]</IfModule>
修改配置:
<FilesMatch "\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template)$"> Order allow,deny</FilesMatch>Options -IndexesOptions +FollowSymLinksErrorDocument 404 /index.phpDirectoryIndex index.php<IfModule mod_rewrite.c> RewriteEngine on RewriteBase /gallery RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]</IfModule>
增加配置:RewriteBase /gallery #重写到子目录
2、程序默认不支持中文目录和中文文件名
经过大神检查后发现程序编码为utf-8,但是新建数据库的编码居然为欧洲编码(¥#%……%¥)
通过这个脚本新建后,问题解决
DROP TABLE IF EXISTS `content`;/*!40101 SET @saved_cs_client = @@character_set_client */;/*!40101 SET character_set_client = utf8 */;CREATE TABLE `content` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `uid` int(10) unsigned NOT NULL, `pid` int(10) unsigned DEFAULT NULL, `type` varchar(32) NOT NULL, `title` varchar(128) NOT NULL, PRIMARY KEY (`id`), KEY `FK__pid_id` (`pid`), KEY `FK__uid_uid` (`uid`), CONSTRAINT `FK__pid_id` FOREIGN KEY (`pid`) REFERENCES `content` (`id`) ON DELETE CASCADE, CONSTRAINT `FK__uid_uid` FOREIGN KEY (`uid`) REFERENCES `users` (`id`) ON DELETE CASCADE) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;/*!40101 SET character_set_client = @saved_cs_client */;---- Dumping data for table `content`--LOCK TABLES `content` WRITE;/*!40000 ALTER TABLE `content` DISABLE KEYS */;INSERT INTO `content` VALUES (1,1,NULL,'gallery','aaaaa'),(2,1,1,'album','aaaaa'),(3,1,1,'album','aaaaa');/*!40000 ALTER TABLE `content` ENABLE KEYS */;UNLOCK TABLES;---- Table structure for table `contentprop`--DROP TABLE IF EXISTS `contentprop`;/*!40101 SET @saved_cs_client = @@character_set_client */;/*!40101 SET character_set_client = utf8 */;CREATE TABLE `contentprop` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `cid` int(10) unsigned NOT NULL, `name` varchar(100) NOT NULL, `value` longtext, PRIMARY KEY (`id`), KEY `FK__cid_id` (`cid`), CONSTRAINT `FK__cid_id` FOREIGN KEY (`cid`) REFERENCES `content` (`id`) ON DELETE CASCADE) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;/*!40101 SET character_set_client = @saved_cs_client */;---- Dumping data for table `contentprop`--LOCK TABLES `contentprop` WRITE;/*!40000 ALTER TABLE `contentprop` DISABLE KEYS */;INSERT INTO `contentprop` VALUES (1,1,'theme','standard'),(2,1,'skin','standard.png'),(3,2,'album_type','flickr'),(4,3,'album_type','custom');/*!40000 ALTER TABLE `contentprop` ENABLE KEYS */;UNLOCK TABLES;---- Table structure for table `systemprop`--DROP TABLE IF EXISTS `systemprop`;/*!40101 SET @saved_cs_client = @@character_set_client */;/*!40101 SET character_set_client = utf8 */;CREATE TABLE `systemprop` ( `name` varchar(100) NOT NULL, `value` longtext, PRIMARY KEY (`name`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;/*!40101 SET character_set_client = @saved_cs_client */;---- Dumping data for table `systemprop`--LOCK TABLES `systemprop` WRITE;/*!40000 ALTER TABLE `systemprop` DISABLE KEYS */;INSERT INTO `systemprop` VALUES ('flickr_api_key','dc123ae6ab78886c452b7ad44ec171c6');/*!40000 ALTER TABLE `systemprop` ENABLE KEYS */;UNLOCK TABLES;
- dfgallery 2.0 安装配置
- 安装配置hadoop2.2.0
- hive 2.0 安装配置
- spark2.2.0安装配置
- GT4.2.0的安装配置
- TileCache 2.0 安装与配置
- Hadoop2.2.0集群安装配置
- Oozie4.2.0配置安装实战
- VS2017 + Opencv3.2.0 安装配置
- JBoss7 安装配置 安装 配置
- 【配置】sqoop安装配置
- 【配置】flume安装配置
- 【配置】Elasticsearch安装配置
- HTML DB 2.0 的安装及配置
- Android SDK 2.0安装、配置图文教程
- Android SDK 2.0安装、配置图文教程
- GTK-2.0 的安装和配置
- Android SDK 2.0安装(配置图文教程)
- 装饰模式(Decorator)
- VIM用户手册 For Vim version 7.3. *usr_21.txt*
- BroadcastReceiver处理耗时操作
- VIM用户手册 For Vim version 7.3. *usr_22.txt*
- “压缩感知” 之 “Hello World”
- dfgallery 2.0 安装配置
- ACE日志系统之本机日志系统的多文件实现
- 后缀数组
- OpenCV中Mat与IplImage和CvMat类型之间的相互转换
- MzTreeView应用
- HDU1702
- QT图形视图框架(待完成)
- openOffice+pdf2swf类百度文库):pdf转swf(Linux,window)
- hdu 2236 无题II