Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get PHP to run Windows 98/PWS & MySQL 1

Status
Not open for further replies.

Duncanmcl

Programmer
Dec 23, 2000
61
US
I have reinstalled the latest version of PHP for Windows 98 using PWS and a MySQL database. Used the install utility and although I'm not getting any errors (previously I got security error 304)...the simple function PHPInfo() just keeps running...never any output...like its searching for some folder/file? I did tweek the .Ini fole as suggested for doc_root...i entered C:\inetpub\ with quotes, and GCI.Force-Redirect = Off. The windows PWS default home page i created does display in my browser. PWS seems OK...MySql works....where is the problem??
 
Sorry I can't tell you, never set up a Win98 server... but have you tried running a simple script with phpinfo(); from the command line to see if it's your PHP install or your webserver?

All you need to do is go to the command line and type

php testscript.php (where testscript is just <?php phpinfo(); ?>)


and it should dump all the HTML straight to your terminal.

-Rob
 
i tried the command line prompt you suggested...i did this from the PHP dir and the inetpub/ dir...same response...could not open input file. What does that tell us...PHP is not setup correctly?...path problem? Plese help...i'm lost on this!!
 
probably the directory containing the script is not set up to allow script execution ..
directory containing script must be r-xr-xr-x under unix or under PWs have READ and EXECUTE permission. right click PWS icon in systray and select properties and then add th eright permissions to the folder.

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Duncanmcl, are you using Apache Server Console or just an php extension to PWS?(like ISAPI extension for IIS)
I recomand to use Apache Console and i bet all your problems will be gone. I had same thing using PHP as ISAPI on my IIS but i prefer to use Apache and not IIS for testing PHP.

________
George, M
 
Thanks to those that responded, still not running..i have tried the command line...i have verified the permissions exe/script and OK...but not running...using the simple function phpinfo() in a php file. I'm going to check the permissions within the php windows folder? Re...Apache...it seems so complex...and i don't know about the extensions George M mentioned...i just used the PHP install utility for Windows....it was fast and easy...i did update the path see above. Please help!!
 
I suggest you scrap PWS and get yourself EasyPHP.
which comes with Apache, PHP, MySQL and installs itself. Gas task bar based config acces etc. and was tested on Win9x
 
PHP Running like an extension of PWS did not worked at me either.
You can get Apache WIndows Install and all should be ok.

________
George, M
 
end of story...its sooooooooooooooo easy to use EasyPHP...it loads MySQL...Apache...and PHP....its not the latest version...but who cares...it runs....and my weeks..+/- of trying this...that...are over...now i can focus of my web site development...a special thanks to DRJ478...what ever that name means!!!*****
 
Duncanmcl,

Once you get some experience with the 'older' PHP and Apache it will be also an interesting task and exercise to replace the PHP version that comes with EasyPHP with a newer version.
There is a bunch of tutorials on how to install a newer PHP version into an existing Apache setup.

Also, DRJ478 is a NIC handle....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top