martman
10-22-2002, 10:17 PM
i installed php 4.2.3 for windows but when i open a page with apache for windows running it just shows the php code any ideals
Thanks
Thanks
|
Click to See Complete Forum and Search --> : php for windows martman 10-22-2002, 10:17 PM i installed php 4.2.3 for windows but when i open a page with apache for windows running it just shows the php code any ideals Thanks Tekron-X 10-22-2002, 10:37 PM First off do you have the server server alias set to you php directiory like this is mine # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "C:/Apache/Apache/cgi-bin/" ScriptAlias /php4/ "C:/php4/" the bold is the line that needs to be added. and do you have it pointing to your parser in this section again the line I had to add is in bold # # Action lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for oft-used CGI file processors. # Format: Action media/type /cgi-script/location # Format: Action handler-name /cgi-script/location # Action application/x-httpd-php /php4/php.exe also you need to set the types of files to parse again it is in bold # # AddType allows you to tweak mime.types without actually editing it, or to # make certain files to be certain types. # AddType application/x-tar .tgz AddType image/x-icon .ico AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps That should cover it unless you already did this stuff All of this goes in the httpd.conf file in your Apache directiory under the conf folder :) martman 10-23-2002, 08:29 PM Thanks Tekron-x that did the trick. :) PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |