I have been frustrated for 2 days now trying to get Apache 2.2 and PHP5 to work together on my new laptop.
No joy.
My old laptop worked fine with Apache 1.3 and PHP4
These are the steps that I have followed. (I have googled this problem and have plenty of similar problems without a workable solution)
1. Install Apache 2.2.15 using MSI from apache.org with server name 'localhost'
2. connect to http://localhost . get 'It works!'. So far so good
3. Manual install of php5.3.2
4. Edit httpd.conf and add these lines.LoadModule php5_module "d:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "d:/php"5. edit index.php to add phpinfo()
<html><body><h1>It works!</h1></body></html>
<?
phpinfo();
?>
6. Restart Apache
7. connect to http://localhost/index.php
8.Get get 'It works!' (no phpinfo())
9. View source of page<html><body><h1>It works!</h1></body></html>
<?
phpinfo();
?>10. Apache error log below
[Tue Jun 01 07:45:05 2010] [notice] Apache/2.2.15 (Win32) PHP/5.3.2 configured -- resuming normal operations
[Tue Jun 01 07:45:05 2010] [notice] Server built: Mar 4 2010 11:27:46
[Tue Jun 01 07:45:05 2010] [notice] Parent: Created child process 4832
[Tue Jun 01 07:45:05 2010] [notice] Child 4832: Child process is running
[Tue Jun 01 07:45:05 2010] [notice] Child 4832: Acquired the start mutex.
[Tue Jun 01 07:45:05 2010] [notice] Child 4832: Starting 64 worker threads.
[Tue Jun 01 07:45:05 2010] [notice] Child 4832: Starting thread to listen on port 80.11. Oh yes, my OS is Windows XP professional
I would appreciate any help to preserve my sanity.
- Follow-Ups:
- Re: PHP5 and Apache 2.2
- From: Ferenc Kovacs
- Re: PHP5 and Apache 2.2
- References:
- PHP5 and Apache 2.2
- From: Pierre de Witt
- PHP5 and Apache 2.2
- Prev by Date: PHP5 and Apache 2.2
- Next by Date: Re: PHP5 and Apache 2.2
- Previous by thread: PHP5 and Apache 2.2
- Next by thread: Re: PHP5 and Apache 2.2
- Index(es):