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/Apache/Installing-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.phpt=1044828&page=1&pp=15

Regards,
Stephen


"Stephen Harris" > wrote in message
news:sQVke.21078$J12.5931@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>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
>
>
>
>
>
>
>
>


.



Relevant Pages

  • Re: PHP5 install in Windows Vista
    ... since I last did this (using Windows XP Pro) I've moved on to Windows Vista. ... I suppose you're using a recent installer (older ones were broken in Vista ... not even PHP). ... One is for Apache 2.0-2.1, ...
    (comp.lang.php)
  • Did I choose the correct download?
    ... My operating system is Windows XP Pro. ... I was advised to download Apache ... I assumed Win32 was for all Windows programs, but the first line of the ...
    (php.general)
  • Re: Problem installing php with mysql etc
    ... If you're using windows I would suggest WAMP. ... installer that includes Apache, MySQL, and PHP. ...
    (comp.lang.php)
  • Making a depot compatible with Apache 2.0 and 2.2
    ... was inside HP-UX for a long time. ... With this change, the directory for Apache ... depot file for installation a software package using swinstall. ... To this end I added a test in the shell scripts of the installer to ...
    (comp.sys.hp.hpux)
  • Apache logging of file downloads
    ... We have an FTP site with Apache on top of it so that people can choose ... whether to download files via HTTP or FTP. ... MSIE 6.0; Windows NT 5.1)" ...
    (comp.infosystems.www.servers.unix)