PHP display/install? problem

This is a discussion on PHP display/install? problem within the PHP Language forums, part of the PHP Programming Forums category; I downloaded: Windows Binaries PHP 5.0.4 zip package [7,488Kb] - 31 Mar 2005 md5: fff10991a8e6f3b36ee567eb236ae3f4 This is the ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-25-2005
Stephen Harris
 
Posts: n/a
Default PHP display/install? problem

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








Reply With Quote
  #2 (permalink)  
Old 05-26-2005
Stephen Harris
 
Posts: n/a
Default Re: PHP display/install? problem Solution

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...
>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

Wound up using the msi installer download which I think is up to version 2.0
available from Microsoft.
> 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
>
>
>
>
>
>
>
>



Reply With Quote
  #3 (permalink)  
Old 05-29-2005
Stephen Harris
 
Posts: n/a
Default Re: PHP display/install? problem Solution


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


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


Reply With Quote
Reply
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:49 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0