• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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