Moderators: macek, egami, gesf

I actually have the following config in the httpd.conf file:

AddType application/x-httpd-php .php 
What about these lines:

Un commented and edited the line you replied about. Did a restart on Apache and checked again.




First so you will know here are all the commands in my config file:

AddHandler server-parsed .dhtml .shtml .html .htm .xml .php

OldManRiver wrote::help: First so you will know here are all the commands in my config file:
# Server Side Processing Configuration
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .htm .dhtml .html .shtml .php .xml
AddOutputFilter INCLUDES .dhtml .shtml .php
AddHandler server-parsed .dhtml .shtml .html .htm .xml .php
# Enable the PHP Server
#LoadModule php4_module "E:\Program Files\PHP Server\php.exe"
#LoadModule php4_module "E:\Program Files\PHP Server\php4ts.dll"
#LoadModule php4_module "E:\Program Files\PHP Server\sapi\php4apache.dll"
#AddModule mod_php4.c
AddHandler php-script .php
AddType application/x-httpd-php .php
#AddType application/x-httpd-php "/_php/php.exe"
#ScriptAlias /_php/ "E:\Program Files\PHP Server\php.exe"
#ScriptAlias /php/ "E:\Program Files\PHP Server\php.exe"
#ScriptAlias /._php/ "E:\Program Files\PHP Server\php.exe"
#ScriptAlias /.php/ "E:\Program Files\PHP Server\php.exe"
I ran the "php.exe -i" test from the Install.txt file. It ran OK
Then as I added the "LoadModule" and "AddModule" commands, one at a time,
running "RESTART" after each; I got errors on each.
If you can explain the relationship, dependencies, etc., which I cannot find
in any books or help files, then maybe debugging will be easier. Right now
I'm clueless!




ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

OldManRiver wrote:I never got errors before now with the code:
LoadModule php4_module "E:\Program Files\PHP Server\sapi\php4apache.dll"
AddType application/x-httpd-php .php
AddHandler php-script .php
I'm getting this error:
Syntax error on line 815 of E:/Program Files/Apache Group/Apache2/conf/httpd.con
f:
Cannot load E:/Program Files/PHP Server/sapi/php4apache.dll into server: One of
the library files needed to run this application cannot be found.
Sorry I'm so clueless on this!




Users browsing this forum: No registered users and 2 guests