• 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.

Question PHP 7 extensionless files

WebDataIntel

New Pleskian
I currently have a site using PHP 5.4.16 running as an FPM application.

In my htaccess file, I have the following

<Files brushes>
SetHandler php-script
</Files>

On the root directory of the site, brushes is a php file. This allows me to have URLs like www.test.com/brushes/artist-and-forensic-brushes and www.test.com/brushes/artist-and-forensic-brushes/feather-duster-forensic-brush

The brushes script parses the URL and loads a unique page without me having to use mod_rewrite or have a bunch of sub-directories on the server.

I would like to upgrade this site to use PHP 7. However, I cannot replicate this behavior. (I have tried everything I can think of) I am willing to use either PHP 7.0 or 7.1 and run it as a CGI application, FastCGI application, or FPM application.
 
Hi

On a blank site I just created a .htaccess file containing:

<Files brushes>
SetHandler php-script
</Files>

I then created a file called 'brushes' in the /httpdocs/ directory containing the following code:

<?php
echo "test123";
?>

If I then go to /brushes/something/else on the site this seems to work on all versions of PHP including 7.1 and the various webserver setups. To double check I removed the .htaccess file and it did indeed break it.

What actually goes wrong with your setup?

Is there anything in the error log?

If it possible something within your 'brushes' script doesn't work in PHP 7 rather than the PHP config itself?

Rob
 
Back
Top