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