Click to See Complete Forum and Search --> : Php4, Apache on Windows 98


Anon
02-12-2001, 09:35 AM
I have followed lots of instructions to install Apache & php 4, but no matter which one I follow I always get the php code in the browser and not what its supposed to do. I am positive I have done everything right. Any ideas,

Ta

Anon
02-13-2001, 05:33 PM
Yeah, I have one... Have you considered Linux.

Di

P.S. I am not going to write the whole article on how to install apache and php together. My advice - crank that computer of yours and start browsing the web...

keegan
02-13-2001, 07:20 PM
How can you be positive that you have done everything right if it isn't even working?

It sounds like you missed the step of modifying Apache's httpd.conf file to tell Apache what to do with files with the .php extension. Just read the readme file that came with PHP and it will give you the lines to put in httpd.conf.

-Keegan

Anon
02-14-2001, 02:11 AM
I have configured thw httpd.conf file and the php.ini file

antonbrk
02-14-2001, 09:22 AM
Gary, although small errors in httpd.conf account for most install glitches, you didn't provide enough details of your configuration for others to make informed suggestions. Indicate your operating system, and which drive and directory you installed apache and php under, and then paste into your reply here the relevant lines from your httpf.conf file. For example, here they from my httpd.conf file. My install is working fine (I have no idea why--if anyone notes any redundancy or goofiness in one or more of these config lines below, please post a correcting comment!).

Further below are some installation resources. If you continue to have problems, try downloading one of the preconfigured install bundles listed below. Finally, the install tutorials given further below are all excellent.

If you've already solved the matter, perhaps post a reply saying what was wrong (whether simple or complicated--many others will benefit from it). Good luck.



ServerRoot "C:/ALLWEBDEV/apache"
DocumentRoot "C:/ALLWEBDEV/www"

ScriptAlias /php/ "C:/ALLWEBDEV/php/"
ScriptAlias /php4/ "C:/ALLWEBDEV/php/"

AddType application/x-httpd-php4 .php .phtml .htm .html
AddType application/x-httpd-php .php .phtml .htm .html

Action application/x-httpd-php4 "/php/php.exe"
Action application/x-httpd-php "/php/php.exe"

Alias /mysql/ "C:/ALLWEBDEV/phpmyadmin/"




PHP FOR WINDOWS INSTALL BUNDLES (PHP4x PRECOMPILED BINARIES + APACHE + MYSQL)
http://www.firepages.com.au/phpdev.htm (free)
http://www.phpgeek.com/ (free)
http://php.weblogs.com/easywindows (free) (GD gif dll is here too)
http://www.abriasoft.com/ (free and fee versions)
http://www.nusphere.com/products/index.htm
(the latter supplies manuals and tech support, and costs $79)


PHP INSTALLATION TUTORIALS
http://212.223.75.38/workshops/ (Edward's Online Workshops)
http://www.thickbook.com/extra/php_apachephp4_win.phtml
http://www.webreview.com/2000/09_29/developers/09_29_00_2.shtml
http://hotwired.lycos.com/webmonkey/00/44/index4a.html?tw=programming
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/
http://www.php.net/manual/en/install-windows95-nt.php
http://www.webmasterbase.com/article.php?aid=228&pid=0 (Kevin Yank tutorial)
IMPORTANT: Always carefully read the "readme" files accompanying each install