Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 28th, 2005, 10:36 AM
mek mek is offline
Registered User
 
Join Date: Jun 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with PHP installation

Hi,
For the last few days I have been trying to get PHP working with Apache on my Windows XP machine. Tried both PHP4 and PHP5. Consulted a number of books, followed installation procedures written. But in vain.

Will somebody tell me how to make PHP working? Here is what I did last time with PHP4 instalation:

1. Extracted the contents of php-4.3.11-Win32.zip to c:\php.

2. Copied php.ini-dist to c:\windows and renamed it to php.ini.

3. Copied php4ts.dll file from c:\php to c:\windows\system32.

4. Copied the contents of c:\php\dlls to c:\windows\system32.

5. Edited php.ini file as follows:
extension_dir = "./" has been changed to extensions_dir = "c:\php\extensions"

6. Apache has been configured to run PHP as a module. So made the following changes to httpd.conf:
  a. Appended "LoadModule php4_module c:/php/sapi/php4apache.dll" at the end of LoadModule directives.
  b. Similarly added "AddModule mod_php4.c" at the end of AddModule directives.
  c. Added "AddType application/x-httpd-php .php" at the end of AddType directives.

7. Stopped and restarted Apache and tested with test.php (containing <? php phpinfo(); ?>) on the browser. While Apache works, PHP doesn't. The text of the file test.php appears.

Thanks.

Kabir
Dhaka-Bangladesh






Similar Threads
Thread Thread Starter Forum Replies Last Post
Php-Sql installation problem Dr Robert James Beginning PHP 3 October 16th, 2015 05:01 PM
PHP Installation question EnderX PHP How-To 0 November 9th, 2006 09:47 AM
php installation problem kerux Beginning PHP 2 March 25th, 2004 10:43 AM
php installation problem iswita PHP How-To 1 June 16th, 2003 11:48 AM
Ch. 1: PHP Installation Troubles: php3 vs php manjito BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 June 12th, 2003 03:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.