How to install and setup Apache, MySQL and PHP in Windows كيفية تثبيت واعداد اباتشي ، والخلية بي. اتش. بى في ويندوز

by Ross McKillop on August 25, 2008 mckillop روس من قبل 25 آب / أغسطس ، 2008

البريد الالكتروني& تم تصميم الموقع ديفنوافذ

This tutorial will walk you every single step of the way through installing and setting up هذا البرنامج التعليمي وسوف المشي لكم كل واحد خطوة على الطريق من خلال انشاء وتركيب WAMP نوع من البط (Windows, Apache, MySQL & PHP). (ويندوز ، اباتشي ، الخلية & بي. اتش. بى). With WAMP installed, you can run a web server (and things like WordPress, MediaWiki, and مع تركيب نوع من البط ، يمكنك تشغيل خادم الويب) واشياء مثل الكلمات ميدياويكي ، و Jinzora ) on your Windows PC. (ويندوز على الكمبيوتر الخاص بك.

Installing WAMP تركيب نوع من البط
Configure WAMP & MySQL & تكوين الخلية نوع من البط
Install and setup Fake Sendmail اعداد وتركيب المزيف sendmail


Installing WAMP تركيب نوع من البط

  1. To get started, head over to the للبدء ، الى رئيس WAMP download page نوع من البط تحميل الصفحه and save the .exe to your desktop. وانقاذ. إكس إلى سطح المكتب. Once the download has completed, run the installation file. مرة واحدة اكملت التحميل ، ملف تشغيل التثبيت. The first message you’ll see is a warning - if you have an older version of WAMP (1.x) installed, make sure to uninstall it first. الرسالة الاولى سترى هو تحذير -- اذا كان لديك إصدار قديم من نوع من البط (1.x) المركبه ، للتأكد من انها الاولى لالغاء التثبيت. Otherwise click Yes to continue. على خلاف ذلك انقر فوق نعم للمتابعة.

  2. click to enlarge اضغط هنا لتكبير الصورة

  3. Click Next on the initial setup screen. انقر فوق التالي على الأعداد الأولية الشاشه.

  4. click to enlarge اضغط هنا لتكبير الصورة

  5. Review the License Agreement , select I accept the agreement and then click the Next button. اعادة النظر في اتفاقيه الترخيص ، اختر اوافق على الاتفاق وبعد ذلك انقر على زر التالي.

  6. click to enlarge اضغط هنا لتكبير الصورة

  7. It’sa good idea to leave the default installation directory alone (C:\wamp\) - but if you want to change it, now’s the time. It'sa فكرة جيدة لمغادرة التقصير تركيب دليل وحدها (ج : \ نوع من البط \) -- ولكن اذا كنت تريد تغيير ، حان الوقت. Click Next to continue. انقر فوق التالي للمتابعة.

  8. click to enlarge اضغط هنا لتكبير الصورة

  9. Decide if you want to have WAMP Quick Launch and/or Desktop icons, and click Next . ان تقرر اذا كنت ترغب في الحصول على نوع من البط سريعه الاطلاق و / او ايقونات سطح المكتب ، وانقر فوق التالي.

  10. click to enlarge اضغط هنا لتكبير الصورة

  11. Finally, click Install . واخيرا ، انقر فوق تثبيت.

  12. click to enlarge اضغط هنا لتكبير الصورة

  13. The installation doesn’t take too long. تركيب لا يأخذ وقتا طويلا.

  14. click to enlarge اضغط هنا لتكبير الصورة

  15. Once it has completed, the setup phrase will begin. وقد انجزت مرة واحدة ، فإن هذه العبارة تبدأ الاعداد. If you have Firefox set as your default browser, WAMP will ask you if that’s the browser you want to use. اذا كان لديك ما مجموعه فايرفوكس المتصفح الافتراضي لديك ، ونوع من البط وسوف أطلب منكم اذا كان هذا المتصفح الذي تريد استخدامه. Click Yes . انقر فوق نعم.

  16. click to enlarge اضغط هنا لتكبير الصورة

  17. At this point, if you have a software Firewall installed, it will probably pop up and warn you that Apache wants to accept incoming connections. وعند هذه النقطه ، اذا كان لديك جدار ناري تركيب البرمجيات ، ومن المرجح شاشة عرض وتحذير لكم ان اباتشي يريد ان يقبل اي صلات. Depending on your specific Firewall the “button” to click may be different, but it will be something similar to Unblock . حسب رغبتك محددة جدار حمايه "زر" انقر لقد تكون مختلفة ، الا انه سيكون شيئا مشابها لتحريك. Do not click “Keep Blocking”. لا انقر على "ابقاء مانعه".

  18. click to enlarge اضغط هنا لتكبير الصورة

  19. Leave the SMTP: server set as localhost (more on this later) but do change the email address to yours. مغادرة بروتوكول نقل البريد الألكتروني : تعيين خادم كما localhost (مزيد من التفاصيل حول هذا لاحقا) ولكن هل تغيير عنوان البريد الالكتروني للك. Click Next . انقر فوق التالي.

  20. click to enlarge اضغط هنا لتكبير الصورة

  21. That’s it - you’re done! هذا هو -- انت القيام به! Make sure that there’sa check in the Launch WampServer 2 now box, and click Finish . التأكد من ان هنالك تحقق في إطلاق wampserver الان 2 مربع ، وانقر فوق إنهاء.

  22. click to enlarge اضغط هنا لتكبير الصورة


Configure WAMP & MySQL & تكوين الخلية نوع من البط

  1. In your System Tray you should now see a “WAMP” icon. في علبة النظام الخاص بك الآن يجب ان نرى "نوع من البط" ايقونه. Click it, and select Put Online ( Note: if it says Put Offline ignore this step and skip to the next one). انقر عليه ، واختيار وضع على شبكة الانترنت (ملاحظه : اذا كان وضع غير متصل يقول ان تتجاهل هذه الخطوة والقفز الى المرحلة التالية واحدة).
  2. Open your browser (if it isn’t already) and enter the URL فتح المتصفح الخاص بك (ان لم يكن كذلك بالفعل) وأدخل عنوان الموقع http://localhost .
  3. The WAMP configuration page will load. فان تشكيل نوع من البط تحميل الصفحه. From here you can access the tools phpMyAdmin, sqlitemanager etc. من هنا يمكنك الوصول الى الادوات phpmyadmin ، sqlitemanager الخ.

  4. click to enlarge اضغط هنا لتكبير الصورة

  5. Now you’ll want to set a MySQL password, because by default, WAMP doesn’t set one. الآن انت تريد ان تحدد الخلية كلمة السر ، بسبب تقصير من جانب ، ونوع من البط لا مجموعة واحدة. Select phpMyAdmin from the WAMP configuration page. اختر phpmyadmin من تشكيل نوع من البط الصفحه. At the bottom of the phpMyAdmin screen you’ll see a message about MySQL running without a root password. في الجزء السفلي من الشاشه phpmyadmin وسترى رسالة عن تشغيل الخلية بدون جذور كلمة السر.
  6. To correct this, select the Privileges link. لتصحيح ذلك اختر وصلة امتيازات. In the User overview section, place a check in the box next to Root - Localhost (see image below) and then click the Edit Privileges button. في المقطع المستخدم ، مكان علامة في المربع المقابل لالجذر -- localhost (انظر الصورة ادناه) ثم انقر على زر تحرير الامتيازات.


    click to enlarge اضغط هنا لتكبير الصورة

  7. Scroll down to the Change password section, and enter your password in both boxes. انزل الى قسم تغيير كلمة السر ، وأدخل كلمة المرور في كل من الصناديق. Click Go to save the change. انقر على انتقال لانقاذ التغيير.

  8. click to enlarge اضغط هنا لتكبير الصورة

  9. Make sure you get a message saying The password for 'root'@'localhost' was changed successfully . تأكد انك تحصل على رسالة تقول كلمة السر ل'الجذر' @ 'localhost' تم تغيير بنجاح.
  10. Minimize your browser window, and open up Windows Explorer (or whatever file manager you use in Windows). التقليل الى أدنى حد من نافذة المتصفح ، وفتح مستكشف ويندوز (أو مهما كنت تستخدم مدير الملفات في ويندوز). Navigate to the C:\wamp\apps\phpmyadminx.xx\ folder. انتقل الى ج : \ نوع من البط \ تطبيقات \ phpmyadminx.xx \ مجلد. Inside that folder, open up config.inc.php - ideally in an HTML or PHP editor, but Notepad will do if you don’t have an html/php/code editor. داخل هذا المجلد ، وتفتح config.inc.php -- المثاليه في لغة تأشير النص الفائق بي. اتش. بى او محرر ، ولكن محرر ستفعل اذا لم يكن لديك لغة تأشير النص الفائق / بي. اتش. بى / محرر المدونه.

  11. click to enlarge اضغط هنا لتكبير الصورة

  12. Search for the line $cfg['blowfish_secret'] = ''; - if you’re using notepad it might be easier to just search for the word blowfish البحث عن خط $ cfg [ 'blowfish_secret'] = ''؛ -- اذا كنت تستخدم محرر قد يكون من الاسهل لمجرد البحث عن كلمة السمكه المنتفخه
  13. Change the line $cfg['blowfish_secret'] = ''; to $cfg['blowfish_secret'] = 'mypassphrase'; - where mypassphrase is your own password - not the same one you specified for root in MySQL. تغيير خط $ cfg [ 'blowfish_secret'] = ''؛ دولار cfg [' blowfish_secret '] =' mypassphrase '؛ -- حيث mypassphrase هو كلمة السر الخاصة بك -- ليست واحدة واحدة لأنك قد حددت الجذر في الخلية.

    Note: as you can see from the screenshots above and below, this is much easier to work with in an HTML/PHP editor than it is in Notepad. ملاحظه : كما ترون من لقطات الشاشه اعلاه وادناه ، وهذا هو اسهل بكثير للعمل مع لغة تأشير النص الفائق فى / بي. اتش. بى محرر مما هو عليه في المفكره.


  14. click to enlarge اضغط هنا لتكبير الصورة

  15. Now search for the phrase ['auth_type'] = 'config'; (again, if you’re using Notepad you might want to just search for auth_type ). ان البحث عن عبارة [ 'auth_type'] = 'اعداد' ؛ (مرة اخرى ، اذا كنت تستخدم محرر قد ترغب في مجرد البحث عن auth_type).
  16. Change config to cookie . لتغيير اعداد الكعكه.
  17. Almost done. تقريبا القيام به. Now search for $cfg['Servers'][$i]['password'] = ''; Replace the = ''; with = 'your-mysql-password'; - where your-mysql-password is the MySQL password you specified back in step #6 of this section. الآن للبحث عن دولار cfg [ 'الخدمة'] [$ الاول] [ 'كلمة السر'] = ''؛ يستعاض ='' ؛ مع = 'الخاص بك - الخلية - كلمة السر' ؛ -- حيث الخاصة بك - كلمة السر - الخلية هي الخلية كلمة السر العودة الذي قمت بتحديده في الخطوة رقم 6 من هذا الباب.

  18. click to enlarge اضغط هنا لتكبير الصورة

  19. Save the changes you’ve made and exit out of your editor. احفظ التغييرات التي قمت بها والخروج بها من تحرير الخاص بك. Click on the WAMP icon in your System Tray and select Restart All Services . انقر على ايقونه نوع من البط في علبة النظام الخاص بك واختر اعادة تشغيل جميع الخدمات.
  20. Bring up your browser again, and refresh طرح برنامج المتصفح الخاص بك مرة اخرى ، وتجديد http://localhost . Select phpmyadmin again. اختر phpmyadmin مرة اخرى.
  21. This time you’ll be prompted to login. هذه المرة سيطلب منك تسجيل الدخول. Use root as the Username and enter the password you specified in step #6 as the password. Ignore the error about mcrytp not being loaded - we’ll fix that in a minute. استخدام الجذر كما ادخل اسم المستخدم وكلمة السر التي حددتها في الخطوة (6) كلمة السر. تتجاهل عن خطأ mcrytp لا يجري تحميلها -- سنقوم ان تحدد في دقيقة واحدة.
  22. Return to the Privileges section, and this time place a check next to the user root with the host 127.0.0.1 (see screenshot below) and click the Edit Privileges button. العودة الى امتيازات الباب ، وهذه المرة مكان شيك المقبل الى المستخدم الجذر مع 127.0.0.1 المضيف (انظر الصورة ادناه) وانقر على زر تحرير الامتيازات.

  23. click to enlarge اضغط هنا لتكبير الصورة

  24. Set the password to the same one you used for root previously (step #6) and click Go . تحديد كلمة السر لنفس واحدة كنت قد استعملت سابقا لالجذر (الخطوة رقم 6) وانقر فوق انتقال. Confirm the password was updated. تأكيد كلمة السر تم تحديث.
  25. Now select the user root in the production.mysql.com host section, and once again click the Edit Privileges button. الآن اختر المستخدم الاصل في الفرع production.mysql.com المضيفه ، ومرة اخرى انقر على زر تحرير الامتيازات.

  26. click to enlarge اضغط هنا لتكبير الصورة

  27. Again set the password to the same one you’ve previously used for root. ومرة اخرى لوضع كلمة السر نفسها التي كنت تستخدم فى السابق لحساب الجذر.
  28. And make sure it updates successfully. وتأكد ويستكمل بنجاح.

  29. click to enlarge اضغط هنا لتكبير الصورة

  30. Click the WAMP icon in your System Tray, choose PHP from the menu, then PHP extensions , scroll down to php_mcrypt and select it. انقر على ايقونه نوع من البط في علبة النظام الخاص بك ، بي. اتش. بى ان تختار من القائمة ، ثم بي. اتش. بى التمديدات ، انزل الى php_mcrypt واختياره.
  31. Refresh phpMyAdmin in your browser, and this time you’ll be prompted to login, but without the mcrypt error. تحديث phpmyadmin في المتصفح ، وهذه المرة سيطلب منك تسجيل الدخول ، ولكن من دون mcrypt خطأ.

  32. click to enlarge اضغط هنا لتكبير الصورة

  33. You’ve now set a password for MySQL, making it considerably more secure. لقد قمت الآن وضع كلمة سر للالخلية ، مما يجعلها أكثر أمنا.

Install and setup Fake Sendmail اعداد وتركيب المزيف sendmail

  1. If you’re running Windows XP, 2000 or NT and have an outgoing (SMTP) mail server already installed on your PC, and can be accessed by localhost, you can skip all the steps in this section - your’e done! اذا كنت تشغل ويندوز اكس بي أو 2000 أو NT ويكون لها المنتهيه ولايته (بروتوكول نقل البريد الالكتروني) خادم البريد تركيبها بالفعل على حاسبك الشخصي ، ويمكن الوصول اليه عن طريق localhost ، يمكنك تخطي جميع الخطوات في هذا القسم -- your'e القيام به! If you’re using Vista (or don’t have a mail server installed) - keep reading. اذا كنت تستخدم فيستا (أو لا يكون لها تركيب خدمة البريد) -- الابقاء على القراءة.
  2. Because a number of services you may use require a working mail server, we’ll set up Fake Sendmail and use your ISPs outgoing mail server. لان عددا من الخدمات يمكنك استخدام تحتاج الى عمل خادم البريد ، وسنقوم انشاء المزيف sendmail مقدمي خدمات الانترنت الخاصة بك واستخدام خدمة البريد المنتهيه ولايته. An example of a service that requires working mail is WordPress - if you forget your password and want to reset it, WordPress will email it to you. مثال على خدمة البريد الالكتروني التي تتطلب العمل هو WordPress -- اذا نسيت كلمة السر وتريد اعادة ضبطها ، WordPress انها سوف البريد الالكتروني لك. Without Fake Sendmail (or a local SMTP server) every time a service tries to send an email, it will fail. دون المزيف sendmail (محلية او خادم بروتوكول نقل البريد الإلكتروني) في كل مرة تحاول أن خدمة إرسال بريد الكتروني ، وسوف تفشل.
  3. Head over to رئيس لأكثر من http://glob.com.au/sendmail/ and download sendmail.zip . وsendmail.zip التحميل. If your ISP requires that you use SSL, make sure to download sendmail-SSL.zip as well. اذا كان النظام المتكامل يتطلب ان كنت تستخدم SSL ، تأكد لتحميل sendmail - ssl.zip ايضا. Create the folder(s) C:\usr\lib\ and extract sendmail.zip (and sendmail-SSL.zip if you need it) into that folder. انشاء مجلد (ق) ج : \ usr \ مكتبه \ وانتزاع sendmail.zip (sendmail - ssl.zip واذا كنت في حاجة إليها) في هذا المجلد.

  4. click to enlarge اضغط هنا لتكبير الصورة

  5. Open up sendmail.ini in Notepad. فتح sendmail.ini في المفكره. Scroll down to the smtp_server= section and change it to smtp_server=your.smtp.server , where your.smtp.server is your ISPs outgoing mail (SMTP) server. انزل الى smtp_server = الباب وتغييره الى smtp_server = your.smtp.server ، حيث your.smtp.server مقدمي خدمات الانترنت الخاص بك هو البريد الصادر (بروتوكول نقل البريد الالكتروني (الخادم. If you’re unsure of your outgoing mail server, you can اذا كنت غير متأكد من خادم البريد الصادر الخاص بك ، يمكنك ان try this list of ISP mail servers تحاول هذه القائمة من مقدمي خدمات الانترنت لخدمة البريد الالكتروني - if yours isn’t listed there, check w/ your ISP. -- اذا كان لك لا ترد هناك ، والتحقق من وزن / مقدمي خدمات الانترنت الخاصة بك. In the smtp_port= section, make sure it’s set to 25 - assuming your ISP uses port 25 for SMTP (not all do - though mine does). في smtp_port = الباب ، تأكد من انها مجموعة الى 25 -- على افتراض ان مقدمي خدمات الانترنت الخاص بك يستخدم المنفذ 25 للبروتوكول نقل البريد الالكتروني (لا تفعل جميع -- على الرغم من الالغام لا).

  6. click to enlarge اضغط هنا لتكبير الصورة

  7. In the default_domain= section, add your ISPs domain. في default_domain = الباب ، اضف النطاق مقدمي خدمات الانترنت. For example, if you use Comcast as your ISP, add comcast.net . فعلى سبيل المثال ، اذا كنت تستخدم comcast لكم مقدمي خدمات الانترنت ، اضافة comcast.net. Because I have service from Telus, my default domain is telus.net (as seen in the screenshot below). لأني أريد ان telus من الخدمة ، هو المجال الافتراضي telus.net (كما يتضح في الصورة ادناه).

  8. click to enlarge اضغط هنا لتكبير الصورة

  9. If your SMTP server requires authentication, add your username to the end of the auth_username= field, and your password to the auth_password= field. اذا كان الخادم يتطلب بروتوكول نقل البريد الالكتروني التوثيق ، واضافة اسم المستخدم الى نهاية للauth_username = الميدانيه ، وكلمة السر الخاصة بك الى auth_password = الميدان.

    Note: you can use the Gmail SMTP server (see ملاحظه : يمكنك استخدام بروتوكول نقل البريد الالكتروني خدمة بريد جوجل (انظر this FAQ هذه الاسءله المتكررة for details) - assuming you have a Gmail account. للحصول على التفاصيل) -- على افتراض ان لديك حساب بريد جوجل. However, during testing I noticed a considerable delay in receiving mail - up to 7 hours. ومع ذلك ، ففي اثناء الاختبار الاول لاحظت وجود تأخير كبير في الحصول على البريد الالكتروني -- يصل الى 7 ساعات. Using my ISPs mail server settings there was no delay at all. بلدي مقدمي خدمات الانترنت باستخدام خدمة البريد اعدادات كان هناك اي تأخير على الاطلاق.


  10. click to enlarge اضغط هنا لتكبير الصورة

  11. Save your changes to the file (sendmail.ini) and exit Notepad. احفظ التغييرات الى ملف (sendmail.ini) والخروج محرر. Now click the WAMP icon in your System Tray, select PHP and then click php.ini . الآن انقر على ايقونه نوع من البط في علبة النظام الخاص بك ، واختر بي. اتش. بى ثم انقر فوق php.ini.
  12. Scroll down to the [ mail function ] section. انزل الى [البريد الالكتروني الوظيفة [القسم. Comment out each of the For Win 32 lines by adding a semicolon ( ; ) in front of each one (see screenshot below). Uncomment the line sendmail_path = by removing the semicolon ( ; ) in front of it. التعليق بها كل واحد من 32 للفوز عن طريق اضافة خطوط الفاصله المنقوطه (؛) أمام كل واحد منها (أنظر الصورة ادناه). غير تعليق الخط sendmail_path = بازاله الفاصله المنقوطه (؛) امامها. Add "/usr/lib/sendmail.exe -t" to the end of the line, so that it reads: sendmail_path = "/usr/lib/sendmail.exe -t" (again, see the screenshot below). تضاف عبارة "/ usr / ليب / sendmail.exe - ر" الى نهاية الخط ، بحيث يصبح نصها كما يلي : sendmail_path = "/ usr / ليب / sendmail.exe - ر" (مرة اخرى ، انظر الصورة ادناه).

  13. click to enlarge اضغط هنا لتكبير الصورة

  14. Save php.ini and exit out of Notepad (or whatever editor you used to edit php.ini). Php.ini انقاذ والخروج من محرر (محرر او ايا كانت تستخدمه لتحرير php.ini). Click on the WAMP icon in your System Tray and select Restart All Services . انقر على ايقونه نوع من البط في علبة النظام الخاص بك واختر اعادة تشغيل جميع الخدمات.
  15. Now any time one of your web services needs to send an email… ألان في أي وقت من الأوقات واحدة من خدمات الويب الخاص بك بحاجة الى ارسال رسالة على البريد الالكتروني…
  16. it will go through! وسوف تمر!
  17. That’s it - you’re done! هذا هو -- انت القيام به! You now have a fully functional Apache, MySQL and PHP system on your PC. لديك الان تعمل بكامل طاقتها وآباتشي ، والخلية بي. اتش. بى على نظام الكمبيوتر الخاص بك.
Related Posts: الوظائف ذات الصلة :
  • How to easily install Apache, MySQL and PHP in OS X كيف يمكن بسهولة تثبيت اباتشي ، والخلية بي. اتش. بى أس في العاشر
  • How to install WordPress on your Windows PC WordPress كيفية تثبيت ويندوز على الكمبيوتر الخاص بك
  • How to install and setup Jinzora (streaming media server) in OS X كيفية تثبيت واعداد jinzora (البث الحي الخادم) في العاشر السراج
  • How to install WordPress in Windows Vista كيفية تثبيت ويندوز فيستا في WordPress
  • How to open .rar, .arj, .gz, .tar and .rpm files in Windows كيف لفتح. Rar ،. ARJ ،. Gz ،. القطران و. لفة في الدقيقة الملفات في ويندوز
  • { 4 comments… read them below or (4 التعليقات… او ادناه او في قراءتها add one اضافة } )

    1 1 Abraham 08.31.08 at 8:38 am ابراهيم 08.31.08 فى الساعة 8:38

    This indeed made a great contribution for me as a novice user of the wamp server. والواقع ان هذا اسهاما كبيرا بالنسبة لي باعتباري احد من المستخدم المبتدئ خادم نوع من البط. Thank you very much شكرا جزيلا

    2 2 Nathan J. Brauer ناثان جيه. Brauer 09.02.08 at 10:17 pm 09.02.08 فى الساعة 10:17

    Thank you very much! شكرا جزيلا! Out of all the tutorials I found out there, this was by far the best AND easiest! من كل الدروس وتبين لي ان هناك ، وكان ذلك الى حد كبير ، افضل وأسهل! Kudos and Thanks! الشهره وشكرا!

    3 3 chaos 09.05.08 at 11:24 am 09.05.08 الفوضى فى الساعة 11:24

    XAMPP is much easier to be honest. Xampp من الاسهل بكثير ان نكون صادقين.

    I’d look into it. كنت تنظر فيه.

    4 4 Sanjeev Mishra Sanjeev ميشرا 09.08.08 at 6:07 am 09.08.08 فى الساعة 6:07

    Really great help dear! فعلا مساعدة كبيرة الاعزاء!

    Thanks a lot…!!!!!!!! شكرا جزيلا…!!!!!!!!

    Leave a Comment ترك التعليق

    You can use these HTML tags and attributes: <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> <deldatetime=""> <em><i><qcite=""> <strike><strong>