Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 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 ، 5 ماي. س. ك وPHP 5 في فري بي 6.0 لموثوق به خادم الويب
Part 3 - Installing MySQL Server 5 with FreeBSD Ports Collection الجزء 3 -- تركيب 5 ماي. س. ك الخادم مع الموانئ جمع فري بي
- Login to the FreeBSD system as root, or su - root to get to super user environment. تسجيل الدخول إلى نظام فري بي الجذر ، أو سو -- الجذر فائقة للوصول الى بيئة المستخدم.
- Enter the following commands at FreeBSD command line interface (CLI) (Wait till each command to finish processing before running the next command): أدخل الأوامر التالية في فري واجهة سطر الأوامر (المبادرة القطرية) (انتظر حتى الانتهاء من كل قيادة تجهيز قبل ادارة قيادة المقبل) :
cd /usr/ports/databases/mysql50-server مؤتمر نزع السلاح / usr/ports/databases/mysql50-server
make install clean جعل تركيب نظيفة
mysql_install_db --user=mysql mysql_install_db -- ماي. س. ك = المستخدم
chown -R mysql /var/db/mysql/ chown - آر ماي. س. ك / فار / ديسيبل / ماي. س. ك /
chgrp -R mysql /var/db/mysql/ chgrp أر ماي. س. ك / فار / ديسيبل / ماي. س. ك /
/usr/local/bin/mysqld_safe -user=mysql & / usr / المحلية / بن / mysqld_safe مستخدم ماي. س. ك = &Note: If you encounter Command not found error, use command rehash to update OS path environment variables. ملاحظة : إذا كنت تواجه القيادة لم يتم العثور على خطأ ، أن أعيد استخدام القيادة لتحديث نظام التشغيل مسار متغيرات البيئة.
- 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 / usr / المحلية / الخ / rc.d التي قد تبدأ القدرة على خدمة ماي. س. ك. To enable MySQL server to start automatically after every FreeBSD server reboot, enter the following command in CLI: لتمكين ماي. س. ك الخادم لبدء تلقائيا بعد كل إعادة التشغيل فري بي الخادم ، اكتب الأمر التالي في المبادرة القطرية :
echo ‘mysql_enable=”YES”‘ >> /etc/ rc.conf صدى 'mysql_enable =" نعم "'>> / الخ / rc.conf
- By default, MySQL default super user account - root - has no password (blank password). بشكل افتراضي ، ماي. س. ك تقصير السوبر حساب المستخدم -- الجذر -- لا كلمة السر (كلمة مرور فارغة). 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 - ش الجذر كلمة السر 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 (اعتمادا على الاستخدام والاستفادة من خدمة ماي. س. ك) لي . cnf ل/ فار / ديسيبل / ماي. س. ك التي سوف تمكنك من القرص وتغيير التكوين من خدمة محددة ماي. س. ك خادم الخيارات بتحرير الملف.
- MySQL 5.0 installation done. ماي. س. ك 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 بلادي الرقمي الحياة المنتديات .
Related Articles المواد ذات الصلة
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 5
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 2 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 2
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 1 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 1
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD تركيب والتشكيل خادم DHCP (DHCPd) عن فري
- Reset the Root Password of MySQL Server إعادة تعيين كلمة المرور من الجذر ماي. س. ك الخادم
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 تثبيت phpBB 2 في ويندوز إكس بي يعمل على اباتشي 2 ، PHP 5 وماي. س. ك 4
- Change and Reset MySQL root Password التغيير وإعادة ضبط كلمة السر ماي. س. ك الجذر
- FreeBSD Apache HTTP Accept Filter Error فري اباتشي بروتوكول انتقال النص المتشعب قبول مرشح خطأ
- Checking Free Disk Space on FreeBSD Server فحص الحرة على مساحة القرص فري بي الخادم

































May 21st, 2006 13:12 مايو 21st ، 2006 13:12
mysql_enable = mysql_enable =
May 21st, 2006 14:07 مايو 21st ، 2006 14:07
Thanks for pointing out, will update. شكرا لافتا ، وسوف التحديث.
June 6th, 2006 11:08 يونيو 6th ، 2006 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. أنا مع stucked ماي. س. ك جزء من خطتكم للhowto ، وبعد mysqladmin إصدار # ش بين الجذر كلمة السر newpassword ، أصدرت # ماي. س. ك بين الجذر ش ع - newpassword ، أنا دائما الحصول على وصول ونفى الخطأ. what did i miss? ماذا فعل ط ملكة جمال؟
thanks شكرا
June 6th, 2006 11:49 يونيو 6th ، 2006 11:49
jan, may be you have set the password for root. يان ، قد يكون لديك كلمة السر للمجموعة الجذر. Try to access mysql with -u userid and -p password option. لمحاولة الوصول مع ماي. س. ك ش بين اسم المستخدم وكلمة السر الخيار بين ع. Or you can follow instruction أو يمكنك اتباع التعليمات here هنا on how to change and reset your root password. على كيفية تغيير وإعادة تعيين كلمة المرور الخاصة بك الجذر.
June 6th, 2006 14:32 يونيو 6th ، 2006 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. حاولت جميع الخيارات المذكورة ولكن ايا منها لا يعمل ، حتى فعلت جديدة تثبيت مرة أخرى ، قبل إنشاء كلمة المرور للمستخدم الجذر ماي. س. ك ، ط مسجله في الجذر وانها عملت غرامة ، وقد تمكنت من الحصول على قذيفة ولكن ماي. س. ك عندما ط مسألة قيادة mysqladmin لإنشاء الجذر لكلمة المرور ، وحصلت على خطأ ، حاولت لتسجيل الدخول كما في الجذر وwtf سأعود مع المشكلة نفسها. do u think i would be better off if i install phpmyadmin and change the root password from there? ش لا اعتقد انني سوف يكون أفضل حالا لو كنت تركيب phpmyadmin والجذر تغيير كلمة المرور من هناك؟
June 6th, 2006 16:56 يونيو 6th ، 2006 16:56
Did you flush privileges after changing the password? هل مطاردة الامتيازات بعد تغيير كلمة السر؟ The problem may be due to hashing of MySQL password. المشكلة قد تكون بسبب الثرم من كلمة السر ماي. س. ك. May be you can try the following commands after resetting your root password if it cannot works: ويمكن يمكنك محاولة التالية الأوامر بعد إعادة مكان الجذر كلمة السر الخاصة بك إذا كان لا يمكن أن يعمل :
mysql -u root mysql ماي. س. ك ش بين الجذر ماي. س. ك
> UPDATE user SET password=password(’secret’) WHERE user=’root’; > تحديث مجموعة المستخدم كلمة المرور = كلمة السر ( 'سرية') حيث المستخدم = 'الجذر' ؛
> 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 يونيو 7th ، 2006 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 اعطاني نفس النتيجة ، وذلك ما فعلته هو تغيير بعض الإعدادات في config.inc.php من phpmyadmin ، تغيير auth_type = = الكعكة والسمكة المنتفخة mypassphrase كل شيء وكانت غرامة.
August 18th, 2006 00:57 أغسطس 18th ، 2006 00:57
The problem is that mysql (version 5.x) is not starting with mysql_enable=”YES” in /etc/rc.conf. والمشكلة هي أن ماي. س. ك (النسخة 5.x) ليس بدءا mysql_enable = "نعم" فى / الخ / rc.conf.
Im using FreeBSD v6.1.x. فري بي إم باستخدام v6.1.x. I do not have the space problem between enable and the “=”. ليس لدي مشكلة بين الفضاء وتمكن "=". The message I receive on bootup is “YES: notfound”. الرسالة أتلقى على bootup هي "نعم : notfound".
Any suggestions welcome. نرحب بأي اقتراحات.
August 19th, 2006 10:45 أغسطس 19th ، 2006 10:45
Ive followed this guide but when i run “mysql-server.sh start” it returns starting mysql and does nothing else. Ive يتبع هذا الدليل ولكن عندما ط البعيد "ماي. س. ك - server.sh بدء" تعود بداية ماي. س. ك ولا يفعل شيئا آخر. i ran “mysql-server.sh status” and it returned “mysql is not running” جريت "ماي. س. ك server.sh بين المركز" وعادت "ماي. س. ك هي لا تعمل"
mysql_enable=”YES” is in rc.conf but is not starting. mysql_enable = "نعم" هو في rc.conf ولكن ليس ابتداء. any help? أي مساعدة؟
August 19th, 2006 11:25 أغسطس 19th ، 2006 11:25
Check if you can run mysqladmin or other mysql tools. معرفة ما إذا كان يمكنك تشغيل 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 أغسطس 19th ، 2006 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)’ خطأ : 'لا يمكن ربط لماي. س. ك الخادم المحلي من خلال مقبس' / 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 سبتمبر 12th ، 2006 21:43
just delete مجرد حذف
January 27th, 2007 02:06 كانون الثاني / يناير 27th ، 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 والآن مع المبدأ التوجيهي الخاص بك تعليمات لقد تركيب ماي. س. ك ، php5 وapache2.2.But لا أعرف كيفية تكوين موقع على شبكة الإنترنت حتى أستطيع أن الاختبار إذا works.Please مساعدتي مع وصلة الذي يمكن أن يوفر خطوة خطوة instuctions أو تشير لي بعض الكتاب الأساسية جيدة.
Thanks. شكرا.
March 5th, 2007 21:24 مارس 5th ، 2007 21: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" ، واحرص على أن لمؤتمر نزع السلاح / usr / المحلية / بن / وبعد ذلك بالفرار "mysql_install_db".
Cheers. ابتهاج.
March 5th, 2007 21:25 مارس 5th ، 2007 21:25
Oh; and thanks for the great article! أوه ؛ والشكر الكبير للمادة!
November 12th, 2007 13:32 تشرين الثاني / نوفمبر 12th ، 2007 13:32
i ecountered the not found error while installing mysql, what should i do? ط ecountered فإن لم يتم العثور على خطأ حين تركيب ماي. س. ك ، ماذا علي أن أفعل؟ and what is the command rehash actually is? وما هو في الواقع هو اعادة لقيادة؟ thank you so much. شكرا جزيلا.
November 12th, 2007 16:33 تشرين الثاني / نوفمبر 12th ، 2007 16:33
rehash is a command to ‘refresh’ the system. أعاد التنظيم هو لقيادة 'تحديث' النظام. Did it work after rehash. وهل بعد أن أعيد العمل.
January 11th, 2008 10:32 كانون الثاني / يناير 11th ، 2008 10:32
great tutorial! تعليمي كبير! thanks! شكرا!
January 23rd, 2008 00:43 كانون الثاني / يناير 23rd ، 2008 00:43
Where can I find these files on a MySql 5.1 install on FreeBSD 6.2? أين يمكنني أن أجد هذه الملفات على ماي. س. ك 5.1 تثبيت على فري بي 6.2؟
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 مارس 23rd ، 2008 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 / المحلية / حصة / ماي. س. ك /
August 2nd, 2008 07:21 أغسطس 2nd ، 2008 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. على فري بي 7.0 فإنك لا تحتاج إلى يدويا تثبيت قواعد البيانات وأذونات مجموعة ، على أن يتم البدء في البرنامج النصي أول مرة ومن البعيد.
Just make sure you have مجرد التأكد من انك
mysql_enable=”YES” mysql_enable = "نعم"
in /etc/rc.conf before you run mysql-server. في / الخ / rc.conf قبل قمت بتشغيل خادم ماي. س. ك.
You could hence rewrite the install instructions to this: هل يمكن بالتالي إعادة كتابة تعليمات لتثبيت هذا :
cd /usr/ports/databases/mysql50-server مؤتمر نزع السلاح / usr/ports/databases/mysql50-server
make install clean جعل تركيب نظيفة
echo ‘mysql_enable=”YES”‘ >> /etc/rc.conf صدى 'mysql_enable =" نعم "'>> / الخ / rc.conf
/usr/local/etc/rc.d/mysql-server start / usr / المحلية / الخ / rc.d / ماي. س. ك بداية - الخادم
August 21st, 2008 13:06 أغسطس 21st ، 2008 13:06
Hey there. يا هناك. I was having trouble with the “mysql_install_db: command not found” when installing FreeBSD 7. كنت تواجه مشكلة مع "mysql_install_db : القيادة لم يتم العثور على" عند تركيب فري بي 7. I ran the rehash command and then entered mysql_install_db again and it worked fine. أود أن أعيد تدير القيادة وبعد ذلك دخلت mysql_install_db مرة أخرى وأنها عملت غرامة.