I am assuming that you have downloaded and installed Apache 2.x on your windows machine. وانا على افتراض ان لديك تحميل وتثبيت اباتشي 2.x على آله ويندوز الخاص بك. Use the latest version 2.2, if you do not have plans to run Subversion on it. استخدام احدث نسخة 2،2 ، اذا لم يكن لديك خطط لتشغيل التخريب عليها. Otherwise choose Apache 2.0.x. على خلاف ذلك اختيار اباتشي 2.0.x. Install it with the defaults. مع تثبيت التخلف عن الدفع. You may want to however changes the drive on which it is installed. قد ترغب فى السعى الا ان التغييرات التي تم تثبيته. Anyway so you have it running. على اي حال عليك ان تعمل. Then you went to php.net and have downloaded and extracted the zip file to say c:\ or d:\. ثم ذهبت الى php.net والتحميل وانتزعت الملف المضغوط يقول ج : \ او د : \. I am assuming you have then changed the name of php.ini-recommended to php.ini. على افتراض انني قمت بعد ذلك تم تغيير اسم php.ini - اوصت لphp.ini. So far all the steps are straight forward and their install guide is good enough. حتى الآن كل الخطوات الى الأمام مباشرة والدليل هو تثبيت جيدة بما فيه الكفايه. Now you are feeling happy about it and want to integrate PHP with Apache, right? أنت الآن شعور انه مسرور واريد ان تدمج مع اباتشي بي. اتش. بي ، أليس كذلك؟ That’s when the fun begins. هذا هو عندما يبدأ المرح.

To cut the long story short the instructions in PHP document doesn’t work and have obviously not been updated in a long while. قطع طويلة القصة القصيره التعليمات الواردة في وثيقة من وثائق بي. اتش. بى لا يعمل واضح في لم يتم تحديثها منذ فترة طويلة. So I will give you a 2 minute guide to glory. ذلك لن اعطي لك 2 دقيقة دليل للمجد.

Open httpd.conf (in Drive:\Program Files\Apache Group\Apache2\conf) and search for LoadModule statements. فتح httpd.conf) في محرك الأقراص : \ ملفات البرنامج \ اباتشي مجموعة \ apache2 \ م) والبحث عن البيانات loadmodule. At the end add: في نهاية يضاف ما يلي :
LoadModule php5_module "D:/php/php5apache2.dll" Loadmodule php5_module "د : / php/php5apache2.dll"

Then search for ثم البحث عن directives. التوجيهات. At the end add: في نهاية يضاف ما يلي :

 AddType application/x-httpd-php .php  AddType application/x-httpd-php-source .phps Addtype تطبيق / x - httpd - بي. اتش. بى. Addtype تطبيق بي. اتش. بى / x - httpd - المصدر - بي. اتش. بى. Phps 

Note: The last AddType is a nicety. ملاحظه : addtype آخر هو دقة. It allows you to view .phps files (php files with extension renamed) in htmlized and colorful format from your browser. انها تسمح لك الرأي. Phps ملفات (بي. اتش. بى الملفات مع تمديد اسمها) htmlized في الشكل وملون من المتصفح الخاص بك.

Now restart the server. الان اعادة تشغيل الخادم.
Did I say you are done? هل اقول انت فعلت؟ Well, you are. حسنا ، أنت. So go out and enjoy. ذلك الخروج والتمتع بها.

Note: If you are a wimp and you don’t need Subversion you may take the easy way out and install Xampp instead. ملاحظه : اذا كنت تستخدم المخنث ولست بحاجة الى التخريب ويمكنك اتخاذ الطريق السهل وتثبيت xampp بدلا من ذلك. It will do the dirty work for you. انها لن تفعل العمل القذر نيابة عنك.