ååæ¸ããç¶ãã§
Movable Typeãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããã
ï¼æ£å¼ã«ã¯MTOS Movable Type Open Sourceã«ãªãã¾ããããï¼
VMware Playerä¸ã®CentOS 4.6 ã«apache_1.3.41ãé©å½ã«ã¤ã³ã¹ãã¼ã«
./configureã§é©å½ã«ãªãã·ã§ã³ãæå®
apacheãã¤ã³ã¹ãã¼ã«ã§ã㦠DocumentRootãè¨å®ãã
æ¥æ¬èªçã®MTOS-4.1-ja.tarãã¦ã³ãã¼ããDocumentRootã§è§£å
http://hostname/mt.cgiã«ã¢ã¯ã»ã¹ãããcgiãåä½ããªãï¼ç¬ï¼
cgiã®è¨å®ãå®å ¨ã«å¿ãã¦ãç§ ç¸å¤ããã馬鹿ã ï½
cgiã®è¨å®ãå®äºãã¦ä»åº¦ããmt.cgiã«ã¢ã¯ã»ã¹ãããã»ã»ã»ã»
Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory" at lib/MT.pm line 877.
ã¨ããã¨ã©ã¼ãåºãï½
mtosã¯ãã¿ã³ä¸çºã§ã¤ã³ã¹ãã¼ã«ã§ããã¨ãããå 輩ããèãã¦ããã®ã§ãããªãåçºè¦ï¼ç¬ï¼
ã¾ããmt.cgiã«ãå©ãã¨javascriptãç¡å¹ã ã¨åä½ããªãã
ã£ã§javascriptãæå¹ã«ããã¨http://dummy-hostã»ã»ã»/mt-wizerd.cgiã«ã¢ã¯ã»ã¹ããã
ï¼ãã®ãã¹ãåã¯ä½ï¼ã¨æã£ããVirtualHostã«ããã©ã«ãã§è¨è¿°ããã¦ããã¹ãåãããï¼
ã§ãããããããhttpd.confãç·¨éãã¦192.168.1.xxxã«å¤æ´
é¢åãªã®ã§hostsãã¡ã¤ã«ã«è¨å®ããããã¨æã£ãããã¡ããã¨è¨å®ã
åã³ã¢ã¯ã»ã¹ããã¨ãä»åº¦ã¯
Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory" at lib/MT.pm line 877.
ãªãã¨ã©ã¼ãããããã¢ãããã±ãã£ã¦æãã§èª¿ã¹ã
å¿ è¦ãªã¢ã¸ã¥ã¼ã«ãå ¥ã£ã¦ãªããããmt-check.cgiãå©ãã¨ã¢ã¸ã¥ã¼ã«é¡ããã§ãã¯ãã¦ãããããããã¾ãã²ã¨ã¤è³¢ããªã£ãã
ã§mt-check.cgiãå©ãã¨perlã®DBI 㨠DBDç³»ã®ãã®ãä¸è¶³
perl -MCPAN -e shell ã§CPANã®è¨å®ãåããï¼å ¨é¨ããã©ã«ãï¼
install DBI
install DBD::Pgã§ã¤ã³ã¹ãã¼ã«
ã§è¶³ããªããã®ããã£ã±ããããã¨ããããåä½ããã°ããã®ã§ããã§OK
http://192.168.1.xxx/mt.cgiãå©ã
åããw
ã¨æã£ããéä¸ã§
ã¤ã³ã¹ãã¼ã«ä¸ã«ã¨ã©ã¼ãçºçãã¾ãã undefined type: at lib/MT/Upgrade.pm line 1316 ãã¿ã¼ æå³ã®ããããªãã¨ã©ã¼
ã°ã°ã¬ã«ã¹ã§å 人ããã対å¿æ¸ã¿ã¹ã²ã¼
lib/MT/ObjectDriver/DDL.pmã®
} elsif($type == SQL_BOOLEAN){
return 'boolean';
}
warn "unresolved type: $type\n";
ã
} elsif ($type == SQL_BOOLEAN) {
return 'boolean';
} elsif ($type == SQL_FLOAT) {
return 'float';
}
warn "unresolved type: $type\n";
ã¨ããã¨åãã
ï¼ãªããéä¸CPANããDBD::Pgãå ¥ãã¦ãã¨ãã«ãã¹ãã§ã¨ã©ã¼ãåºã¦ã¤ã³ã¹ãã¼ã«ã§ããªãã£ãã®ã§ãã¹ãæãã§æåã§ã¤ã³ã¹ãã¼ã«ããï½ï¼
ã¤ã³ã¹ãã¼ã«é¢åã ãªï½ï½
Movable Typeãã¤ã³ã¹ãã¼ã«ãã¦ã¿ã¾ããã
ï¼æ£å¼ã«ã¯MTOS Movable Type Open Sourceã«ãªãã¾ããããï¼
VMware Playerä¸ã®CentOS 4.6 ã«apache_1.3.41ãé©å½ã«ã¤ã³ã¹ãã¼ã«
./configureã§é©å½ã«ãªãã·ã§ã³ãæå®
apacheãã¤ã³ã¹ãã¼ã«ã§ã㦠DocumentRootãè¨å®ãã
æ¥æ¬èªçã®MTOS-4.1-ja.tarãã¦ã³ãã¼ããDocumentRootã§è§£å
http://hostname/mt.cgiã«ã¢ã¯ã»ã¹ãããcgiãåä½ããªãï¼ç¬ï¼
cgiã®è¨å®ãå®å ¨ã«å¿ãã¦ãç§ ç¸å¤ããã馬鹿ã ï½
cgiã®è¨å®ãå®äºãã¦ä»åº¦ããmt.cgiã«ã¢ã¯ã»ã¹ãããã»ã»ã»ã»
Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory" at lib/MT.pm line 877.
ã¨ããã¨ã©ã¼ãåºãï½
mtosã¯ãã¿ã³ä¸çºã§ã¤ã³ã¹ãã¼ã«ã§ããã¨ãããå 輩ããèãã¦ããã®ã§ãããªãåçºè¦ï¼ç¬ï¼
ã¾ããmt.cgiã«ãå©ãã¨javascriptãç¡å¹ã ã¨åä½ããªãã
ã£ã§javascriptãæå¹ã«ããã¨http://dummy-hostã»ã»ã»/mt-wizerd.cgiã«ã¢ã¯ã»ã¹ããã
ï¼ãã®ãã¹ãåã¯ä½ï¼ã¨æã£ããVirtualHostã«ããã©ã«ãã§è¨è¿°ããã¦ããã¹ãåãããï¼
ã§ãããããããhttpd.confãç·¨éãã¦192.168.1.xxxã«å¤æ´
é¢åãªã®ã§hostsãã¡ã¤ã«ã«è¨å®ããããã¨æã£ãããã¡ããã¨è¨å®ã
åã³ã¢ã¯ã»ã¹ããã¨ãä»åº¦ã¯
Got an error: Can't locate object method "configure" via package "MT::ObjectDriverFactory" at lib/MT.pm line 877.
ãªãã¨ã©ã¼ãããããã¢ãããã±ãã£ã¦æãã§èª¿ã¹ã
å¿ è¦ãªã¢ã¸ã¥ã¼ã«ãå ¥ã£ã¦ãªããããmt-check.cgiãå©ãã¨ã¢ã¸ã¥ã¼ã«é¡ããã§ãã¯ãã¦ãããããããã¾ãã²ã¨ã¤è³¢ããªã£ãã
ã§mt-check.cgiãå©ãã¨perlã®DBI 㨠DBDç³»ã®ãã®ãä¸è¶³
perl -MCPAN -e shell ã§CPANã®è¨å®ãåããï¼å ¨é¨ããã©ã«ãï¼
install DBI
install DBD::Pgã§ã¤ã³ã¹ãã¼ã«
ã§è¶³ããªããã®ããã£ã±ããããã¨ããããåä½ããã°ããã®ã§ããã§OK
http://192.168.1.xxx/mt.cgiãå©ã
åããw
ã¨æã£ããéä¸ã§
ã¤ã³ã¹ãã¼ã«ä¸ã«ã¨ã©ã¼ãçºçãã¾ãã undefined type: at lib/MT/Upgrade.pm line 1316 ãã¿ã¼ æå³ã®ããããªãã¨ã©ã¼
ã°ã°ã¬ã«ã¹ã§å 人ããã対å¿æ¸ã¿ã¹ã²ã¼
lib/MT/ObjectDriver/DDL.pmã®
} elsif($type == SQL_BOOLEAN){
return 'boolean';
}
warn "unresolved type: $type\n";
ã
} elsif ($type == SQL_BOOLEAN) {
return 'boolean';
} elsif ($type == SQL_FLOAT) {
return 'float';
}
warn "unresolved type: $type\n";
ã¨ããã¨åãã
ï¼ãªããéä¸CPANããDBD::Pgãå ¥ãã¦ãã¨ãã«ãã¹ãã§ã¨ã©ã¼ãåºã¦ã¤ã³ã¹ãã¼ã«ã§ããªãã£ãã®ã§ãã¹ãæãã§æåã§ã¤ã³ã¹ãã¼ã«ããï½ï¼
ã¤ã³ã¹ãã¼ã«é¢åã ãªï½ï½