Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3 تثبيت خادم الويب في ويندوز إكس بي مع Apache2 ، PHP5 وMySQL4 -- الجزء 3

Part 3 - Install PHP 5 الجزء 3 -- تثبيت PHP 5

Unzip the PHP zip package that downloaded in Unzip فإن PHP الرمز البريدي صفقة تم تحميل ما في Part 1 الجزء 1 to C:\PHP (Create a new folder named PHP at C:\ root level). لجيم : \ PHP (إنشاء مجلد جديد اسمه في PHP جيم : \ مستوى الجذر). Then shut down Apache server. ثم اغلاق الخادم اباتشي.

Open the Apache httpd.conf with a text editor and add two lines of code: فتح httpd.conf اباتشي مع محرر نصوص وإضافة خطين للقانون :

LoadModule php5_module C:/php/php5apache2.dll LoadModule php5_module جيم : / php/php5apache2.dll
AddType application/x-httpd-php .php AddType تطبيق / س - httpd - php. php

Added .php extension to show how to parse .php files . php تمديد لاظهار كيفية تحليل. php الملفات

Note also the directory in load module points to where we installed PHP. ملاحظة الدليل أيضا في تحميل نموذج وصلنا إلى نقطة تثبيت PHP. So if you install PHP at other location, change it accordingly. حتى إذا تثبيت PHP في مكان آخر ، تغير وفقا لذلك. The directory style should be / too instead of common DOS \. دليل أسلوب ينبغي أن يكون / أيضا بدلا من دوس مشتركة \.

These two lines can be added to the bottom of the httpd.conf file. هذين الخطين يمكن أن تضاف إلى أسفل من ملف httpd.conf. However, note that modules in the load list are in reverse-priority order; those that come later can override or pre-empt those listed earlier. ومع ذلك ، نلاحظ أن وحدات في تحميل قائمة هي في عكس ذات الأولوية من أجل ؛ التي تأتي في وقت لاحق يمكن أن تعلو أو إجهاض تلك المدرجة في وقت سابق. Therefore, adding php_mod at the end of the list can have unexpected results, such as disabling mod_rewrite (and other modules) for any php files that exist (mod_rewrite will run fine if the file doesn’t exist). ولذلك ، مضيفا php_mod في نهاية قائمة يمكن أن تكون لها نتائج غير متوقعة ، مثل تعطيل mod_rewrite (وغيرها من وحدات) لملفات php أي أن وجود (mod_rewrite سيستمر غرامة إذا كان الملف لا وجود له). The same error can disable mod_auth and other important modules. نفس الخطأ يمكن تعطيل mod_auth وغيرها من الوحدات الهامة. In summary, php_mod should be loaded before any modules you wish to run before your php code is executed. وخلاصة القول ، ينبغي أن يكون php_mod قبل تحميل أي وحدات كنت ترغب في العمل قبل ان php الخاص بك هو رمز أعدم. See the note in the انظر الملاحظة في Apache AddModule documentation اباتشي AddModule الوثائق for how to find the recommended ordering. كيف تجد لالموصى بها الأمر.

Next, copy/paste “php.ini-recommended” to C:/Program Files/Apache Group/Apache2 (or your Apache installation path), and rename it to php.ini. المقبل ، نسخ / لصق "php.ini - أوصت" لجيم : / ملفات البرنامج / اباتشي Group/Apache2 (أو تركيب مسار الخاص بك اباتشي) ، وإعادة تسمية لأنه php.ini. Restart the Apache server. استئناف الخادم اباتشي.

Testing php5 Installation اختبار تركيب php5

Create a file with the following contents and save it to the root web folder (C:/Server/htdocs or default C:/Program Files/Apache Group/Apache2/htdocs/) as “php5info.php”. إنشاء ملف مع المحتويات التالية وإنقاذ إلى مجلد الجذر على الإنترنت (جيم : / الخادم / htdocs أو التقصير جيم : / ملفات البرنامج / اباتشي Group/Apache2/htdocs /) "php5info.php".

<?php <؟ php
phpinfo(); phpinfo () ؛
?> ؟>

Access the following url الوصول التالية رابط http://localhost/php5_info.php . The complete PHP setting should be displayed on the browser. PHP الكامل لوضع ينبغي أن يتم عرضها على المتصفح. If there is an error or nothing been shown, there is problem with installation. فإنه إذا كان هناك أي خطأ أو أي شيء ثبت ، هناك مشكلة مع تركيب. Try the installation procedures again. حاول التثبيت مرة أخرى الإجراءات.

Enable MySQL extension تمكين ماي. س. ك تمديد

The php.ini that copied from php.ini-recommended already being set to optimum setting, so there is no special need to edit it. وقد php.ini أن نسخ من php.ini - أوصى يجري بالفعل مجموعة الأمثل لتحديد ، لذلك ليس هناك حاجة خاصة لتحريره. However, it still need to edit to enable mysql extension. بيد أنه لا تزال هناك حاجة إلى تعديل لتمكينها من توسيع نطاق ماي. س. ك.

Open php.ini in the Apache2 directory with text editor. فتح php.ini في دليل Apache2 مع محرر نصوص.

Search for the line of extension_dir = “./” . البحث عن خط extension_dir = ". /". Change it to extension_dir = “C:\php5\ext” . تغيير إلى extension_dir = "جيم : \ php5 \ الفرع الهاتفي". Also, uncomment the line of extension=php_mysql.dll . أيضا ، حرر من تمديد خط = php_mysql.dll.

Save the php.ini. انقاذ php.ini. Restart the Apache server. استئناف الخادم اباتشي. Re-try to access في محاولة لإعادة الوصول http://localhost/php5_info.php . It should working fine. وينبغي العمل غرامة. If not try to check what’s the cause of errors, which most likely due to wrong extension_dir or missing extension. وإذا لم يكن في محاولة لفحص ما هو سبب الأخطاء ، التي على الأرجح بسبب خطأ extension_dir تمديد أو المفقودين. Or you may try to copy all the needed extentions (with .dll extenstion) to Apache2 directory. أو هل يمكن أن تحاول نسخة على كل ما يلزم من extentions (مع. dll extenstion) Apache2 إلى دليل.

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 بلادي الرقمي الحياة المنتديات .



13 Responses to “Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 3” 13 ردود على "تثبيت ملقم الويب في ويندوز إكس بي مع Apache2 ، PHP5 وMySQL4 -- الجزء 3"

  1. Todd تود
    May 20th, 2006 03:42 مايو 20th ، 2006 03:42
    1

    well, I have followed your directions and everyone else’s before this, but no luck. جيد ، لقد تابعت الاتجاهات الخاصة بك والجميع آخر قبل هذا ، ولكن لم الحظ. After adding the module declaration in the httpd.conf file, when I restart apache i get - syntax error: cannot load specific module. واضاف ان وحدة بعد الإعلان في ملف httpd.conf ، عندما كنت أحصل على استئناف اباتشي -- خطأ : لا يمكن تحميل وحدة محددة. all of my paths are correct what is the problem? جميع من بلادي مسارات صحيحة ما هي المشكلة؟

  2. Administrator مدير
    May 20th, 2006 14:33 مايو 20th ، 2006 14:33
    2

    Hi Todd, the issue might be related to mod_perl (if you’re using it as ActivePerl). مرحبا تود ، مسألة قد تكون ذات صلة mod_perl (إذا كنت تستخدم أنها ActivePerl). If you install Apache/2.2, please use mod_perl that is compiled with Apache 2.2 and not Apache 2.0 for compatibility issue. إذا قمت بتثبيت Apache/2.2 ، يرجى استخدام mod_perl التي جمعت مع اباتشي اباتشي 2.2 وليس 2.0 لمسألة التوافق.

  3. greg جريج
    July 12th, 2006 19:10 يوليو 12th ، 2006 19:10
    3

    I have the server set up and i can read a php file if i start it withhtml tags but it doesnt read the php script i put in. if i dont use the html tags i get a download box when i click on the link to test the php?? لقد الخادم إنشاء ويمكنني قراءة ملف php اذا كنت بدء أنها withhtml العلامات ولكن doesn't قراءة php السيناريو الأول وضع فيه لو كنت لا أميل استخدام العلامات هتمل أحصل على مربع التحميل عندما اضغط على وصلة لاختبار فإن php؟؟ can u help me!! يمكن يو مساعدتي!!

  4. Administrator مدير
    July 12th, 2006 19:46 يوليو 12th ، 2006 19:46
    4

    Looks like your web server doesn’t parse PHP file and treat it as text file, follow the steps carefully. يبدو أن مركز خدمة الويب الخاص بك لا تحليل ملف PHP والتعامل معها على أنها نص الملف ، اتبع الخطوات بعناية.

  5. greg جريج
    July 13th, 2006 07:32 يوليو 13th ، 2006 07:32
    5

    ok i reset it and now the server cannot find php5apache2.dll? ط إعادة موافق عليه الآن والخادم لا يمكن أن تجد php5apache2.dll؟ It is in the php folder. ومن php في مجلد. I am using php5.1.4 and apache2.2.2! أنا باستخدام php5.1.4 وapache2.2.2!

  6. greg جريج
    July 13th, 2006 08:43 يوليو 13th ، 2006 08:43
    6

    I got it to work i uninstalled apache 2.2 and installed 2.0 and followed your steps again and now it is all working:) لأنها حصلت على العمل ط إلغاء تثبيت اباتشي 2.2 و 2.0 تركيب والخطوات التي اتبعت الخاص بك مرة أخرى والآن ومن كل عمل :)

    Thank you for the help! شكرا للمساعدة!

  7. Tom توم
    September 10th, 2006 20:48 سبتمبر 10th ، 2006 20:48
    7

    There seems to be a problem with Apache 2.2 and the PHP dll modules (on Windows obviously, don’t know if there are any problems on unix). ويبدو أن هناك مشكلة مع اباتشي 2.2 وحدات PHP dll (على ويندوز من الواضح ، لا نعرف ما إذا كان هناك أي مشاكل على يونيكس). I fixed it by going to الأول أنها ثابتة من خلال الذهاب إلى http://www.apachelounge.com/download/ and downloading their version of the php4apache2.dll file. وعلى تحميل نسخة من الملف php4apache2.dll. This also comes with another file which you have to put in your Apache/bin directory, and you will also need to download a MS Visual C++ Package if you don’t have the .NET framework installed. كما يأتي ذلك مع ملف آخر الذي لديك لوضع الخاص بك اباتشي / بن دليل ، وسوف تحتاج أيضا إلى تحميل مرض التصلب العصبي المتعدد المرئي سي + + باقة إذا كنت لا تملك. صافي إطار تركيبها. This is all explained in the readme file that comes with the DLL. كل هذا هو موضح في الملف التمهيدي التي تأتي مع DLL.

  8. cary
    October 7th, 2006 07:18 أكتوبر 7th ، 2006 07:18
    8

    With Apache 2.2, you will need PHP 5.2.x. مع اباتشي 2.2 ، ستحتاج PHP 5.2.x. It has the php5apache2_2.dll that is compiled for the new version. لها أن php5apache2_2.dll هو تجميع لنسخة جديدة. You can download a stable build at يمكنك تحميل مستقرة في بناء http://snaps.php.net/

  9. JaD جاد
    February 19th, 2007 17:11 فبراير 19th ، 2007 17:11
    9

    You said… قال لكم...
    ...
    Search for the line of extension_dir = “./”. البحث عن خط extension_dir = "./". Change it to extension_dir = “C:\php5\ext”. تغيير إلى extension_dir = "جيم : \ php5 \ الفرع الهاتفي". Also, uncomment the line of extension=php_mysql.dll. أيضا ، حرر من تمديد خط = php_mysql.dll.

    Save the php.ini. انقاذ php.ini. Restart the Apache server. استئناف الخادم اباتشي. Re-try to access في محاولة لإعادة الوصول http://localhost/php5_info.php . It should working fine. وينبغي أن تعمل جيدا. If not try to وإذا لم يكن في محاولة ل
    ….. .....
    ….. .....
    “C:\php5\ext”. "جيم : \ php5 \ الفرع الهاتفي". ?????? ؟؟؟؟؟؟ — the correct line is -- الصحيح هو خط
    “C:\php\ext”. "جيم : \ php \ الفرع الهاتفي".

  10. JaD جاد
    February 19th, 2007 17:23 فبراير 19th ، 2007 17:23
    10

    u forgot a thing, for the apache.. ش نسيت شيئا ، لاباتشي..
    modify DirectoryIndex and put index.php تعديل ووضع DirectoryIndex index.php
    in rest is a good tutorial هو في بقية تعليمي جيد : ف

  11. Asokan
    February 25th, 2007 01:30 فبراير 25th ، 2007 01:30
    11

    I am trying to connect mysql5 from apache2 but واني اسعى الى ان ربط mysql5 لكن من apache2
    browser showing an error متصفح تبين وجود خطأ
    "
    Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in C:\webroot\dbconnect.php on line 2 تحذير : تتطلب (/ التكوين / db_config.php) [function.require] : فشل في فتح الدفق : لا يوجد مثل هذا الملف أو الدليل في جيم : \ webroot \ dbconnect.php على الخط 2

    Fatal error: require() [function.require]: Failed opening required ‘/config/db_config.php’ (include_path=’.;C:\php5\pear’) in C:\webroot\dbconnect.php on line 2 خطأ فادح : تتطلب () [function.require] : فشل فتح المطلوب '/ التكوين / db_config.php' (include_path = '. ؛ جيم : \ php5 \ كمثرى') في جيم : \ webroot \ dbconnect.php على الخط 2

    I am using,MySQL5, PHP5 and Apache2.2 running windows xp أنا باستخدام ، MySQL5 ، PHP5 وApache2.2 يعمل على نظام ويندوز إكس بي
    Request your help طلب مساعدتكم
    Thanking you الشكر لكم
    ******

  12. Asokan
    February 25th, 2007 01:30 فبراير 25th ، 2007 01:30
    12

    I am trying to connect mysql5 from apache2 but واني اسعى الى ان ربط mysql5 لكن من apache2
    browser showing an error متصفح تبين وجود خطأ
    "
    Warning: require(/config/db_config.php) [function.require]: failed to open stream: No such file or directory in C:\webroot\dbconnect.php on line 2 تحذير : تتطلب (/ التكوين / db_config.php) [function.require] : فشل في فتح الدفق : لا يوجد مثل هذا الملف أو الدليل في جيم : \ webroot \ dbconnect.php على الخط 2

    Fatal error: require() [function.require]: Failed opening required ‘/config/db_config.php’ (include_path=’.;C:\php5\pear’) in C:\webroot\dbconnect.php on line 2 خطأ فادح : تتطلب () [function.require] : فشل فتح المطلوب '/ التكوين / db_config.php' (include_path = '. ؛ جيم : \ php5 \ كمثرى') في جيم : \ webroot \ dbconnect.php على الخط 2

    I am using,MySQL5, PHP5 and Apache2.2 running windows xp أنا باستخدام ، MySQL5 ، PHP5 وApache2.2 يعمل على نظام ويندوز إكس بي
    Request your help طلب مساعدتكم
    Thanking you الشكر لكم
    Asokan

  13. Handril
    June 21st, 2007 13:10 يونيو 21st ، 2007 13:10
    13

    I have succes install apache 2, php5 and MySQL 5. لقد succes تركيب اباتشي 2 ، php5 و5 ماي. س. ك. I can display php info. يمكنني عرض معلومات php. But, why php script that I make can not run in the IE browser. ولكن ، لماذا php أن السيناريو الأول لا يمكن أن تديرها شركة آي إي في المتصفح. this simple script like this: هذا بسيط مثل هذا السيناريو :

    I use Windows XP. أنا استخدام ويندوز إكس بي.

    Thank you for your attention. شكرا لاهتمامكم.

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 ابحث الواردة للشروط المنصوص عليها في المادة

error trying access httpd.conf file خطأ تحاول الوصول إلى ملف httpd.conf - -- error trying to access httpd.conf file خطأ تحاول الوصول إلى ملف httpd.conf - -- error trying to access httpd.conf خطأ تحاول الوصول الى httpd.conf - -- error trying access httpd.conf خطأ تحاول الوصول httpd.conf - -- error trying access httpd.conf file. خطأ تحاول الوصول httpd.conf الملف. you will need to manually configure the web server ستحتاج إلى يدويا تكوين خادم الويب - -- "Error trying access httpd.conf file" "حدث خطأ أثناء محاولة الوصول إلى ملف httpd.conf" - -- Error trying access httpd.conf file. حدث خطأ أثناء محاولة الوصول httpd.conf الملف. You will need to manually configure the web server. ستحتاج إلى يدويا تكوين ملقم الويب. - -- php5 apache2 windows php5 apache2 النوافذ - -- php5 apache2 php5 apache2 - -- "error trying access httpd.conf" "خطأ تحاول الوصول httpd.conf" - -- php error trying access httpd.conf php خطأ تحاول الوصول httpd.conf - -- php error trying to access httpd.conf php خطأ تحاول الوصول الى httpd.conf - -- php Error trying access httpd.conf file php خطأ تحاول الوصول ملف httpd.conf - -- php5 apache windows اباتشي php5 النوافذ - -- php5 apache2.2 php5 apache2.2 - -- "Error trying to access httpd.conf" "حدث خطأ أثناء محاولة الوصول الى httpd.conf" - -- installing php5 on apache2 on windows تركيب php5 على apache2 على النوافذ - -- windows apache php5 نوافذ اباتشي php5 - -- apache2 windows php apache2 نوافذ php - -- install php5 apache2.2 تركيب php5 apache2.2 - -- how to run php scripts on windows xp كيفية تشغيل البرامج النصية php على الويندوز إكس بي - -- error trying to access httpd.conf file. خطأ تحاول الوصول الى httpd.conf الملف. you will need to manually configure the web server ستحتاج إلى يدويا تكوين خادم الويب - -- error trying to access the httpd.conf file خطأ تحاول الوصول إلى ملف httpd.conf - -- apache PHP5 xp اباتشي PHP5 ث - -- php apache windows php اباتشي النوافذ - -- apache php5 windows اباتشي php5 النوافذ - -- error trying access httpd.conf php خطأ تحاول الوصول httpd.conf php - -- error trying acces httpd.conf file خطأ تحاول accès ملف httpd.conf - -- Apache2.2 and PHP Apache2.2 وPHP - -- apache php5 module اباتشي php5 وحدة - -- PHP "Error trying access httpd.conf file" PHP "حدث خطأ أثناء محاولة الوصول إلى ملف httpd.conf" - -- apache2 php5 windows apache2 php5 النوافذ - -- error trying to access httpd.conf file. خطأ تحاول الوصول الى httpd.conf الملف. you will need to manually config it ستحتاج إلى يدويا أنها التكوين - -- .;C:\php5\pear . ؛ جيم : \ php5 \ كمثرى - -- error accessing httpd.conf خطأ في الوصول إلى httpd.conf - -- install php 5 and apache 2 on windows xp php (5) ، وتركيب اباتشي 2 على الويندوز إكس بي - -- all الكل - -- install apache2.2 perl windows xp apache2.2 بيرل تركيب نوافذ إكس بي - -- php5 apache 2.2 windows php5 اباتشي 2.2 النوافذ - -- using php5 and apache2 on windows باستخدام php5 وapache2 على النوافذ - -- "Error trying access httpd.conf file" php "حدث خطأ أثناء محاولة الوصول إلى ملف httpd.conf" php - -- "Error trying access httpd.conf file. You will need to manually configure the web server." "حدث خطأ أثناء محاولة الوصول httpd.conf الملف. ستحتاج إلى يدويا تكوين خادم الويب". - -- error trying access httpd.conf file. خطأ تحاول الوصول httpd.conf الملف. - -- how to config apache on Windows XP كيفية التكوين اباتشي على ويندوز إكس بي - -- PHP "error trying access httpd.conf file. You will need to manually configure the web server" PHP "خطأ تحاول الوصول httpd.conf الملف. ستحتاج إلى يدويا تكوين خادم الويب" - -- php5 with apache 2 php5 مع اباتشي 2 - -- error trying access httpd.conf file. خطأ تحاول الوصول httpd.conf الملف. - -- error trying access httpd.conf file + php خطأ تحاول الوصول إلى ملف httpd.conf + php - -- install php 5 on apache2.2 تركيب php 5 على apache2.2 - -- manually configure apache2.2 for php5 يدويا apache2.2 لphp5 - --