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 ماي. س. ك الخادم مع الموانئ جمع فري بي

  1. Login to the FreeBSD system as root, or su - root to get to super user environment. تسجيل الدخول إلى نظام فري بي الجذر ، أو سو -- الجذر فائقة للوصول الى بيئة المستخدم.
  2. 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. ملاحظة : إذا كنت تواجه القيادة لم يتم العثور على خطأ ، أن أعيد استخدام القيادة لتحديث نظام التشغيل مسار متغيرات البيئة.

  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 / 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

  4. 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 مع كلمة السر الخاصة بك المرجوة.

  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 (اعتمادا على الاستخدام والاستفادة من خدمة ماي. س. ك) لي . cnf ل/ فار / ديسيبل / ماي. س. ك التي سوف تمكنك من القرص وتغيير التكوين من خدمة محددة ماي. س. ك خادم الخيارات بتحرير الملف.
  6. 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 بلادي الرقمي الحياة المنتديات .



22 Responses to “Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 3” 22 ردود على "تثبيت ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 3"

  1. Drache
    May 21st, 2006 13:12 مايو 21st ، 2006 13:12
    1

    mysql_enable = mysql_enable =

  2. Administrator مدير
    May 21st, 2006 14:07 مايو 21st ، 2006 14:07
    2

    Thanks for pointing out, will update. شكرا لافتا ، وسوف التحديث.

  3. jan يناير
    June 6th, 2006 11:08 يونيو 6th ، 2006 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. أنا مع stucked ماي. س. ك جزء من خطتكم للhowto ، وبعد mysqladmin إصدار # ش بين الجذر كلمة السر newpassword ، أصدرت # ماي. س. ك بين الجذر ش ع - newpassword ، أنا دائما الحصول على وصول ونفى الخطأ. what did i miss? ماذا فعل ط ملكة جمال؟

    thanks شكرا

  4. Administrator مدير
    June 6th, 2006 11:49 يونيو 6th ، 2006 11:49
    4

    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. على كيفية تغيير وإعادة تعيين كلمة المرور الخاصة بك الجذر.

  5. jan يناير
    June 6th, 2006 14:32 يونيو 6th ، 2006 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. حاولت جميع الخيارات المذكورة ولكن ايا منها لا يعمل ، حتى فعلت جديدة تثبيت مرة أخرى ، قبل إنشاء كلمة المرور للمستخدم الجذر ماي. س. ك ، ط مسجله في الجذر وانها عملت غرامة ، وقد تمكنت من الحصول على قذيفة ولكن ماي. س. ك عندما ط مسألة قيادة mysqladmin لإنشاء الجذر لكلمة المرور ، وحصلت على خطأ ، حاولت لتسجيل الدخول كما في الجذر وwtf سأعود مع المشكلة نفسها. do u think i would be better off if i install phpmyadmin and change the root password from there? ش لا اعتقد انني سوف يكون أفضل حالا لو كنت تركيب phpmyadmin والجذر تغيير كلمة المرور من هناك؟

  6. Administrator مدير
    June 6th, 2006 16:56 يونيو 6th ، 2006 16:56
    6

    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. هل اسمحوا لي أن نعرف كيف يحلها.

  7. jan يناير
    June 7th, 2006 13:14 يونيو 7th ، 2006 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 اعطاني نفس النتيجة ، وذلك ما فعلته هو تغيير بعض الإعدادات في config.inc.php من phpmyadmin ، تغيير auth_type = = الكعكة والسمكة المنتفخة mypassphrase كل شيء وكانت غرامة.

  8. rich غني
    August 18th, 2006 00:57 أغسطس 18th ، 2006 00:57
    8

    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. نرحب بأي اقتراحات.

  9. Dom دوم
    August 19th, 2006 10:45 أغسطس 19th ، 2006 10:45
    9

    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? أي مساعدة؟

  10. Administrator مدير
    August 19th, 2006 11:25 أغسطس 19th ، 2006 11:25
    10

    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 هو استخدام السليم "، كما" في المادة قد تغير.

  11. Dom دوم
    August 19th, 2006 15:10 أغسطس 19th ، 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)’ خطأ : 'لا يمكن ربط لماي. س. ك الخادم المحلي من خلال مقبس' / tmp / mysql.sock '(2)'
    Check that mysqld is running and that the socket: ‘/tmp/mysql.sock’ exists! التأكد من أن يدير وmysqld أن المقبس : '/ tmp / mysql.sock' موجود!

  12. Jani Syed جاني سيد
    September 12th, 2006 21:43 سبتمبر 12th ، 2006 21:43
    12

    just delete مجرد حذف

  13. Younah
    January 27th, 2007 02:06 كانون الثاني / يناير 27th ، 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 والآن مع المبدأ التوجيهي الخاص بك تعليمات لقد تركيب ماي. س. ك ، php5 وapache2.2.But لا أعرف كيفية تكوين موقع على شبكة الإنترنت حتى أستطيع أن الاختبار إذا works.Please مساعدتي مع وصلة الذي يمكن أن يوفر خطوة خطوة instuctions أو تشير لي بعض الكتاب الأساسية جيدة.
    Thanks. شكرا.

  14. berry__
    March 5th, 2007 21:24 مارس 5th ، 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" ، واحرص على أن لمؤتمر نزع السلاح / usr / المحلية / بن / وبعد ذلك بالفرار "mysql_install_db".

    Cheers. ابتهاج.

  15. berry__
    March 5th, 2007 21:25 مارس 5th ، 2007 21:25
    15

    Oh; and thanks for the great article! أوه ؛ والشكر الكبير للمادة!

  16. bramz4ever
    November 12th, 2007 13:32 تشرين الثاني / نوفمبر 12th ، 2007 13:32
    16

    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. شكرا جزيلا.

  17. admin الادارية
    November 12th, 2007 16:33 تشرين الثاني / نوفمبر 12th ، 2007 16:33
    17

    rehash is a command to ‘refresh’ the system. أعاد التنظيم هو لقيادة 'تحديث' النظام. Did it work after rehash. وهل بعد أن أعيد العمل.

  18. nicky6
    January 11th, 2008 10:32 كانون الثاني / يناير 11th ، 2008 10:32
    18

    great tutorial! تعليمي كبير! thanks! شكرا!

  19. Matt مات
    January 23rd, 2008 00:43 كانون الثاني / يناير 23rd ، 2008 00:43
    19

    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

  20. Tyler تيلر
    March 23rd, 2008 02:39 مارس 23rd ، 2008 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 / المحلية / حصة / ماي. س. ك /

  21. DrTebi
    August 2nd, 2008 07:21 أغسطس 2nd ، 2008 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. على فري بي 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 / ماي. س. ك بداية - الخادم

  22. Leighland
    August 21st, 2008 13:06 أغسطس 21st ، 2008 13:06
    22

    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 مرة أخرى وأنها عملت غرامة.

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> يمكنك استخدام هذه العلامات : <ahref="" title=""> <abbrtitle=""> <acronymtitle=""> <b><blockquotecite=""> <cite><code><ديل datetime = ""> <em><i><qcite=""> <strike><strong>

Subscribe without commenting اكتتاب دون التعليق


Custom Search

New Articles المواد الجديدة

Incoming Search Terms for the Article ابحث الواردة للشروط المنصوص عليها في المادة

freebsd mysql فري ماي. س. ك - -- mysql freebsd ماي. س. ك فري - -- install mysql freebsd تركيب ماي. س. ك فري - -- freebsd install mysql فري تركيب ماي. س. ك - -- freebsd phpmyadmin phpmyadmin فري - -- freebsd mysql install تركيب فري بي ماي. س. ك - -- install mysql on freebsd تركيب ماي. س. ك على فري - -- freebsd mysql config فري ماي. س. ك التكوين - -- mysql_enable mysql_enable - -- install mysql 5.0 freebsd 7.0 تركيب ماي. س. ك 5.0 فري بي 7.0 - -- mysql freebsd install ماي. س. ك تركيب فري بي - -- MySQL in freeBSD ماي. س. ك في فري - -- freebsd mysql 5 فري ماي. س. ك 5 - -- mysql config freebsd ماي. س. ك التكوين فري - -- mysql freebsd ماي. س. ك فري - -- freebsd apache howto اباتشي فري بي howto - -- install mysql 5 freebsd تركيب 5 ماي. س. ك فري - -- installing mysql on freebsd تركيب ماي. س. ك على فري - -- rc.conf mysql rc.conf ماي. س. ك - -- apache mysql freebsd اباتشي ماي. س. ك فري - -- freebsd rc.conf mysql فري rc.conf ماي. س. ك - -- freebsd apache php howto اباتشي فري بي php howto - -- FreeBSD mysql rc.conf فري ماي. س. ك rc.conf - -- mysql enable freebsd ماي. س. ك تمكين فري - -- mysql install freebsd ماي. س. ك تركيب فري بي - -- freebsd mysql 5.0 install فري ماي. س. ك تثبيت 5.0 - -- mysql freebsd rc.conf ماي. س. ك فري rc.conf - -- PhpMyAdmin FreeBSD PhpMyAdmin فري - -- freebsd mysql-server فري ماي. س. ك بين الخادم - -- freebsd mysql server ماي. س. ك خادم فري بي - -- freebsd mysql start فري ماي. س. ك بداية - -- freebsd mysql howto ماي. س. ك howto فري - -- how to install mysql on freebsd كيفية تركيب ماي. س. ك على فري - -- mysql server freebsd ماي. س. ك خادم فري بي - -- freebsd install mysql 5 فري تركيب ماي. س. ك 5 - -- freebsd mysql innodb install فري ماي. س. ك innodb تركيب - -- freebsd start mysql 5 فري بداية ماي. س. ك 5 - -- freebsd mysql enable ماي. س. ك تمكين فري - -- freebsd apache mysql php howto اباتشي فري بي ماي. س. ك php howto - -- how to install mysql in freebsd كيفية تركيب ماي. س. ك في فري - -- how to install mysql in freebsd 7 كيفية تركيب ماي. س. ك في فري بي 7 - -- install apache freebsd تركيب اباتشي فري بي - -- freebsd mysql5 فري mysql5 - -- freebsd restart mysql فري استئناف ماي. س. ك - -- howto freebsd mysql howto فري ماي. س. ك - -- installing mysql 6.0 تركيب ماي. س. ك 6.0 - -- install webserver freebsd تركيب الشبكة العالمية ، فري - -- 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 - -- mysql 5 FreeBSD 5 ماي. س. ك فري - -- how to install mysql freebsd كيفية تركيب ماي. س. ك فري - --