Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Apache server does not recognize PHP file

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  server & character set  
Author Message
Frederick

External


Since: Aug 25, 2006
Posts: 1



(Msg. 1) Posted: Fri Aug 25, 2006 6:26 am
Post subject: Apache server does not recognize PHP file
Archived from groups: alt>apache>configuration (more info?)

Hi,

So I have installed Appache Server 2.2, the service is running. But
when I place a *.php in the root directory it ask me if I want to
download the the file instead of running it.

I have install Mysql 5 and PHP 4. how do I make the apache server
reconize php file.

 >> Stay informed about: Apache server does not recognize PHP file 
Back to top
Login to vote
MikeDawg

External


Since: Feb 06, 2006
Posts: 32



(Msg. 2) Posted: Fri Aug 25, 2006 8:19 am
Post subject: Re: Apache server does not recognize PHP file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Frederick wrote:
> Hi,
>
> So I have installed Appache Server 2.2, the service is running. But
> when I place a *.php in the root directory it ask me if I want to
> download the the file instead of running it.
>
> I have install Mysql 5 and PHP 4. how do I make the apache server
> reconize php file.


You'll want to add the following lines in your httpd.conf file, this
applies to Apache 2.0, so I'm not 100% about apache 2.2, you may want
to double check these:

AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .inc
AddType application/x-httpd-php .class

 >> Stay informed about: Apache server does not recognize PHP file 
Back to top
Login to vote
stuart_miller

External


Since: May 11, 2004
Posts: 55



(Msg. 3) Posted: Sat Aug 26, 2006 1:33 am
Post subject: Re: Apache server does not recognize PHP file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"MikeDawg" <mikedawg DeleteThis @gmail.com> wrote in message
news:1156519192.711122.233370@75g2000cwc.googlegroups.com...
>
> Frederick wrote:
>> Hi,
>>
>> So I have installed Appache Server 2.2, the service is running. But
>> when I place a *.php in the root directory it ask me if I want to
>> download the the file instead of running it.
>>
>> I have install Mysql 5 and PHP 4. how do I make the apache server
>> reconize php file.
>
>
> You'll want to add the following lines in your httpd.conf file, this
> applies to Apache 2.0, so I'm not 100% about apache 2.2, you may want
> to double check these:
>
> AddType application/x-httpd-php .php .phtml
> AddType application/x-httpd-php-source .phps
> AddType application/x-httpd-php .inc
> AddType application/x-httpd-php .class
>
You make a reference to 'the service' which suggests running on xp. I run
linux so I can't say how this affects you, but you should have a single
directory where all the scripts lives, and that directory must be configured
to execute the scripts, not serve them. It's all in the docs.

Stuart
 >> Stay informed about: Apache server does not recognize PHP file 
Back to top
Login to vote
Nelson Mandela

External


Since: Sep 03, 2006
Posts: 1



(Msg. 4) Posted: Sun Sep 03, 2006 1:58 am
Post subject: Re: Apache server does not recognize PHP file [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> I have install Mysql 5 and PHP 4. how do I make the apache server
> reconize php file.

Hi,

I have the same problem on XP with SP2.
I am still trying to enalbe PHP 5.1.4 under Apache 2.0.55
and I am not sure where is the catch.
I modified httpd.conf and php.ini and I become full of daughts
What's wrong ?
(Or maybe there is no man jet, who resovled it anyway?)

Nelson
 >> Stay informed about: Apache server does not recognize PHP file 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Make the system recognize the new apache instead of the old? - Default Apache(2.4.0)RPM install from Red Hat 8.0. I needed to add suexec so I download Apache(2.4.7) and compiled with suexec. I thought that default layout(apache) would replace the original apache but instead the new version is in new place. How do I...

Configuring Apache to recognize PHP in Windows XP Home Edi.. - I have been trying for several weeks to get Apache to recognize PHP. The Apache itself was working fine, but when I tried to configure httpd.conf to tell Apache about the existence of PHP it 'hiccoughed'. At first I got a message about the following: ...

Starting Apache and Mysql server from shortcut/.bat-file (.. - I'm usign my computer mainly to graphic design, but use it occassionally in webdevelopment (Mysql+PHP). Now I'm wondering if it's possible to write a script that would start Apache and mysqld-nt with single click (using computer management > servic...

Apache proxy server returns empty file (file size 0) - Hi, I've a very strange problem. We have a proxy server that is used by an application to download XSD file. For performance reasons, we cache these files and force a fresh download every 24 hours. At some moment, the proxy server returns an empty file...

Access to remote file shares via Apache nad Oracle App Ser.. - Help please. I have apache web server from Oracle 9i application server. I am trying to add an alias which will access files on a remote file server. The Oracle HTTPSService (Apache Server Service) is running as a domain memebr account which has read..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]