Apache and PHP configuration issues

This is a discussion on Apache and PHP configuration issues within the Apache Web Server forums, part of the Web Server and Related Forums category; Hey everyone, I'm run a server with several domains on it and am wanting a php app to be ...


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 03-22-2006
Jacob Bolton
 
Posts: n/a
Default Apache and PHP configuration issues

Hey everyone,

I'm run a server with several domains on it and am wanting a php app to
be available centrally to different virtual domains. I'm basically
wanting to do something similar to the following in my Apache config file:

Alias /myPHPapp "/home/httpd/vhosts/www/myPHPapp"

However, when I implement this and try to call any of the files on the
domain, it tries to download the php file instead of execute it. I'm a
newb when it comes to this kind of stuff. Thanks in advance!

Jacob
  #2 (permalink)  
Old 03-22-2006
valoo
 
Posts: n/a
Default Re: Apache and PHP configuration issues

On Wed, 22 Mar 2006 13:30:25 -0600, Jacob Bolton wrote:

> Hey everyone,
>
> I'm run a server with several domains on it and am wanting a php app to
> be available centrally to different virtual domains. I'm basically
> wanting to do something similar to the following in my Apache config file:
>
> Alias /myPHPapp "/home/httpd/vhosts/www/myPHPapp"
>
> However, when I implement this and try to call any of the files on the
> domain, it tries to download the php file instead of execute it. I'm a
> newb when it comes to this kind of stuff. Thanks in advance!
>
> Jacob

Hi,

First did you Add the PHP Module in your configuration file ?
if yes, you just have to add this directive in your
httpd.conf :
AddType application/x-httpd-php .php3 .php4 .php

With that the PHP pages will be parsed.


Hope this helps


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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 01:44 AM.


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