• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Possible Bug: .php files in aliased path's are not executed...

neutron

New Pleskian
Hi there,

Trying my best to explain what i mean. First of all, normal websites function properly, whatever php version and settings i choose, works perfect. When i'm inserting additonal directives for a vhost, in this case an alias for a application, as example (example.com/index.php works normally):

Code:
Alias /webaccess /usr/share/webaccess

<Directory /usr/share/zarafa-webaccess/>
    DirectoryIndex index.php
    Options -Indexes +FollowSymLinks
    AllowOverride Options

    <IfModule !mod_authz_core.c>
      Order allow,deny
      Allow from all
    </IfModule>
    <IfModule mod_authz_core.c>
      Require all granted
    </IfModule>
</Directory>

This would lead to the url example.com/webaccess.

The strange part, while example.com/index.php works as normal, example.com/webaccess downloads the index.php which is in "/usr/share/zarafa-webaccess/". It's like PHP is completely disabled in this aliased location, but WHY ? What i'm overseeing here ? I know that worked before, but now with this fresh install of CentOS 7 and Plesk i have this behaviour.

Any help would be really nice.

regards,

Markus
 
You didn't add a handler for PHP.

In plain English: In this section, Apache doesn't know what to do with a PHP file, so it treats it just like any other file. PHP files are processed server side, and output (mostly) HTML after execution.
 
Since when do i need to do this ? On my old Server, also using Plesk 12.5 but CentOS 6 this worked out of the box without adding an extra handler. This information is just set up in the vhost.conf and/or vhost_ssl.conf so it should use the php version/handler that is already set up for the whole domain, we are just talking about an alias with another location, but still using the same domain.

So, the only difference is CentOS 6 with Apache 2.2, vs CentOS with Apache 2.4
 
BTW, IF i supply a handler (which can't be the way) i get "No Input File specified.". There's something wrong for sure.
 
Back
Top