Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 28th, 2005, 10:36 AM
mek mek is offline
Registered User
Join Date: Jun 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with PHP installation

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.



Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 12:54 AM.

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