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コレクションで
- Login to the FreeBSD system as root, or su - root to get to super user environment.ログインルート、または、 suコマンドとしては、 FreeBSDのシステムに-スーパーユーザ環境を得るためにr oot。
- 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のパスの環境変数を更新するエラーは、使用してコマンドを焼き直していた。
- 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
- 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置き換えます。
- 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サーバのオプションは、ファイルを変更してください。
- 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 私のデジタルライフフォーラム . 。
Related Articles関連記事
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 2.2 、 MySQLは5.0とPHP 5 -パート4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 WebサーバーはFreeBSD 6.0のインストールにより、 Apache 2.2 、 MySQLは5.0とPHP 5で-パート5
- Easily Set Up Web Server with XAMPP簡単に設定するWebサーバーをXAMPPで
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1 WebサーバーをインストールするWindows XPでのApache2 、 PHP5のとMySQL4 -パート1
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3 WebサーバーをインストールするWindows XPでのApache2 、 PHP5のとMySQL4 -パート3
- Using phpMyAdmin for Effective MySQL Management in Windows XP効果的なWindowsのXP用のphpMyAdminはMySQLの管理を使用する
- FreeBSD Apache HTTP Accept Filter Error FreeBSDのはApache HTTPフィルタエラーを受け入れる
- PHP 5 Unable to Open HTTP Request Stream with fopen or fsockopen Functions PHP 5のfopen関数やfsockopenでHTTPリクエストストリームを開くことができません。
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Databaseスロークエリログを有効にする(スロークエリのログ)のMySQLのデータベース
- Enable MySQL InnoDB Storage Engine Support in XAMPP Installation XAMPPのインストールを有効にするMySQLのInnoDBストレージエンジンをサポート

































May 21st, 2006 13:12 2006年5月21日13:12
mysql_enable = = mysql_enable
May 21st, 2006 14:07 2006年5月21日14:07
Thanks for pointing out, will update.指摘のおかげで、更新されます。
June 6th, 2006 11:08 2006年6月6日11:08
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ありがとう
June 6th, 2006 11:49 2006年6月6日11:49
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パスワードをリセットします。
June 6th, 2006 14:32 2006年6月6日14:32
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詳細ですか?
June 6th, 2006 16:56 2006年6月6日16:56
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.私、どうやって解決することをお知らせください。
June 7th, 2006 13:14 2006年6月7日13:14
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の一部の設定を変更することになったのだが同じ結果を与えたが変化しています。
August 18th, 2006 00:57 8月18日00:57
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.すべての提案を歓迎する。
August 19th, 2006 10:45 8月19日10:45
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?何か助けか。
August 19th, 2006 11:25 8月19日11:25
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を使用している"適切なことは、 "その記事の中で変更されているようだ。
August 19th, 2006 15:10 8月19日15:10
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の'存在チェック!
September 12th, 2006 21:43 9月12日21:43
just deleteだけを削除する
January 27th, 2007 02:06 1月27日2007 02:06
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.ありがとう。
March 5th, 2007 21:24 3月、第5回2007年午後9時24分
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.乾杯。
March 5th, 2007 21:25 3月、第5回2007/07/14 21:25
Oh; and thanks for the great article!ああ、素晴らしい記事をありがとう!
November 12th, 2007 13:32 11月、第12回2007 13:32
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.どうもありがとうございます。
November 12th, 2007 16:33 11月、第12回2007 16:33
rehash is a command to ‘refresh’ the system.焼き直し' 'は、システムを更新するためのコマンドです。 Did it work after rehash.焼き直し後に動作しました。
January 11th, 2008 10:32 2004年12月、第11回2008年10:32
great tutorial!チュートリアル素晴らしい! thanks!ありがとう!
January 23rd, 2008 00:43 2008年1月23日00:43
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
March 23rd, 2008 02:39 2008年3月23日02:39
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の/
August 2nd, 2008 07:21 2008年8月2日07: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のサーバを起動する
August 21st, 2008 13:06 2008年8月21日13:06
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を入力して、ちゃんと働いた。