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 بلادي الرقمي الحياة المنتديات .
Related Articles المواد ذات الصلة
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 1 تثبيت خادم الويب في ويندوز إكس بي مع Apache2 ، PHP5 وMySQL4 -- الجزء 1
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 2 تثبيت خادم الويب في ويندوز إكس بي مع Apache2 ، PHP5 وMySQL4 -- الجزء 2
- Install Web Server in Windows XP with Apache2, PHP5 and MySQL4 - Part 4 تثبيت خادم الويب في ويندوز إكس بي مع Apache2 ، PHP5 وMySQL4 -- الجزء 4
- Using phpMyAdmin for Effective MySQL Management in Windows XP باستخدام phpMyAdmin لإدارة ماي. س. ك الفعال في ويندوز إكس بي
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 5 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 5
- Install, Setup and Configure CGI and Perl in Windows XP تركيب وإعداد وتكوين المجموعة الاستشارية لاندونيسيا وبيرل في ويندوز إكس بي
- Install phpBB 2 in Windows XP running on Apache 2, PHP 5 and MySQL 4 تثبيت phpBB 2 في ويندوز إكس بي يعمل على اباتشي 2 ، PHP 5 وماي. س. ك 4
- Subversion (SVN) Issues and Problems on mod_dav_svn in FreeBSD التخريب (SVN) القضايا والمشاكل على mod_dav_svn في فري
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 - Part 4 تركيب ملقم الويب في فري بي 6.0 مع اباتشي 2.2 ، 5.0 وماي. س. ك PHP 5 -- الجزء 4
- MySpace Blocked? ماي سبيس مجمدة؟ Unblock MySpace and Bypass with Proxy Access تحريك ماي سبيس والالتفافية مع وصول بالوكالة

































May 20th, 2006 03:42 مايو 20th ، 2006 03:42
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? جميع من بلادي مسارات صحيحة ما هي المشكلة؟
May 20th, 2006 14:33 مايو 20th ، 2006 14:33
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 لمسألة التوافق.
July 12th, 2006 19:10 يوليو 12th ، 2006 19:10
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!! يمكن يو مساعدتي!!
July 12th, 2006 19:46 يوليو 12th ، 2006 19:46
Looks like your web server doesn’t parse PHP file and treat it as text file, follow the steps carefully. يبدو أن مركز خدمة الويب الخاص بك لا تحليل ملف PHP والتعامل معها على أنها نص الملف ، اتبع الخطوات بعناية.
July 13th, 2006 07:32 يوليو 13th ، 2006 07:32
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!
July 13th, 2006 08:43 يوليو 13th ، 2006 08:43
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! شكرا للمساعدة!
September 10th, 2006 20:48 سبتمبر 10th ، 2006 20:48
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.
October 7th, 2006 07:18 أكتوبر 7th ، 2006 07:18
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/
February 19th, 2007 17:11 فبراير 19th ، 2007 17:11
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 \ الفرع الهاتفي".
February 19th, 2007 17:23 فبراير 19th ، 2007 17:23
u forgot a thing, for the apache.. ش نسيت شيئا ، لاباتشي..
modify DirectoryIndex and put index.php تعديل ووضع DirectoryIndex index.php
in rest is a good tutorial هو في بقية تعليمي جيد
February 25th, 2007 01:30 فبراير 25th ، 2007 01:30
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 الشكر لكم
******
February 25th, 2007 01:30 فبراير 25th ، 2007 01:30
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
June 21st, 2007 13:10 يونيو 21st ، 2007 13:10
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. شكرا لاهتمامكم.