Re: PHP5 and Apache 2.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



did you enabled short tags?
see 
http://www.php.net/manual/en/ini.core.php#ini.short-open-tag

Tyrael

On Tue, Jun 1, 2010 at 12:52 PM, Pierre de Witt <pierre.dewitt@xxxxxxxxx> wrote:

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.

 



[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux