Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

I don't know...why...Apache and php4 in Windows XP

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

I don't know...why...Apache and php4 in Windows XP

Postby shin0135 » Wed Nov 26, 2003 9:55 pm

Hi, all...

I have been trying to make php4 work for almost 3 hours.
I followed this link and I got Apache works fine.

http://www.coe.uncc.edu/~asingh/setup_apm.htm

In the php4 testing part, when I did the test, instead of getting php, I got a pop up window asking open/save test.php file. As I said before, apache works fine so when i did

http://localhost

I could see two links - test and testmysql.php

Here is my httpd.conf file.

ServerName localhost:80

#DocumentRoot "E:/Apache Group/Apache2/htdocs"
DocumentRoot "E:/phpWeb"

#<Directory "E:/Apache Group/Apache2/htdocs">
<Directory "E:/phpWeb">

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz
#
# AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

ScriptAlias /php4/ "E:/php4win"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "/php4/php.exe"



As you can see, I put php4 on E drive named with php4win and phpWeb for web files.

Please help me!!!

Thanks,
shin0135
New php-forum User
New php-forum User
 
Posts: 2
Joined: Wed Nov 26, 2003 9:43 pm

Re: I don't know...why...Apache and php4 in Windows XP

Postby swirlee » Wed Nov 26, 2003 11:21 pm

shin0135 wrote:ScriptAlias /php4/ "E:/php4win"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
Action application/x-httpd-php "/php4/php.exe"


I'm not quite sure how Apache handles multiple AddTypes for the same type, but I recommend using a single directive instead of several:

AddType application/x-httpd-php .php .php3 .php4
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.