• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

plesk 8.3, Alias forwarding, PHP problem

G

grim_reaper

Guest
Hi!

I have a little problem regarding php.
I want to create the following Alias:

www.domain.com/test --> that's the Alias I want to create
www.domain.com/gugu/gaga/gigi/test/index.php --> that's the location the Alias should take me

I therefore edited the httpd.conf in /etc/apache2/ and added the following Line:
Alias /test /srv/www/vhost/domain.com/gugu/gaga/gigi/test/index.php

The thing is, the Alias works, but for some reason php does not!
When I type in www.domain.com/test the Browser asks me if I want to download the file.
When I do the same thing, but use a index.html file insted a *.php file, the Alias works perfectly.

Can anyone tell me what my problem could be???
 
So were you able to figure out what was causing that? I am having a similar problem with my new install.

Debian 4.0
php 5.2.0-8
apache2

When I try to pull up php pages on any site I get a download prompt.
 
I know this is an OLD thread, but there are only two in this whole forum it seems with people that have asked about this, and no answer.

In the vhosts.conf file of domainB.com I tried to simply add:
Alias /includes/folder /var/www/vhost/domainA.com/httpdocs/includes/folder

and I got the exact same problem. HTML will display fine, but PHP will not parse. I've tried every combination of adding "AddType application/x-httpd-php .php" and everything else I could to no avail.

It simply pops up a dialog box and anyone can save and view my php source code!

Wow.
 
I ended up just running the auto installer and switching between php 4 and 5. Then reloading apache to see the changes. I also had to clear some browser cache to get my browser to stop prompting the downloads.

/usr/local/psa/bin/autoinstaller
 
Forgive the ignorance, but since I'm already running PHP 5.2 (or 3 can't remember) what would the autoinstaller do exactly? I'm *kind of* afraid of running anything that could potentially brick a live machine, lol.
 
Back
Top