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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
"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 |
|
|||
|
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 |
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
"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 | |
|
|