No PHP under Apache

This is a discussion on No PHP under Apache within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, Recently installed Apache. I have PHP installed, which ran very well under a Xitami web server. The same ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-24-2005
Fokke Nauta
 
Posts: n/a
Default No PHP under Apache

Hi all,

Recently installed Apache. I have PHP installed, which ran very well under a
Xitami web server.
The same PHP setup won't run under Apache. I added the following directives
to the httpd.conf:
Loadmodule php5_module c:/php/php5apache.dll
Addmodule mod_php5.c
AddType application/x-httpd-php .php

Apache itself is up and running without any error messages.
As PHP runs well under Xitami, I may assume the PHP setup is well
configured.
Details:
OS: NT4 + SP6
Apache: vs 1.3.29
PHP: 5.03 + Zend optimizer

Anyone has an idea as to what is wrong?

Thanks in advance.
Best regards,
Fokke Nauta







  #2 (permalink)  
Old 01-25-2005
Pieter
 
Posts: n/a
Default Re: No PHP under Apache

On Mon, 24 Jan 2005 10:51:30 +0100, "Fokke Nauta" <fenautaNOSPAM@wanadoo.nl> wrote in 30 Lines :

>Hi all,
>
>Recently installed Apache. I have PHP installed, which ran very well under a
>Xitami web server.
>The same PHP setup won't run under Apache. I added the following directives
>to the httpd.conf:
>Loadmodule php5_module c:/php/php5apache.dll
>Addmodule mod_php5.c
>AddType application/x-httpd-php .php
>
>Apache itself is up and running without any error messages.
>As PHP runs well under Xitami, I may assume the PHP setup is well
>configured.
>Details:
>OS: NT4 + SP6
>Apache: vs 1.3.29
>PHP: 5.03 + Zend optimizer
>
>Anyone has an idea as to what is wrong?
>
>Thanks in advance.
>Best regards,
>Fokke Nauta
>


# AddType for PHP pages

ScriptAlias /php/ "d:/php/" <---- fill in here your location of your php

AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
Action application/x-httpd-php "/php/php.exe"

This works for me and I hope for you
  #3 (permalink)  
Old 01-27-2005
Fokke Nauta
 
Posts: n/a
Default Re: No PHP under Apache

"Pieter" <P.dfm@wsx.nl> wrote in message
news:pdadv0dd7448gvjroptj3i2pte6f1um9ck@4ax.com...
> On Mon, 24 Jan 2005 10:51:30 +0100, "Fokke Nauta"

<fenautaNOSPAM@wanadoo.nl> wrote in 30 Lines :

<cut>

> # AddType for PHP pages
>
> ScriptAlias /php/ "d:/php/" <---- fill in here your location of your

php
>
> AddType application/x-httpd-php-source .phps
> AddType application/x-httpd-php .php3
> AddType application/x-httpd-php .php4
> AddType application/x-httpd-php .php5
> AddType application/x-httpd-php .htm
> AddType application/x-httpd-php .html
> Action application/x-httpd-php "/php/php.exe"
>
> This works for me and I hope for you


Hi Pieter,

Thanks. I copied it in the httpd.conf file, under <IfModule mod_mime.c> but
it still won't work. When calling php-pages I see the text content in my
browser.

With regards,

Fokke


  #4 (permalink)  
Old 01-27-2005
Fred Atkinson
 
Posts: n/a
Default Re: No PHP under Apache

I am unable to get PHP to work on my Webserver. I pasted the
above into my config file and restarted Apache. Apache won't restart
with this in it.

This is exactly what I put in there:

# AddType for PHP pages

ScriptAlias /php/ "C:/PHP/" <---- fill in here your location of
your php

AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
Action application/x-httpd-php "/php/php.exe"


Any ideas? I'd really like to get PHP running on my server.

Regards,


Fred

  #5 (permalink)  
Old 01-27-2005
Pieter
 
Posts: n/a
Default Re: No PHP under Apache

On Thu, 27 Jan 2005 14:07:38 GMT, Fred Atkinson <fatkinson@mishmash.com> wrote in 27 Lines :

> I am unable to get PHP to work on my Webserver. I pasted the
>above into my config file and restarted Apache. Apache won't restart
>with this in it.
>
> This is exactly what I put in there:
>
># AddType for PHP pages
>
>ScriptAlias /php/ "C:/PHP/" <---- fill in here your location of
>your php
>
>AddType application/x-httpd-php-source .phps
>AddType application/x-httpd-php .php3
>AddType application/x-httpd-php .php4
>AddType application/x-httpd-php .php5
>AddType application/x-httpd-php .htm
>AddType application/x-httpd-php .html
>Action application/x-httpd-php "/php/php.exe"
>
>
> Any ideas? I'd really like to get PHP running on my server.
>
> Regards,
>
>
> Fred


What is your error log write down from apache?

To test config file check (#) or uncheck line and see with what line
it starts working.

Be sure that you put the right ScriptAlias location in your config file.

REMOVE "<---- fill in here your location of your php" THIS from the config file.
If you leaf this there the server will not start.

Pieter.
  #6 (permalink)  
Old 01-27-2005
Pieter
 
Posts: n/a
Default Re: No PHP under Apache

On Thu, 27 Jan 2005 14:26:03 +0100, "Fokke Nauta" <fenautaNOSPAM@wanadoo.nl> wrote in 33 Lines :

>"Pieter" <P.dfm@wsx.nl> wrote in message
>news:pdadv0dd7448gvjroptj3i2pte6f1um9ck@4ax.com.. .
>> On Mon, 24 Jan 2005 10:51:30 +0100, "Fokke Nauta"

><fenautaNOSPAM@wanadoo.nl> wrote in 30 Lines :
>
><cut>
>
>> # AddType for PHP pages
>>
>> ScriptAlias /php/ "d:/php/" <---- fill in here your location of your

>php
>>
>> AddType application/x-httpd-php-source .phps
>> AddType application/x-httpd-php .php3
>> AddType application/x-httpd-php .php4
>> AddType application/x-httpd-php .php5
>> AddType application/x-httpd-php .htm
>> AddType application/x-httpd-php .html
>> Action application/x-httpd-php "/php/php.exe"
>>
>> This works for me and I hope for you

>
>Hi Pieter,
>
>Thanks. I copied it in the httpd.conf file, under <IfModule mod_mime.c> but
>it still won't work. When calling php-pages I see the text content in my
>browser.
>


>With regards,
>
>Fokke
>

Try to move it outside of this <ifmodule...> enclosure.
In my file it is a general line and not within any part enclosure.

Pieter
  #7 (permalink)  
Old 01-31-2005
Fokke Nauta
 
Posts: n/a
Default Re: No PHP under Apache

"Pieter" <P.dfm@wsx.nl> wrote in message
news:jmuhv05hiltugdionrhom1vs70afomf7mj@4ax.com...
> On Thu, 27 Jan 2005 14:26:03 +0100, "Fokke Nauta"

<fenautaNOSPAM@wanadoo.nl> wrote in 33 Lines :
>

<Cut>

> Try to move it outside of this <ifmodule...> enclosure.
> In my file it is a general line and not within any part enclosure.
>


I have done so. Did not make any difference. PHP still does not work under
Apache :-(

With regards,

Fokke


 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0