Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 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 インストールのApache 2.2 、 MySQLは5およびPHP 5のFreeBSD 6.0で信頼性の高いWebサーバーの

Part 3 - Installing MySQL Server 5 with FreeBSD Ports Collectionパート3 -M ySQLサーバのインストール5 F reeBSDのp ortsコレクションで

  1. Login to the FreeBSD system as root, or su - root to get to super user environment.ログインルート、または、 suコマンドとしては、 FreeBSDのシステムに-スーパーユーザ環境を得るためにr oot。
  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を-ユーザ= m ysqlの
    chown -R mysql /var/db/mysql/をchown - Rにmysqlのは/ var /データベース/ mysqlの/
    chgrp -R mysql /var/db/mysql/ chgrp - Rにmysqlのは/ var /データベース/ mysqlの/
    /usr/local/bin/mysqld_safe -user=mysql &を/ usr / / binに/ mysqld_safeをユーザ=のmysql &ローカル

    Note: If you encounter Command not found error, use command rehash to update OS path environment variables.注:コマンドに遭遇した場合はOSのパスの環境変数を更新するエラーは、使用してコマンドを焼き直していた。

  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 /これはMySQLサーバを起動する能力がrc.dローカル。 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: rootには、次のコマンドを入力し、パスワードを変更するには:

    mysqladmin -u root password newpassword rootのパスワードはmysqladmin - uを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 /データベース/ mysqlのは、あなたを微調整できるようになるし、サーバーの構成を編集することにより、特定のMySQLサーバのオプションは、ファイルを変更してください。
  6. MySQL 5.0 installation done. 5.0 MySQLのインストールを行います。

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”のApache 2.2 、 MySQL 5.0以降とPHP 5のFreeBSD 6.0 "をインストールするWebサーバーへの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.私はあなたのHOWTOのmysqlの部分を、 #はmysqladmin - uをnewpassword rootのパスワードを発行後、私は常にアクセスする#の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. 1月は、ルートのパスワードを設定している可能性があります。 Try to access mysql with -u userid and -p password option.でのMySQLにアクセスするために- uを- pのユーザーID とパスワードのオプションを試してください。 Or you can follow instructionそれとも、命令に従うことができます hereここで on how to change and reset your root password.にどのように変更すると、 rootパスワードをリセットします。

  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のrootユーザのパスワードを作成する前にインストールした、私は、 rootユーザで、ちゃんと仕事を、私はmysqlのシェルを起動することができたに記録ときに問題は、コマンドmysqladminはルートのパスワードを作成するために、私にエラーが、私としてwtfルートと私は再び同じ問題を持っていないためにログインしようとした。 do u think i would be better off if i install phpmyadmin and change the root password from there? phpMyAdminは、そこからインストールした場合は、 rootのパスワードを変更するとうまくいくと思う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:動作することができない場合は、 5月に、 rootパスワードをリセットした後、次のコマンドを試すことができること:

    mysql -u root mysqlのmysql - uをルートのmysql
    > UPDATE user SET password=password(’secret’) WHERE user=’root’; > =パスワード( '秘密'のUPDATEユーザパスワードの設定)ここでユーザ= 'ルート' ;
    > 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日00: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”.私は起動時に受信メッセージ"はYESです: notfound " 。

    Any suggestions welcome.すべての提案を歓迎する。

  9. Domドン
    August 19th, 2006 10:45 8月19日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日11:25
    10

    Check if you can run mysqladmin or other mysql tools. MySQLの場合はmysqladminや他のツールを実行することができます確認してください。 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日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ヤニSyed
    September 12th, 2006 21:43 9月12日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年午後9時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/07/14 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 2004年12月、第11回2008年10:32
    18

    great tutorial!チュートリアル素晴らしい! thanks!ありがとう!

  19. Mattマット
    January 23rd, 2008 00:43 2008年1月23日00:43
    19

    Where can I find these files on a MySql 5.1 install on FreeBSD 6.2?ここで5.1はFreeBSD 6.2にMySQLをインストールするにこれらのファイルを見つけることができますか?

    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日02: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日07: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> これらのタグ :の<a href=""使用することができますtitle=""> <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着信は、文書の検索利用規約

freebsd mysql FreeBSDのMySQLの - - freebsd install mysql FreeBSDのMySQLのインストール - - install mysql freebsd FreeBSDのMySQLのインストール - - mysql freebsd FreeBSDの MySQLの - - phpmyadmin freebsd phpMyAdminはFreeBSDの - - install mysql on freebsd FreeBSD上でのMySQLのインストール - - freebsd phpmyadmin FreeBSDのphpMyAdminは - - FreeBSD mysql config FreeBSDのMySQLの設定 - - freebsd mysql install FreeBSDのMySQLのインストール - - freebsd mysql server FreeBSDのMySQLサーバ - - mysql freebsd install FreeBSDのMySQLのインストール - - mysql_enable mysql_enable - - freebsd apache howto FreeBSDのApacheの手引き - - freebsd mysql-server FreeBSDのMySQLのサーバー - - freebsd mysql5 MySQL5対策をFreeBSD - - freebsd mysql rc.conf FreeBSDのmysqlのrc.conf - - mysql 5 freebsd mysqlの5のFreeBSD - - freebsd mysql start FreeBSDのMySQLの起動 - - install mysql in freebsd FreeBSDのでのMySQLのインストール - - install mysql server freebsd MySQLサーバのFreeBSDをインストール - - freebsd mysql apache FreeBSDのmysqlのapacheの - - freebsd mysql howto FreeBSDのMySQLの手引き - - freebsd mysql 5 MySQLのFreeBSDの5 - - installing mysql freebsd FreeBSDのMySQLをインストールする - - freebsd installing mysql FreeBSDのMySQLをインストールする - - start mysql freebsd MySQLのFreeBSDの起動 - - FreeBSD mysql FreeBSDのMySQLの - - freebsd FreeBSDの - - mysql rc.conf mysqlのrc.conf - - mysql server freebsd MySQLサーバはFreeBSD - - install apache in freebsd 7 FreeBSDのapacheのインストール7 - - freebsd install mysql5 MySQL5対策のFreeBSDをインストール - - how to install mysql on freebsd FreeBSD上でどのようにMySQLをインストールするには - - mysql-server freebsd MySQLのサーバはFreeBSD - - mysql freebsd howto MySQLのFreeBSDの手引き - - mysql on freebsd FreeBSD上でのmysql - - rc.conf mysql rc.confのmysql - - mysql FreeBSD rc.conf MySQLのFreeBSDのrc.conf - - install web server di freebsd WebサーバーディFreeBSDのインストール - - installing mysql on freebsd FreeBSD上でMySQLをインストールする - - mysql5 freebsd MySQL5対策をFreeBSD - - Installing Web Server in FreeBSD 6.0 をインストールするWebサーバーはFreeBSD 6.0 - - freebsd mysql5 install MySQL5対策のFreeBSDをインストール - - freebsd mysql config file FreeBSDのMySQLの設定ファイル - - install mysql freebsd 7 FreeBSDの MySQLのインストール7 - - freebsd start mysql FreeBSDの起動のmysql - - apache22_enable: not found apache22_enable :が見つかりません - - install apache on freebsd 7 7 FreeBSD上でApacheのインストール - - MySQL apache rapidshare MySQLのapacheのrapidshare - - mysql apache 2.2 mysqlのapacheの2.2 - -