Apache - Adding php module

by kalai 2007-05-14

While adding php module in Apache I made entry for Php by editing httpd.conf file and making entry for loadfile, addmodule and addtype.

LoadModule php4_module D:/Program Files/php/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php


While starting Apache the following error occur's

Load module takes 2 argument, a module name and the name of shared object file to load it from


The issue is, a space is provided in between Program files so it is splited into two argument.To avoid this problem the path should be provided in between the quotes

LoadModule php4_module "D:/Program Files/php/php4apache.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php

Tagged in:

3057
like
0
dislike
0
mail
flag

You must LOGIN to add comments