dotProject
°ø½Ä »çÀÌÆ® ¶
¹¹¿¡ ¾²´Â ¹°°ÇÀΰí? ¶dotProject´Â ¿ÀÇ ¼Ò½º À¥ ±â¹Ý ÇÁ·ÎÁ§Æ® ÅëÇÕ °ü¸®µµ±¸ÀÌ´Ù. PHP·Î ÀÛ¼ºµÇ¾ú´Ù.
ƯÈ÷, Áß¼Ò±â¾÷¿¡ ÀûÇÕÇÏ¸ç °¢ ÇÁ·ÎÁ§Æ®¸¦ ÀÏ°ü¼ºÀÖ´Â ÀÎÅÍÆäÀ̽º·Î °ü¸®ÇÏ°Ô ÇØÁØ´Ù.
°¢ ȸ»çº° ÁÖ¼Ò°ü¸®, °¢ ÇÁ·ÎÁ§Æ®º° ÀÏÁ¤°ü¸®, °¢ ÇÁ·ÎÁ§Æ®ÀÇ ÁøÇà »óȲÀ» ÇÑ´«¿¡ º¸¿©ÁÖ´Â °£Æ® Â÷Æ®, ÇÁ·ÎÁ§Æ® ¹× °¢ ÀÛ¾÷º° ÆÄÀÏ ¿Ã¸®±â. °¢ ȸ»ç ¹× ÇÁ·ÎÁ§Æ®º° Æ÷·³ °Ô½ÃÆÇ Áö¿ø. ´Ù±¹¾î Áö¿ø µî ´Ù¾çÇÑ ±â´ÉÀ» °¡Áö°í ÀÖÀ¸¸é¼µµ ±× ÀÎÅÍÆäÀ̽º°¡ ¸Å¿ì ±ò²ûÇÏ°í Á÷°üÀûÀÌ´Ù.
¾ÈŸ±õ°Ôµµ ¾ÆÁ÷ ¹ö±× Æ®·¡Å· ±â´ÉÀº ¾ø´Ù.
Ticket ÀÌ ¹ö±× Æ®·¡Å· ±â´ÉÀ» ÇÏ´Â °Í°°Àºµ¥¿ä. --mwPark
¼³Ä¡µÈ ÇÁ·Î±×·¥µé ¶Apache 1.3.27, php 4.1.2, mysql 3.23.58, gd 1.8, freetype 2.0.3
¸ðµÎ Redhat ¿¡¼ Á¦°øÇÏ´Â ±âº» RPM ÆÄÀϵé·Î ¼³Ä¡ÇÔ
** Apache + PHP + MySQL½ÇÇà ȯ°æ ¼³Á¤
* LANG º¯¼ö´Â ´ÙÀ½°ú °°´Ù.
LANG=ko_KR.eucKR * for PHP
/etc/php.ini default_mimetype = "text/html" default_charset = "euc_kr" file_uploads = on upload_max_filesize = 20M ; DEFAULT is 2M max_execution_time = 300 ; DEFAULT is 30 [seconds] post_max_size = 12M ; DEFAULT is 8M * for Apache
/etc/httpd/conf/httpd.conf ¿¡ ´ÙÀ½ ³»¿ë ÀÖ´ÂÁö È®ÀÎ - º¸ÅëÀº ÀÖ´Ù.
<IfDefine HAVE_PHP4> LoadModule php4_module modules/libphp4.so </IfDefine> * PHP ¼³Ä¡ ¿©ºÎ È®ÀÎ
/var/www/html/test.php ÀÛ¼º
<?php phpinfo(); ?> http://localhost/test.php ·Î ½ÇÇàÇÏ¿© PHP Á¤º¸°¡ ³ª¿À¸é ¼º°ø. »èÁ¦ÇÑ´Ù.
* for MySQL
¸ÕÀú ´ÙÀ½À» ½ÇÇàÇÏ¿© µ¥ÀÌÅͺ£À̽º root °èÁ¤ÀÇ ºñ¹Ð¹øÈ£ º¯°æ
# mysqladmin -uroot password ºñ¹Ð¹øÈ£ MySQL¿¡ Á¢¼ÓÇÒ ¶§´Â ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÑ´Ù.
# mysql -uroot ºñ¹Ð¹øÈ£ MySQL ¼³Á¤ÆÄÀÏ¿¡ ÇÑ±Û ¼³Á¤
/etc/my.cnf [mysqld] language=korean default-character-set=euc_kr MySQL ½ÃÀÛÀº
# service mysqld start dotProject ¼³Ä¡ ½ÃÀÛ ¶* ÆÄÀÏ ¼³Ä¡ ¹× Çã°¡±Ç ¼³Á¤(Apache ÀÇ Çã°¡±ÇÀ¸·Î)
# tar xvzf dotproject-version.tar.gz -C /var/www/html # chown -R apache:apache dotproject * DB ¼³Á¤
# mysql -uroot -p DB »ý¼º
mysql> CREATE DATABASE dotproject; dotproject »ç¿ëÀÚ »ý¼º
mysql> GRANT ALL PRIVILEGES ON dotproject.* TO dotproject@localhost IDENTIFIED BY "password" WITH GRANT OPTION; dotproject Å×ÀÌºí »ý¼º
# mysql -udotproject -ppassword dotproject < /var/www/html/dotproject/db/dotproject_102.sql * ¾ð¾îÆÑ ¹Þ±â/¼³Á¤
¾Æ·¡¿Í °°ÀÌ Çϸé ko/ µð·ºÅ丮°¡ »ý¼ºµÇ¸ç Çѱ¹¾îÆÑ ¼³Ä¡°¡ µÈ´Ù.
# cd dotproject/locales # wget http://www.joyul.pe.kr/dotproject_language_pack_ko.tar.gz # tar xvzf dotproject_language_pack_ko.tar.gz system.inc ÆÄÀÏÀÇ ¸ÇÀ§¿¡ Çѱ¹¾î Ãß°¡
# vi dotproject/locales/en/system.inc "ko"=>"Korean", * ¼³Á¤Çϱâ
# cd /var/www/html/dotproject/includes/ # cp config-dist.php config.php ´ÙÀ½°ú °°Àº ºÎºÐÀ» ¼³Á¤ÇØÁØ´Ù.
!! ÁÖÀÇ : ¾Æ·¡ ÆÄÀÏÀº UTF-8 ·Î ÀúÀåÇؾ߸¸ ÇÑ´Ù!
# vi config.php $dPconfig['dbtype'] = "mysql"; // ONLY MySQL is supported at present $dPconfig['dbhost'] = "localhost"; $dPconfig['dbname'] = "dotproject"; // Change to match your DotProject Database Name $dPconfig['dbuser'] = "dotproject"; // Change to match your MySQL Username $dPconfig['dbpass'] = "password"; // Change to match your MySQL Password $dPconfig['host_locale'] = "ko"; $dPconfig['currency_symbol'] = "£Ü"; // local settings [DEFAULT example WINDOWS] $dPconfig['root_dir'] = "/var/www/html/dotproject"; // No trailing slash $dPconfig['company_name'] = "ȸ»çÀ̸§"; // ¾Ë¸Â°Ô ¹Ù²Þ $dPconfig['page_title'] = "¿ì¸®È¸»ç ÇÁ·ÎÁ§Æ®"; // ¾Ë¸Â°Ô ¹Ù²Þ $dPconfig['base_url'] = "http://localhost/dotproject"; // ¾Ë¸Â°Ô ¹Ù²Þ $dPconfig['site_domain'] = "dotproject.org"; // ¾Ë¸Â°Ô ¹Ù²Þ * Gantt Chart ÇѱÛÈ
¹é¹¬ ±Û²ÃÀ» ¼³Ä¡ÇÑ´Ù. Redhat¿¡´Â ÀÌ¹Ì ¼³Ä¡µÇ¾î ÀÖ´Ù.
freetype ¹öÀüÀÌ ÃÖ½ÅÀ̶ó¸é ±Û²ÃÀº À©µµ¿ìÀÇ »õ±¼¸²(ngulim.ttf)ÀÌ
°¡Àå ±ò²ûÇÏ°Ô ³ª¿Ô´Ù. Redhat 7.2 ÀÇ freetypeÀº »õ±¼¸²ÀÇ ³»Àå ºñÆ®¸Ê±Û²ÃÀ»
ÀνÄÇÏÁö ¸øÇϱ⠶§¹®¿¡ ¹é¹¬±¼¸²°ú ´Ù¸¦¹Ù ¾ø¾ú´Ù.
TTF ±Û²Ã·Î ÀÚÀ¯·Ó°Ô ¼±ÅÃÇؼ Çغ»´Ù.
# cd dotproject/lib/jpgraph/src # vi jpgraph.php ´ÙÀ½°ú °°Àº ºÎºÐÀ» ã¾Æ¼ TTF ±Û²Ã µð·ºÅ丮·Î ¼öÁ¤ÇÑ´Ù.
¸¶Áö¸·ÀÇ "/" »©¸ÔÁö ¸»¾Æ¾ßÇÑ´Ù.
DEFINE("TTF_DIR", "/usr/share/fonts/ko/TrueType/"); ±Û²Ã ¼³Á¤ºÎºÐÀ» ã¾Æ ´ÙÀ½ Ãß°¡
DEFINE("FF_GULIM", 18); FF_COMIC À¸·Î ½ÃÀÛÇÏ´Â ´ÙÀ½ ºÎºÐÀ» ã¾Æ FF_GULIM ºÎºÐ¸¸ Ãß°¡
¿©±â¼ 'gulim' ÀÌ°ÍÀÌ ±Û²Ã ÆÄÀÏÀ» ÁöÁ¤ÇÏ´Â ºÎºÐÀÌ´Ù.
ÀÌ°ÍÀ» gulim À̶ó°í Çϸé gulim.ttf ¸¦ ã°í batang À¸·Î Çϸé batang.ttf¸¦ ã´Â´Ù.
»õ±¼¸²À» ¾´´Ù¸é ngulim À¸·Î ÇϸéµÈ´Ù.
FF_COMIC => array(FS_NORMAL=>'comic', FS_BOLD=>'comicbd', FS_ITALIC=>'', FS_BOLDITALIC=>'' ), FF_GULIM => array(FS_NORMAL=>'gulim', FS_BOLD=>'', FS_ITALIC=>'',FS_BOLDITALIC=>'' ), FF_ARIAL => array(FS_NORMAL=>'arial', FS_BOLD=>'arialbd', FS_ITALIC=>'ariali', FS_BOLDITALIC=>'arialbi' ) ); ´ÙÀ½ ºÎºÐÀÇ FF_BOOKÀ» FF_GULIM À¸·Î ¼öÁ¤
elseif($this->font_family >= FF_COURIER && $this->font_family <= FF_GULIM) { $this->_StrokeTTF($x,$y,$txt,$dir,$paragraph_align,$debug); } ´ÙÀ½¿¡¼ FF_FONT1 À» FF_GULIM À¸·Î ¹Ù²Û´Ù.
# vi jpgraph_gantt.php class TextProperty { var $iFFamily=FF_GULIM,$iFStyle=FS_NORMAL,$iFSize=10; ´Ù½Ã ¿µ¹® ±Û²Ã·Î °¡·Á¸é ¿©±â¼ FF_GULIM¸¸ FF_FONT1·Î ÇØÁÖ¸é µÈ´Ù.
¸Ç ¸¶Áö¸·ÀÇ $iFSize=10 ÀÌ ±Û²Ã Å©±âÀÌ´Ù. »õ±¼¸²À¸·Î Çϸé 9Á¤µµ°¡ Àû´çÇÑ°Í °°´Ù.
dotProject 1.0.1Àº ÀÌ·¸°Ô Çϸé ÇѱÛÀº ³ª¿Â´Ù.
ÇÏÁö¸¸ 1.0.2ÀÇ °æ¿ì¿¡´Â ±×·¸Áö ¸øÇÏ´Ù.
dotProject 1.0.1 ÀÇ dotproject/modules/tasks/gantt.php ¸¦ dotProject 1.0.2¸¦ ¼³Ä¡ÇÑ µð·ºÅ丮ÀÇ
ÆÄÀÏ¿¡ µ¤¾î½áÁÖ¸é µÈ´Ù.
ÁÁÀº ±Û °¨»çÇÕ´Ï´Ù. Çѹ濡 ¼³Ä¡ ¼º°øÇß½À´Ï´Ù. --mwPark
FAQ : ÇÁ·ÎÁ§Æ® ¹× ÀÛ¾÷ Ãß°¡´Â µÇ¾úÀ¸³ª ¼öÁ¤ ºÎºÐ¿¡¼ ¹®Á¦°¡ ÀÖ½À´Ï´Ù. ¾î¶² ºÎºÐÀ» º¯°æÇØ¾ß ÇÒ±î¿ä?
¼³Ä¡´Â µÇ¾ú´Âµ¥ °£Æ® ÃÆ®°¡ º¸ÀÌÁú ¾Ê½À´Ï´Ù. ÃÆ® ¼³Á¤¿¡ ´ëÇØ ÀÚ¼¼È÷ ¼³¸í Á» ºÎŹµå¸³´Ï´Ù!
jpgraph¿Í ÇÑ±Û ¹®Á¦ÀÎ °Í °°Àºµ¥ Çѱ۷ΠÃÆ® Àß ³ª¿À½Ã´Â ºÐ?
ÇöÀç »ç¿ëÇÏ´Â ¹öÀüÀÌ 2.0.1 ÀÔ´Ï´Ù. ¾î·Æ°Ô ÇØ°á Ç߳׿ä.
°£Æ®Â÷Æ®°¡ ¾Èº¸ÀÌ´Â ºÐÀº php.ini ÆÄÀÏ¿¡¼ memory_limit = 64M À¸·Î º¯°æÇÏ°í ¾ÆÆÄÄ¡¸¦ ´Ù½Ã ¶ç¿ì¼¼¿ä.
±×·¡µµ ¾Èº¸À̽ô ºÐµéÀº modules/tasks/gantt.php ÆÄÀÏ¿¡¼ ¾Æ·¡¸¦ ¼öÁ¤ÇØ ÁÖ¼¼¿ä
/* This configuration variable is obsolete */ $jpLocale = dPgetConfig( 'jpLocale' ); if ($jpLocale) { $graph->scale->SetDateLocale( $jpLocale ); } //$graph->scale->SetDateLocale( $AppUI->user_locale ); ÀÌ»óÀÌ Á¦°¡ ¼³Á¤ÇÑ »çÇ×µé ÀÔ´Ï´Ù.
Ãß°¡·Î °ø½Ä ÆäÀÌÁö¿¡ °¡º¸¸é °£Æ®ÃÆ®¿¡¼ ¾ð¾î°¡ ±úÁö´Â ¹®Á¦°¡ Àִµ¥, ÇØ´ç ºÎºÐ¿¡ ´ëÇؼ´Â ´ÙÀ½ ¹öÀü¿¡ ¼öÁ¤ÇÒ °èȹÀ̶ó´Â±º¿ä.
Comment By Redwing2005.07.28
|
Today is a good day to bribe a high ranking public official. |