Connecting Tech Pros Worldwide Forums | Help | Site Map

PHP display/install? problem

Stephen Harris
Guest
 
Posts: n/a
#1: Jul 17 '05
I downloaded:

Windows Binaries
PHP 5.0.4 zip package [7,488Kb] - 31 Mar 2005
md5: fff10991a8e6f3b36ee567eb236ae3f4

This is the current BETA release of version 5.0 of the MySQL database
server.
apache_2.0.54-win32-x86-no_ssl.exe 16-Apr-2005 15:13 7.8M Installer
Pack

I did a developer install and manually load Apache on localhost:8080

I get the welcoming screen. Also MySql seems functional as I tested the
tutorial using world.sql The setup had no errors.

Then I installed PHP. Also added LoadModule php5_module
"c:/php/php5apache2.dll" to httpd.conf

and updated the AddType entry -- Renamed file to php.ini and moved to
c:\windows copied php5ts.dll to c:\windows\system

I wrote the <? phpinfo() ; ?> in notepad and copied it to the

htdocs subdirectory. My instructions state that I'm suppose to be able to
open this in a browser (IE) and view a PHP banner with system information.
I have Apache server started and MySQL loads automatically.

The Problem: All that happens is that a black screen with some white print
flashes by (it looks like what are the correct swithces) dos type file. And
then nothing loads into the browser. I have the file set to be opened with
Apache but I've tried with IE also. If I use the "open as web folder" option
I can see the files that are in C:\Program Files\Apache Group\Apache2\htdocs

I also tried with simple.php

<?php
print "Hello Web!";
?>

which does not display in the browser but creates the brief opening of that
dos-like file

I suppose this is a simple matter but I've read a lot of posts to no avail.
Thanks for useful ideas.

Regards, Stephen









Stephen Harris
Guest
 
Posts: n/a
#2: Jul 17 '05

re: PHP display/install? problem


Hello,

I got this problem fixed. I used the msi installer for Apache
instead of the full download, I have Windows XP pro.
I also uninstalled IIs because I wasn't ready to deal with
manual start on port 8080, so I didn't choose developer.
Also added c:\PHP to my Path statement. So this worked
with PHP5.04 ; MySQL 5.0 beta ; and Apache 2.0.54

http://www.devarticles.com/c/a/Apach...ling-PHP-under Windows/

LoadModule php5_module php5apache2.dll
AddType application/x-httpd-php .php

1. Make sure that you have a valid php.ini in your windows directory.
OR (Per the tut the 'php.ini' can be installed in the
'C:\Program Files\Apache Group\Apache2' folder. This works fine.)
2. copy libmysql.dll to the system32 directory
(php_mysql.dll would not load without doing this)
3. set the extension_dir in php.ini to the ext directory of your PHP
installation directory (like e.g. extension_dir=C:\php5\ext)
4. enable the MySQL extension in php.ini by uncommenting the line
extension=php_mysql.dll
5. Restart Apache Server

I think that installation web tutorial is well written.
Don't forget to restart your apache server and refresh
the browser; getting the syntax right calls for attention.
Another research and help resource:
http://www.dbforums.com/showthread.p...8&page=1&pp=15

Regards,
Stephen


"Stephen Harris" > wrote in message
news:sQVke.21078$J12.5931@newssvr14.news.prodigy.c om...[color=blue]
>I downloaded:
>
> Windows Binaries
> PHP 5.0.4 zip package [7,488Kb] - 31 Mar 2005
> md5: fff10991a8e6f3b36ee567eb236ae3f4
>
> This is the current BETA release of version 5.0 of the MySQL database
> server.
> apache_2.0.54-win32-x86-no_ssl.exe 16-Apr-2005 15:13 7.8M Installer[/color]
Wound up using the msi installer download which I think is up to version 2.0
available from Microsoft.[color=blue]
> Pack
>
> I did a developer install and manually load Apache on localhost:8080
>
> I get the welcoming screen. Also MySql seems functional as I tested the
> tutorial using world.sql The setup had no errors.
>
> Then I installed PHP. Also added LoadModule php5_module
> "c:/php/php5apache2.dll" to httpd.conf
>
> and updated the AddType entry -- Renamed file to php.ini and moved to
> c:\windows copied php5ts.dll to c:\windows\system
>
> I wrote the <? phpinfo() ; ?> in notepad and copied it to the
>
> htdocs subdirectory. My instructions state that I'm suppose to be able to
> open this in a browser (IE) and view a PHP banner with system information.
> I have Apache server started and MySQL loads automatically.
>
> The Problem: All that happens is that a black screen with some white print
> flashes by (it looks like what are the correct swithces) dos type file.
> And then nothing loads into the browser. I have the file set to be opened
> with Apache but I've tried with IE also. If I use the "open as web folder"
> option I can see the files that are in C:\Program Files\Apache
> Group\Apache2\htdocs
>
> I also tried with simple.php
>
> <?php
> print "Hello Web!";
> ?>
>
> which does not display in the browser but creates the brief opening of
> that dos-like file
>
> I suppose this is a simple matter but I've read a lot of posts to no
> avail. Thanks for useful ideas.
>
> Regards, Stephen
>
>
>
>
>
>
>
>[/color]


Stephen Harris
Guest
 
Posts: n/a
#3: Jul 17 '05

re: PHP display/install? problem



"Stephen Harris" <stephen.p.harris@sbcglobal.net> wrote in message
news:pdile.1543$kS3.1323@newssvr21.news.prodigy.co m...[color=blue]
> Hello,
>[color=green]
> > http://www.devarticles.com/c/a/Apach...ling-PHP-under Windows/[/color][/color]

That last part should read /Installing-PHP-under-Windows/


Closed Thread