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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

About PHP4

Status
Not open for further replies.

zallen

Programmer
Aug 10, 2000
227
0
0
CN
Hi,friends
I have installed apache on win98 and it works fine.But the PHP4 doesnot work with Apache.Both CGI and module mode canot work!
I want to know how to enable the PHP on Apache.Here is part of my httpd.conf and php.ini:
httpd.conf
ScriptAlias /php4/ "C:/php4/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
AddType application/x-httpd-php4 .php4
AddType application/x-httpd-php4 .phtml
....
php.ini
extension_dir = c:/PHP4/


Any suggestions are appreciated!

 
I've tried with this and eventually went for PHP3 instead. Php4, as you know, wants to run as a CGI module and after a week of trying, asking the advice of fellow developers and trawling the web, I gave up and used version 3.

In practice there's not really a noticable difference to the actual coding - it may save you time and effort to make do with this - especially if it's just for you to practice on your local machine.

Good luck anyway!

Cheers,

:inFoxicated
 
One thing that I have found particularly useful for Windows users is called PHP Triad. You can download it from Just go there and search for PHP Triad. You should find it.

It install's PHP4, MySQL 3.23.2 and Apache 1.3.12 (or something similar to that). It install's it all and sets up all of the .conf files for you so that all you have to do is run Apache, and save all of your PHP files into a htdocs folder, and then go to localhost/scriptname.php and it sould work find.

Hope this helps.

-Vic

vic cherubini
malice365@hotmail.com
====

Knows: Perl, HTML, JavScript, C/C++, PHP, Flash, Director

Wants to Know: Java, Cold Fusion, Tcl/TK

====
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top