Home > Archive > PHP Language > November 2005 > installing php
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hi,
I'm new to php and was wondering whether I could get some help, please.
I bought a book "Programming PHP" by NextHandbooks (it came with a CD).
I have installed the apache server which works fine (i've tested it by going
to http://localhost
I have followed the instructions for installing php which included modifying
lines and copying files etc.
I have come to the last instruction which says add this to httpd.conf file:
# add PHP capabilities
LoadModule php4_module "C:/php/php-4.3.7-Win32/sapi/php4apache2.dll"
AddType application/x-httpd-php.php
I have done this but when I restart the server the following message comes
up
"AddType requires at least two arguments, a mime followed by one or more
extensions"
Does anyone know what I need to do in order to resolve this issue?
Thanks for your time
Tom
| |
| moriman 2005-11-25, 3:55 am |
|
"Tom" <nospam@nospam.com> wrote in message
news:4386d95a$0$25852$afc38c87@news.optusnet.com.au...
> Hi,
>
> I'm new to php and was wondering whether I could get some help, please.
>
> I bought a book "Programming PHP" by NextHandbooks (it came with a CD).
>
> I have installed the apache server which works fine (i've tested it by
going
> to http://localhost
>
> I have followed the instructions for installing php which included
modifying
> lines and copying files etc.
>
> I have come to the last instruction which says add this to httpd.conf
file:
>
> # add PHP capabilities
> LoadModule php4_module "C:/php/php-4.3.7-Win32/sapi/php4apache2.dll"
> AddType application/x-httpd-php.php
>
> I have done this but when I restart the server the following message comes
> up
>
> "AddType requires at least two arguments, a mime followed by one or more
> extensions"
>
> Does anyone know what I need to do in order to resolve this issue?
>
think you forgot a space between mime type and extension...
>AddType application/x-httpd-php.php
AddType application/x-httpd-php .php
hth
mori
> Thanks for your time
>
> Tom
>
>
| |
|
| "moriman" <moriman@btinternet.com> wrote in message
news:dm6lr3$aou$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com...
>
> "Tom" <nospam@nospam.com> wrote in message
> news:4386d95a$0$25852$afc38c87@news.optusnet.com.au...
> going
> modifying
> file:
>
>
>
> think you forgot a space between mime type and extension...
>
> AddType application/x-httpd-php .php
>
> hth
>
> mori
>
>
>
Thanks very much!
One little space caused so much trouble.
Thanks again
Tom
|
|
|
|
|