프로그램 사용/Mantis2017. 1. 19. 09:50

음.. admin 계정을 다시 만들고 해봐야겠다.

그리고 /var/www/html 의 권한이 www-data:www-data가 아니면

파일을 쓸수 없어서 config.inc 직접 입력하라고 하네


일단 암호는 md5로 저장되고

admin 계정과 패스워드를 넣지 않으면

administrator / db계정 아이디를 패스워드로 설정하는 것으로 보인다.


step 1. 압축풀고 접속하면 이렇게 설치가능이 뜨는데

어라??? 웬 지역이 평양이야!?!?


Admin username / Password에는 mysql 계정인데 미리 생성을 해줘야 가능한 듯?


아무튼 htdocs 경로가 퍼미션이 안 맞아서 생성못했으니 설정파일 직접넣으라는 경고


퍼미션이 맞으면 자동으로 생성하면서 넘어는 간다.


로그인 페이지. 사마귀가 좀더 귀여워졌다?

근데 administrator라는 계정으로 생성되었는지 말도 없으면서 멘붕을 오게 하는바람에

mantis db 뒤져서 사용자 목록 보고 로그인 ㅠㅠ 망할 -_-

md5로 된거 같은 느낌이라 조회해보니.. db 접속 사용자 id가 administrator의 암호가 되어있네

md5 디코더(?)는 아래 링크에서 사용

[링크 : http://www.md5online.org/]


그런데.. 새로 가입하려니 이메일 아니면 할수가 없네 -_-

새로 이메일 받기도 없고.. 아무튼 설정에서 이메일 확인을 빼는걸 찾아 봐야 할 듯.


db를 보니.. 계정을 생성하면 임시 암호를 이메일과 함께 날리는거 같은데

문제는.. 개인아이피로 하다 보니 포탈로 메일이 안쏴진다!!! 아놔... 어쩌라고 ㅠㅠ

Posted by 구차니
프로그램 사용/Mantis2017. 1. 19. 09:20

예전에 추레했던 디자인에서 일신을 했는데

이번에 블로그 만들면서 혼자 한번 써볼까..


[링크 : https://www.mantisbt.org/bugs]

[링크 : https://www.mantisbt.org/]


+

심심해서 라즈베리 내장 버전을 보니..

1.2.11 으.. 너무 구버전이네 2.0으로 한번 설치는 해봐야지

$ sudo apt-cache search mantis

mantis - web-based bug tracking system 


$ apt-cache show mantis

Package: mantis

Version: 1.2.11-1.2

Installed-Size: 9448

Maintainer: Silvia Alvarez <sils@powered-by-linux.com>

Architecture: all

Depends: debconf, apache2 | httpd, apache2-utils, libapache2-mod-php5 | php5-cli, libphp-adodb, libphp-phpmailer, ucf (>= 0.28), libnusoap-php, libjs-prototype, libjs-scriptaculous, debconf (>= 0.5) | debconf-2.0

Recommends: php5-mysql, mysql-client

Suggests: php5-cli, mysql-server

Size: 2209794

SHA256: 1567627701256a697dd38a95fc88fe02d4cdd0f89905fdbfa413eee640453079

SHA1: 050016bb4073dbe90bf88023bc4c252f43b3336c

MD5sum: 4dded7f3b7844774939c749f9ebb98d0

Description: web-based bug tracking system

Description-md5: ae5ff8aea61e9158d762aeafe05bdd78

Homepage: http://www.mantisbt.org

Tag: devel::bugtracker, devel::lang:sql, implemented-in::php, interface::web,

 network::server, role::program, works-with::bugs, works-with::db

Section: web

Priority: optional

Filename: pool/main/m/mantis/mantis_1.2.11-1.2_all.deb


Posted by 구차니
Programming/php2017. 1. 18. 19:11

직접 타이핑 해서 만든건 처음이군..

일단 post와 get 방식으로 테스트를 하게 되었는데..


<form> 은 method를 지정해주지 않으면 기본값이 get 이기 때문에

method="post"를 넣어 주어야 POST 부분에 출력이 되어 나온다.


php에서 echo . 으로 잇는것도 첨 써보는군 ㅋㅋ

 <?php

        include('./conf.php');


        echo "<pre>";

        echo "POST<br>";

        echo $_POST['id'].":".$_POST['pw'];


        echo "<br>GET<br>";

        echo $_GET['id'].":".$_GET['pw'];

        echo "<pre>";

?>


<html>

<head>

<script src="./jquery-3.1.1.min.js"></script>

</head>

<body>

        <form method="post" action="login.php">

                <input type="text" name="id" />

                <input type="password" name="pw" />

                <button type="submit">login</button>

        </form>


</body>

</html>


[링크 : http://www.w3schools.com/howto/howto_css_login_form.asp]

[링크 : https://www.howtoforge.com/community/threads/simple-html-login-form.2895/]

'Programming > php' 카테고리의 다른 글

php $_REQUEST  (0) 2017.01.25
php global  (0) 2017.01.23
xdebug - php debug / profiler  (0) 2017.01.16
php 암호 해싱  (0) 2017.01.16
php sprintf  (0) 2017.01.15
Posted by 구차니
Linux/Ubuntu2017. 1. 18. 18:45

읭? 오늘 오랫만에 라즈베리 업데이트 하는데 먼가 멈춰있길래 봤더니

루트인증서 업데이트 인 듯?


음.. 빠진건 왜 빠졌을까? WoSign 계열 파동의 여파일려나?


  Update Mozilla certificate authority bundle to version 2.9.

    The following certificate authorities were added (+):

    + "Certplus Root CA G1"

    + "Certplus Root CA G2"

    + "Certum Trusted Network CA 2"

    + "Hellenic Academic and Research Institutions ECC RootCA 2015"

    + "Hellenic Academic and Research Institutions RootCA 2015"

    + "ISRG Root X1"

    + "OpenTrust Root CA G1"

    + "OpenTrust Root CA G2"

    + "OpenTrust Root CA G3"

    + "SZAFIR ROOT CA2"

    The following certificate authorities were removed (-):

    - "CA Disig"

    - "NetLock Business (Class B) Root"

    - "NetLock Express (Class C) Root"

    - "NetLock Notary (Class A) Root"

    - "NetLock Qualified (Class QA) Root"

    - "Sonera Class 1 Root CA"

    - "Staat der Nederlanden Root CA"

    - "Verisign Class 1 Public Primary Certification Authority - G2"

    - "Verisign Class 3 Public Primary Certification Authority"

    - "Verisign Class 3 Public Primary Certification Authority - G2"


 -- Michael Shuler <michael@pbandjelly.org>  Fri, 18 Nov 2016 09:09:47 -0600 


Posted by 구차니
개소리 왈왈/블로그2017. 1. 18. 09:20

페이스 북은 남들은 편하다는데..

초반의 UI 라던가 구성 그리고 강요되는 정보가 많아서

가입만 하고 쓰질 않고 있었는데


거부하는 순간 자신만의 세계에서는 없는일이 되는 필터링

그로인해 특정그룹에서의 문제점을 더더욱 악화시키고 가속화 시키는게 바로

페이스 북 시스템적인 문제가 아닐까 라는 내용.


[링크 : https://1boon.kakao.com/slownews/61044]

Posted by 구차니
개소리 왈왈/블로그2017. 1. 17. 15:54

엌ㅋㅋ

2016년 660개 글 작성 ㅋㅋㅋㅋㅋ

근데 댓글 93개 뿐인데 상위 5%라니.. 티스토리 전체적으로 댓글이 잘 안달리나 보구나..



방문해 주신 40만 7천 7백 14분 에게 감사드립니다!!


[링크 : http://www.tistory.com/thankyou/2016/tistory/533165]



+

비밀 블로그(전부 비공개)를 하나 하는데

하루 하나는 쓰는게 공개된게 없어서 인지 결산자체가 안된다. ㄷㄷ

Posted by 구차니
embeded/raspberry pi2017. 1. 17. 10:08

4k 55인치가 50만원 정도 하길래 문득 욕심이 나서

가능한가 찾아 보니.. 15p만 되면 어우...


그래도 odorid는 1920x1200까지만 된다고 하는거 보단 낫긴한데..

[링크 : http://forum.odroid.com/viewtopic.php?f=95&t=12026]


hdmi_group=2

hdmi_mode=87

hdmi_ignore_edid=0xa5000080

hdmi_cvt 3840 2160 15 

[링크 : http://raspberrypi.stackexchange.com/questions/44089/can-raspberry-pi-3-do-4k-video]


목록상에는 안나오는 87번 모드?

[링크 : http://elinux.org/RPiconfig]

Posted by 구차니
Programming/php2017. 1. 16. 18:23

문득 mediawiki 어디가 이렇게 버벅대나 한번 보려는데 검색을 해보니 xdebug라는 녀석이 있네

$ sudo apt-cache search xdebug

php5-xdebug - Xdebug Module for PHP 5 

[링크 : http://stackoverflow.com/questions/21133/simplest-way-to-profile-a-php-script]


우분투에서 설치하고(라즈베리) phpinfo로 보니 일단 비활성화

xdebug.profiler_aggregate Off Off

xdebug.profiler_append Off Off

xdebug.profiler_enable Off Off

xdebug.profiler_enable_trigger Off Off

xdebug.profiler_output_dir /tmp /tmp

xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p


kcachegrind를 깔기에는 KDE다 끌려올 기세라..

$ apt-cache search KCachegrind

kcachegrind - visualisation tool for the Valgrind profiler

kcachegrind-converters - format converters for KCachegrind profiler visualisation tool 


$ sudo vi /etc/php5/apache2/php.ini

[xdebug]

xdebug.profiler_enable = 1

xdebug.profiler_output_name = xdebug.out.%t

xdebug.profiler_output_dir = /tmp

xdebug.profiler_enable_trigger = 1

[링크 : https://www.sitepoint.com/debugging-and-profiling-php-with-xdebug/]


[링크 : https://code.google.com/archive/p/webgrind/]

[링크 : https://github.com/jokkedk/webgrind]


webgrind를 깔고 하는데 라즈베리 성능의 문제인지 한 5분은 거의 먹통...

아무튼 total inclusive cost 로 정렬을 해보니

라즈베리에서 mysql이 꽤나 느리긴 한지, database-query에서 꽤나 많은 시간을 잡아 먹는다.


+

2017.01.18

어라..? var_dump()를 했는데.. <pre> 태그에 xdebug 관련 내용이 추가되면서

밋밋하던 녀석이 갑자기 컬러풀해졌다?

<pre><pre class='xdebug-var-dump' dir='ltr'>
<b>array</b> <i>(size=4)</i>
0 <font color='#888a85'>=&gt;</font>
<b>array</b> <i>(size=1)</i>
'Tables_in_archlog' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'article'</font> <i>(length=7)</i>
1 <font color='#888a85'>=&gt;</font>
<b>array</b> <i>(size=1)</i>
'Tables_in_archlog' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'blobs'</font> <i>(length=5)</i>
2 <font color='#888a85'>=&gt;</font>
<b>array</b> <i>(size=1)</i>
'Tables_in_archlog' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'reply'</font> <i>(length=5)</i>
3 <font color='#888a85'>=&gt;</font>
<b>array</b> <i>(size=1)</i>
'Tables_in_archlog' <font color='#888a85'>=&gt;</font> <small>string</small> <font color='#cc0000'>'user'</font> <i>(length=4)</i>
</pre></pre>


+

2017.01.19

xdebug가 var_dump를 교체해버린다고 한다.

[링크 : http://stackoverflow.com/questions/15666916/weird-var-dump-behavior]

'Programming > php' 카테고리의 다른 글

php global  (0) 2017.01.23
html+php login form  (0) 2017.01.18
php 암호 해싱  (0) 2017.01.16
php sprintf  (0) 2017.01.15
php array to table  (0) 2017.01.14
Posted by 구차니
프로그램 사용/wiki2017. 1. 16. 13:17

깨끗한 모습은 아래와 같고..

page_id

Uniquely identifying primary key. This value is preserved across edits, renames, and, as of MediaWiki 1.27, deletions, via an analogous field in the archive table (introduced in MediaWiki 1.11). For example, for this page, page_id = 10501. [1][2] This field can be accessed by WikiPage::getId(), Title::getArticleID(), etc.


page_latest

This is a foreign key to rev_id for the current revision. It may be 0 during page creation. It needs to link to a revision with a valid revision.rev_page, or there will be the "The revision #0 of the page named 'Foo' does not exist" error when one tries to view the page. Can be obtained via WikiPage::getLatest(). 

[링크 : https://www.mediawiki.org/wiki/Manual:Page_table]


rev_id

This field holds the primary key for each revision. page_latest is a foreign key to this field.


rev_page

This field holds a reference to the page to which this revision pertains. The number in this field is equal to the page_id field of said page. This should never be invalid; if it is, that revision won't show up in the page history. If page.page_latest links to a revision with an invalid rev_page, this will cause the "The revision #0 of the page named 'Foo' does not exist" error.


rev_text_id

This is a foreign key to old_id in the text table. (The text table is where the actual bulk text is stored.) It's possible for multiple revisions to use the same text—for instance, revisions where only metadata is altered, or where a rollback is done to a previous version. 

[링크 : https://www.mediawiki.org/wiki/Manual:Revision_table]


The text table holds the wikitext of individual page revisions. If using Postgres or Oracle, this table is named pagecontent. 

[링크 : https://www.mediawiki.org/wiki/Manual:Text_table]


낙서를 좀 하면 아래와 같아지나?

page가 주제어에 따른 고유 id로 revision으로 page의 revision을 관리

revision에서는 text와 연결되어 revision 별로 관리 하는데..

그렇다면 page별 리비전은 

revision에서 rev_page값을 page의 page_id를 이용하여 검색하면 될거 같긴하네

내용 자체는 revision의 rev_text_id를 통해 text.old_id를 하면 될 거 같고


[링크 : https://www.mediawiki.org/wiki/Manual:Database_layout]

    [링크 : https://upload.wikimedia.org/wikipedia/commons/9/94/MediaWiki_1.28.0_database_schema.svg]



+

운영중인 위키에서 내용 본건데..

page 의 page_id와 page_latest

revision 의 rev_page와 rev_text_id

text 의 old_id


'프로그램 사용 > wiki' 카테고리의 다른 글

mediawiki upgrade 1.19(LTS) to ???  (0) 2018.04.20
mediawiki sql debug dump  (0) 2017.06.16
mediawiki 다국어 확장 및 번역 확장  (0) 2017.01.10
mediawiki 1.28.0과 Xcache  (0) 2017.01.09
mediawiki extension - deletehistory  (0) 2015.11.04
Posted by 구차니
Programming/php2017. 1. 16. 11:19

brcypt니 mcrypt니 왜 phpmyadmin에서 안뜨나 했더니

얘는 생각을 해보니 mysql에서 제공하는 암화화 방식...

그냥 php 에서 코드 짜서 암호화 하는거라 당연히.. phpmyadmin에서 뜰리가...

ㅠㅠ


[링크 : http://php.net/manual/kr/function.password-hash.php]

'Programming > php' 카테고리의 다른 글

html+php login form  (0) 2017.01.18
xdebug - php debug / profiler  (0) 2017.01.16
php sprintf  (0) 2017.01.15
php array to table  (0) 2017.01.14
php <?=$var>  (0) 2017.01.09
Posted by 구차니