Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 설치 웹 서버는 FreeBSD 6.0에서 아파치 2.2, MySQL은 5.0과 PHP 5 - 3 부

Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 for a Reliable Web Server 설치 아파치 2.2, MySQL은 5에서 PHP 5는 FreeBSD 6.0에서 웹 서버에 대한 신뢰성

Part 3 - Installing MySQL Server 5 with FreeBSD Ports Collection 제 3 부 - 설치 MySQL 서버 5 FreeBSD의 포트 컬렉션과 함께

  1. Login to the FreeBSD system as root, or su - root to get to super user environment. 로그인을 루트, 또는 홍영기로 FreeBSD의 시스템 - 슈퍼 영웅이 사용자 환경에 도착하는 루트.
  2. Enter the following commands at FreeBSD command line interface (CLI) (Wait till each command to finish processing before running the next command): FreeBSD의 명령줄 인터페이스 (CLI는) 다음 명령을 입력 (각 명령 다음 명령을 실행하기 전에 처리를 마칠 때까지) 기다려 :

    cd /usr/ports/databases/mysql50-server CD / 비디오 usr/ports/databases/mysql50-server
    make install clean 설치하게 청소
    mysql_install_db --user=mysql mysql_install_db으로 - user = mysql을
    chown -R mysql /var/db/mysql/ chown - R은 MySQL이의 / var / DB를 / mysql을 /
    chgrp -R mysql /var/db/mysql/ chgrp - R은 MySQL이의 / var / DB를 / mysql을 /
    /usr/local/bin/mysqld_safe -user=mysql & 는 / usr / / 빈 / mysqld_safe - 사용자 = mysql을 & 지역

    Note: If you encounter Command not found error, use command rehash to update OS path environment variables. 참고 : 만약 당신이 명령 경로 환경 변수를 업데이 트하는 오류가 발생하지 운영 체제를 사용하는 명령을 재탕했다.

  3. The port installation will put a script file mysql-server.sh in /usr/local/etc/rc.d which will has capability to start MySQL server. 포트 설치 - server.sh에서 스크립트 파일을 mysql을 놓을테니까는 / usr /은 / etc / rc.d는 것이다 MySQL 서버를 시작하는 기능이 로컬. To enable MySQL server to start automatically after every FreeBSD server reboot, enter the following command in CLI: 모든 FreeBSD의 서버를 재부 팅 후에 자동으로 시작하려고하는 CLI에서 다음 명령을 입력하여 MySQL 서버를 활성화하려면 :

    echo ‘mysql_enable=”YES”‘ >> /etc/ rc.conf 에코 'mysql_enable = "예"> ">은 / etc / rc.conf

  4. By default, MySQL default super user account - root - has no password (blank password). 기본적으로, MySQL의 기본 수퍼 유저 계정 - 루트 - 비밀 번호 (빈 암호)를 가지고있다. So it’s important to assign the administrator account password. 그래서 관리자 계정 암호를 지정하는 것이 중요합니다. To change the password to root user, enter the following command: 사용자가 루트로, 다음 명령을 입력하는 비밀 번호를 변경하려면 :

    mysqladmin -u root password newpassword mysqladmin은 - u root 암호를 newPassword

    Replace newpassword with your own desired password. 원하는 비밀 번호와 함께 자신만의 newPassword 바꾸십시오.

  5. Optionally, copy either my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf (depending on the usage and utilization of MySQL server) as my.cnf to /var/db/mysql which will enable you to tweak and change the configuration of server-specific MySQL server options by editing the file. 선택, 복사도 내 - huge.cnf, 내 - large.cnf, 내 - medim.cnf, 내 - small.cnf 또는 제 - innodb - 무거운 - 4G.cnf (사용량과 MySQL 서버의 활용도를) 따라 내 . cnf의 / var / DB를 / mysql을하는 당신 팅겨보고 수 있도록하고 서버의 구성 - 편집하여 특정 MySQL 서버 옵션 파일을 변경할 수있습니다.
  6. MySQL 5.0 installation done. MySQL 5.0의 설치를 완료했다.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 중요 :이 기계는 "보증도없이있는 그대로"제공됩니다 페이지를 번역했다. Machine translation may be difficult to understand. 기계 번역을 이해하기 어려울 수있습니다. Please refer to 을 참조하시기 바랍니다 original English article 원래 영어 문서 whenever possible. 언제든 가능합니다.

Share and contribute or get technical support and help at 공유와 기여하거나 기술 지원과에 도움이 My Digital Life Forums 내 디지털 생활 포럼 .



22 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3” 아파치 2.2, MySQL은 5.0과 PHP 5는 FreeBSD 6.0 "설치가 웹 서버에 22 답변 - 제 3 부"

  1. Drache
    May 21st, 2006 13:12 2006년 5월 21일 13:12
    1

    mysql_enable = = mysql_enable

  2. Administrator 관리자
    May 21st, 2006 14:07 2006년 5월 21일 14:07
    2

    Thanks for pointing out, will update. 지적 해 줘서 고마워, 업데이 트됩니다.

  3. jan 1월
    June 6th, 2006 11:08 2006년 6월 6일 11:08
    3

    i’m stucked with the mysql part of your howto, after issuing # mysqladmin -u root password newpassword, i issued # mysql -u root -p newpassword, i always get the access denied error. 난 당신 부모님의 MySQL의 일부로, # mysqladmin은 - u root 암호를 newPassword 발행 후, 난 항상 접근할 # MySQL의 루트는 - u - p를 newPassword, 발행 stucked있어 오류를 부인했다. what did i miss? 내가 뭘 놓친거야?

    thanks 감사합니다

  4. Administrator 관리자
    June 6th, 2006 11:49 2006년 6월 6일 11:49
    4

    jan, may be you have set the password for root. 잰, 당신이 루트에 대한 암호를 설정했을 수있습니다. Try to access mysql with -u userid and -p password option. MySQL을 접속은 - u 아이디 - P는 암호 옵션을 사용해보십시오. Or you can follow instruction 또는 당신이 지시를 따를 수있습니다 here 여기에 on how to change and reset your root password. 귀하의 루트 암호를 재설정하는 방법을 변경하고있다.

  5. jan 1월
    June 6th, 2006 14:32 2006년 6월 6일 14:32
    5

    i’ve tried all the options mentioned but none of them worked, so i did a fresh install again, before creating a password for mysql root user, i logged in as root and it worked fine, i was able to get a mysql shell but when i issue the command mysqladmin to create a password for root, i got an error, i tried to log in as root and wtf i’m back with the same problem. 난 모든 옵션을 언급했지만 그들 중 누구도 일을, 그래서 난 신선한 다시, MySQL의 루트 사용자에 대한 암호를 작성하기 전에 설치 했지, 난 괜찮아 루트와 일한,하지만 MySQL은 껍질을 얻을 수 있었어에 기록 문제는 명령을 mysqladmin 때 루트에 대한 암호를 만들고, 오류가있어, 내가로 루트와 태권도 연맹 다시 같은 문제가 함께있어에서 로그인을 시도한 적이있다. do u think i would be better off if i install phpmyadmin and change the root password from there? 만약 내가 phpMyAdmin은 설치하고 거기에서 루트 암호를 변경할 내가 더 낫지 않을까 생각으로 U합니까?

  6. Administrator 관리자
    June 6th, 2006 16:56 2006년 6월 6일 16시 56분
    6

    Did you flush privileges after changing the password? 당신은 비밀 번호를 변경한 후 권한을 플러시나요? The problem may be due to hashing of MySQL password. 문제는 MySQL의 비밀 번호의 해시로 인해 발생할 수있습니다. May be you can try the following commands after resetting your root password if it cannot works: 수 없다면 작품 괜찮냔 귀하의 루트 암호를 재설정 후 다음 명령을 시도할 수있을 :

    mysql -u root mysql MySQL은은 - u 루트에 mysql
    > UPDATE user SET password=password(’secret’) WHERE user=’root’; > = 비밀 번호 ( '비밀 업데이트'를 사용자 비밀 번호 설정) 여기서 user = '루트';
    > flush privileges; > 플러시 권한;

    You may try phpmyadmin too, but I remembered I used to have exactly this same problem while phpMyAdmin didn’t help much. 당신이 너무 phpMyAdmin은 해보지만, 내가 바로이 같은 문제 phpMyAdmin은별로 도움이되지 않은가하는 데 사용하는 동안 기억하고있다. Do let me know how you solve it. 내게 당신은 그것을 해결하는 방법을 알려주세요.

  7. jan 1월
    June 7th, 2006 13:14 2006년 6월 7일 13:14
    7

    you’re right changing it via phpmyadmin gave me the same result, so what i did was change some settings in the config.inc.php of phpmyadmin, change the auth_type = cookie and blowfish = mypassphrase and everything were fine. phpMyAdmin은 당신을 통해 바로 나, 그럼 내가 뭘, AUTH_TYPE이 = 쿠키와 복어 = mypassphrase했고 모든 게 잘됐다 변경 phpMyAdmin 내부의 일부 설정을 변경했을 뿐인데 config.inc.php에서 동일한 결과를 준 그것을 변경하고있습니다.

  8. rich 부자
    August 18th, 2006 00:57 8 월 18 일 2006 0시 57분
    8

    The problem is that mysql (version 5.x) is not starting with mysql_enable=”YES” in /etc/rc.conf. 문제는 MySQL은 (버전 5.x)이다 mysql_enable = "예"는 / etc / rc.conf 시작되지 않습니다.
    Im using FreeBSD v6.1.x. 임 v6.1.x. FreeBSD의 사용 I do not have the space problem between enable and the “=”. 나는 "="과 활성화 사이의 공간이 문제가되지 않습니다. The message I receive on bootup is “YES: notfound”. 난 부팅에 수신 메시지는 "예 : notfound".

    Any suggestions welcome. 어떤 제안을 환영합니다.

  9. Dom
    August 19th, 2006 10:45 8 월 19 일 2006 10:45
    9

    Ive followed this guide but when i run “mysql-server.sh start” it returns starting mysql and does nothing else. 하지만 필자는이 가이드를 따라 내가 "에 mysql - server.sh 시작"mysql을 시작하고 아무것도 다른가 반환을 실행합니다. i ran “mysql-server.sh status” and it returned “mysql is not running” 난 "에 mysql - server.sh 상태 도망"과 "MySQL이 실행되고 있지 않습니다 돌아왔다"

    mysql_enable=”YES” is in rc.conf but is not starting. = "예"를 mysql_enable rc.conf에있다지만, 시작하지. any help? 어떤 도움?

  10. Administrator 관리자
    August 19th, 2006 11:25 8 월 19 일 2006 11:25
    10

    Check if you can run mysqladmin or other mysql tools. mysqladmin 경우 또는 기타 mysql을 확인 도구를 실행할 수있습니다. Also make sure your “YES” in rc.conf is using proper “, as the ” in the article has been changed. 또한 "예"에 rc.conf 사용하고있습니다 "적절한 확신,"문서에 변경되었습니다으로 확인합니다.

  11. Dom
    August 19th, 2006 15:10 8 월 19 일 2006 15:10
    11

    rc.conf contains rc.conf이 포함되어있습니다
    mysql_enable=”YES” = "예"mysql_enable
    apache22_enable=”YES” = "예"apache22_enable

    here is results from mysqladmin -user admin 여기에서 결과 mysqladmin - 사용자가 관리자입니다

    mysqladmin: connect to server at ‘localhost’ failed mysqladmin : 서버 '에서 localhost를'실패한 연결
    error: ‘Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)’ 오류 : '지역의 MySQL 서버 소켓'을 통해 연결할 수 없다는 / tmp / mysql.sock '(2)'
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists! 그 mysqld 및 실행되고 그 소켓 : '/ tmp를 / mysql.sock'존재를 확인하라!

  12. Jani Syed Jani 셰야드
    September 12th, 2006 21:43 9 월 12 일 2006 21:43
    12

    just delete 그냥 삭제

  13. Younah
    January 27th, 2007 02:06 1 월 27 일 2007 02:06
    13

    Hi, 안녕,
    I have installed freebsd 5.5 and now with your guideline instructions I have install mysql, php5 and apache2.2.But i do not know how to configure a website so I can test that if it works.Please help me with a link who can provide step by step instuctions or refer me some good basic book. 5.5 FreeBSD, 그리고 지금 내가 가진 당신의 지침에 대한 지침과 함께 설치되어 php5와 apache2.2.But 나는 웹사이트를 구성하는 방법 그래서 works.Please면 그 누구와 함께 제공할 수있는 링크 나한테 도움을 테스트할 수있습니다 모르겠 MySQL의 설치 좀 좋은 instuctions 단계로 단계 또는 기본 도서를 참조하십시오.
    Thanks. 감사합니다.

  14. berry__
    March 5th, 2007 21:24 3 월 5 일 2007 21시 24분
    14

    If you’re getting “mysql_install_db: Command not found.” after punching in “mysql_install_db”, you should try to cd to /usr/local/bin/ and then run “mysql_install_db”. 만약 "mysql_install_db : 사령부가 있어요 찾을 수없습니다." "mysql_install_db"에 펀치 후, 당신에게 CD를 시도해야는 / usr / local / bin 안에 / 다음 "mysql_install_db"를 실행합니다.

    Cheers. 환호.

  15. berry__
    March 5th, 2007 21:25 3 월 5 일 2007 21:25
    15

    Oh; and thanks for the great article! 오, 위대한 문서를 주셔서 감사합니다!

  16. bramz4ever
    November 12th, 2007 13:32 11 월 12 일 2007 13:32
    16

    i ecountered the not found error while installing mysql, what should i do? MySQL을 설치하는 동안 오류가 발견되지, 내가 뭘해야 ecountered? and what is the command rehash actually is? 실제로 명령을 재탕 무엇입니까? thank you so much. 너무나 감사합니다.

  17. admin 관리자
    November 12th, 2007 16:33 11 월 12 일 2007 16:33
    17

    rehash is a command to ‘refresh’ the system. 재탕 ','시스템을 새로 고치려면 명령입니다. Did it work after rehash. 재탕 후 작동 했나.

  18. nicky6
    January 11th, 2008 10:32 1 월 11 일 2008 10:32
    18

    great tutorial! 훌륭한 입문서! thanks! 감사합니다!

  19. Matt 매트
    January 23rd, 2008 00:43 2008년 1월 23일 0시 43분
    19

    Where can I find these files on a MySql 5.1 install on FreeBSD 6.2? 어디 MySQL을 6.2에서 5.1로 FreeBSD 설치에 이러한 파일을 찾을 수 있습니까?

    my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf 내 - huge.cnf, 내 - large.cnf, 내 - medim.cnf, 내 - small.cnf 또는 제 - innodb - 무거운 - 4G.cnf

  20. Tyler 타일러
    March 23rd, 2008 02:39 2008년 3월 23일 2시 39분
    20

    the my-huge.cnf, my-large.cnf, my-medim.cnf, my-small.cnf or my-innodb-heavy-4G.cnf are found in /usr/local/share/mysql/ 내 - huge.cnf, 내 - large.cnf, 내 - medim.cnf, 내 - small.cnf 또는 제 - innodb - 무거운 - 4G.cnf에서 발견하는 경우 / usr / local / 공유 / mysql을 /

  21. DrTebi
    August 2nd, 2008 07:21 2008년 8월 2일 7시 21분
    21

    On FreeBSD 7.0 you don’t need to manually install the databases and set permissions, that is done in the startup script the first time it is run. 수동으로 시작 스크립트는 FreeBSD 7.0에서 처음으로 실행되는 데이터베이스에서 수행 설정한 권한을 설치할 필요가없습니다.

    Just make sure you have 그냥 당신이 있는지 확인
    mysql_enable=”YES” = "예"mysql_enable
    in /etc/rc.conf before you run mysql-server. 실행하기 전에는 / etc / rc.conf에서 서버에 mysql -.

    You could hence rewrite the install instructions to this: 당신은이 지침에 따라서 설치를 다시 작성할 수있습니다 :

    cd /usr/ports/databases/mysql50-server CD / 비디오 usr/ports/databases/mysql50-server
    make install clean 설치하게 청소
    echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf 에코 'mysql_enable = "예"> ">은 / etc / rc.conf
    /usr/local/etc/rc.d/mysql-server start 는 / usr / local은 / etc / rc.d / mysql을 - 서버 시작

  22. Leighland
    August 21st, 2008 13:06 2008년 8월 21일 13:06
    22

    Hey there. 어이 거기. I was having trouble with the “mysql_install_db: command not found” when installing FreeBSD 7. 나는 "mysql_install_db와 문제가 있었다 :"FreeBSD의 7을 설치할 때 명령을 찾을 수없습니다. I ran the rehash command and then entered mysql_install_db again and it worked fine. 다시 도망 나와 재탕 mysql_install_db 명령을 입력하고 그것을 잘 일했다.

Leave a Reply 회신을 남겨주세요

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 이러한 태그 : title="">은 <a href="" 사용할 수있습니다 <abbr title=""> <acronym title="">의 <b> <blockquote cite=""> <cite>의 <code> <밤 날짜 = "">은 <em>가 <i> <q cite=""> <strike>의 <strong>

Subscribe without commenting 코멘트를 구독하지 않고


Custom Search

New Articles 새 문서

Incoming Search Terms for the Article 에 대한 검색 약관받는 제

mysql freebsd FreeBSD의 mysql을 - - freebsd mysql FreeBSD의 mysql을 - - freebsd phpmyadmin FreeBSD의 phpMyAdmin은 - - freebsd install mysql MySQL의 설치는 FreeBSD - - freebsd mysql install MySQL의 설치는 FreeBSD - - freebsd apache mysql php howto MySQL은 PHP를 아파치는 FreeBSD 하우투 - - freebsd mysql 5 MySQL은 FreeBSD의 5 - - freebsd mysql config FreeBSD의 MySQL을 구성 - - freebsd rc.conf mysql FreeBSD의 mysql을 rc.conf - - install mysql freebsd MySQL은 FreeBSD의 설치 - - freebsd restart mysql mysql을 다시 시작 FreeBSD의 - - always get in mysql without password 항상 MySQL에 비밀 번호없이는 아무것도 얻을 - - apache2 bsd install Apache2 bsd는 설치 - - apache mysql freebsd 아파치의 MySQL은 FreeBSD - - apache 2.2 is not starting 아파치 2.2을 시작되지 않습니다 - - create a web page in apache server freeBSD 아파치 서버에서 웹 페이지를 만들려는 FreeBSD - - freebsd set up mysql FreeBSD의 설정에 mysql - - freebsd 7.0 installing apache 아파치 설치 7.0 FreeBSD의 - - freebsd mysql enable FreeBSD의 MySQL을 활성화 - - freebsd webserver installation FreeBSD의 웹서버에 설치 - - freebsd starting mysql FreeBSD의 시작에 mysql - - howto php apache freebsd PHP를 아파치는 FreeBSD 하우투 - - how to install mysql in freebsd MySQL을 설치하는 방법은 FreeBSD에서 - - how to install mysql in freebsd 7 MySQL을 설치하는 방법은 FreeBSD에서 7 - - install mysql on freebsd FreeBSD에 관한 MySQL의 설치 - - install apache freebsd 아파치 설치는 FreeBSD - - mysql on freebsd FreeBSD에 관한 mysql을 - - mysql-server freebsd 에 mysql - 서버는 FreeBSD - - mysql_enable mysql_enable - - starting mysql freebsd MySQL은 FreeBSD의 시작 - - apache2+php in freebsd 7 Apache2 + PHP는 FreeBSD의에서 7 - - apache22 "freebsd 5.5" apache22 ""5.5은 FreeBSD - - apache server start result 137 아파치 서버를 시작하는 결과 137 - - freebsd apache shell environment variables 아파치는 FreeBSD 쉘 환경 변수 - - freebsd mysql5 FreeBSD의 mysql5 - - freebsd apache php howto 아파치 PHP는 FreeBSD 하우투 - - freebsd setting up mysql socket MySQL의 소켓을 설정 FreeBSD의 - - freebsd phpmyadmin howto FreeBSD의 phpMyAdmin은 하우투 - - freebsd apache passwords FreeBSD의 아파치 암호 - - freebsd mysql configuration file FreeBSD의 MySQL을 구성 파일 - - Installing Apache 2.2, MySQL 5 and PHP 5 in FreeBSD 6.0 설치 아파치 2.2, MySQL은 5와 PHP 5는 FreeBSD의 6.0에서 - - Installing Apache Mysql and PHP on FreeBSD MySQL과 아파치를 설치 PHP를 FreeBSD에 관한 - - install web server freebsd 설치 웹 서버는 FreeBSD - - installera mysql freebsd MySQL은 FreeBSD의 installera - - instalar mysql + bsd instalar mysql을 + bsd는 - - install webserver on freebsd FreeBSD에 관한 웹서버 설치 - - kaspersky local apache not running 카스 퍼 스키 로컬 아파치를 실행하지 - - mysql freebsd install MySQL의 설치는 FreeBSD - - MySQL in freeBSD MySQL은 FreeBSD의에 - - mysql config freebsd MySQL의 설정은 FreeBSD - -