How To Configure PHP 5 With Apache 2 On Windows in 2 Minutes كيفية تكوين بي. اتش. بى 5 مع اباتشي على ويندوز 2 في 2 دقيقة
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 ثم البحث عن
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. انها لن تفعل العمل القذر نيابة عنك.
Filed under المقدم بمقتضى Headline News أهم الانباء , ، How To كيف , ، Open Source Software برامج المصدر المفتوح , ، PHP بي. اتش. بى , ، Tech Note ملاحظه تقنيه , ، Web شبكة , ، Web Hosting استضافة المواقع , ، Web Services خدمات الشبكه العالمية , ، Windows نوافذ | |
| |
RSS 2.0 ار اس اس 2،0 | |
Trackback this Article | هذه المادة |
Email this Article ارسل هذه المادة
You may also like to read ويمكنك ايضا ان تقرأ |




September 22nd, 2007 at 4:16 am ايلول / سبتمبر 22nd ، 2007 في الساعة 4:16
Thank U very much.. شكرا جزيلا ش..
October 14th, 2007 at 11:28 pm تشرين الاول / اكتوبر 14th ، 2007 في الساعة 11:28
hi اهلا
does this config works on vista? هل هذا يعمل على اعداد فيستا؟
i download the latest php, but font contian the php5apache2.dll but i have the php5ts, can any1 tell me what to do..please الاول تحميل احدث بي. اتش. بى ، ولكن الخط contian فان php5apache2.dll ولكن لدى php5ts ، any1 يمكن أن تقول لي ماذا تفعل.. من فضلك
December 18th, 2007 at 10:50 am كانون الاول / ديسمبر 18th ، 2007 في الساعة 10:50
Awesome, thanks! رهيبه ، شكرا! this was the critical part I needed. كان هذا هو الجزء الاول الحرجه اللازمة. Even book installation procedures were off base حتى كتاب تركيب اجراءات من قاعدة
February 24th, 2008 at 9:39 pm شباط / فبراير 24th ، 2008 في الساعة 9:39
Thanks, شكرا ،
That worked well. التي عملت ايضا.
Extra step to smooth things in Vista خطوة إضافية لتسهيل الأمور في فيستا
I would add that in the htdocs folder (for those lazy folks who don\’t change the root directory to be something else), that changing the permission ability for USER makes it really simple to add/edit files واود ان اضيف ان في مجلد htdocs (لاولئك الناس من دون كسلان \ 'ر تغيير الدليل الرئيسي لتكون أشياء أخرى) ، ان تغيير قدرة على إذن المستخدم ليجعل هذا سهلا إلى إضافة / تحرير الملفات
go to htdocs directory اذهب الى دليل htdocs
right click and select \”Customize This Folder\” انقر بزر الفأرة الايمن واختر \ "تخصيص هذا المجلد \"
select \”Security\” tab. اختر \ "الأمن \" علامة التبويب.
select \”Edit\” or \”Advanced\” to change the permissions for USER اختر \ "تحرير \" او \ "متقدمة \" لتغيير الاذونات للمستخدم
May 31st, 2008 at 7:17 am ايار / مايو 31st ، 2008 في الساعة 7:17
Hi اهلا
Thanks for the info شكرا للمعلومات
Short and good. قصيرة وجيدة.
Well done أحسنت
I have follow you instructions but I get an error: لقد اتبع التعليمات ولكن كنت احصل على خطأ :
The specified module could not be found. المحدد وحده لا يمكن العثور عليه.
My OS is Vista home premium. بلدي هو نظام التشغيل فيستا الصفحه الرئيسية الاقساط.
Must say that the file: php5apache2.dll ويجب ان أقول ان الملف : php5apache2.dll
was not part of the PHP package. لم يكن جزءا من مجموعة بي. اتش. بى.
instead, I have: php5ts.dll وبدلا من ذلك ، لقد : php5ts.dll
(Here is a good link to find that missing php5apache2.dll (هنا هو العثور على وصلة جيدة ان المفقودين php5apache2.dll
http://kromann.info/download.php?strFolder=php5_1-Release_TS&strIndex=PHP5_1 http://kromann.info/download.php؟strfolder=php5_1-release_ts&strindex=php5_1
) (
This is the code lines from my httpd.conf وهذا هو قانون بلدي من خطوط httpd.conf
I have placed the lines at the end of the LoadModule list. لقد وضعت الخطوط في نهاية loadmodule من القائمة.
This line is the last one on the list: هذا الخط هو آخر واحد على لائحة :
#LoadModule vhost_alias_module modules/mod_vhost_alias.so # Loadmodule vhost_alias_module وحدات / mod_vhost_alias.so
Then right bellow I have placed the 3 lines as you instructed: ثم الحق الخوار ولقد وضعت على 3 خطوط وانتم تعليمات :
LoadModule php5_module “php/php5apache2.dll” Loadmodule php5_module "php/php5apache2.dll"
AddType application/x-httpd-php .php Addtype تطبيق / x - httpd - بي. اتش. بى. بى. اتش. بى
AddType application/x-httpd-php-source .phps Addtype تطبيق / x - httpd - المصدر - بي. اتش. بى. Phps
Please advice الرجاء المشوره
Thanks for your help شكرا على مساعدتكم
Amit C. Amit جيم