Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-05-27 07:24:15

Gallex
Member
Registered: 2006-10-08
Posts: 1,292

PHP SAPI support

i received mail from my host. do i need to do something?

Dear Web Hosting client,

This technical notice does not require any action on your part, but please do forward it to technical webmaster.

We are removing support of PHP SAPI from our Shared Hosting platform on May 30th and as some websites might still contain un-used configuration settings that could cause errors, we will scan all servers and neuter specific lines.

There is no need for action on your part as the process has been automated and it will not cause downtime.

Our preliminary scan has found the deprecated settings in file(s):

  • jelena.ee/vana/ru/.htaccess

Technical summary: settings for PHP SAPI (mod_php) were usually specified in .htaccess file using php_value and php_flag directives. Removal of mod_php will make these syntactically invalid and cause Error 500, unless they have been correctly enclosed in … . We will scan all the servers for non-enclosed directives and add the correct IfModule. You can also remove the lines (or enclose in IfModule) yourself before 30th of May.

Note to developers – please ensure, that the same change is done also in .htaccess files in code repository, or your next deployment may cause unexpected results. If you need to change PHP settings for application: please use .user.ini (https://secure.php.net/manual/en/configuration.file.per-user.php) .

Offline

#2 2018-05-27 20:12:19

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,609
Website

Re: PHP SAPI support

Perhaps you can post the contents of your htaccess file here and people may then be able to identify what might be problematic. Likely problem candidates might be php_flag and php_value. Neither of those, I believe, are needed by Textpattern.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2018-05-29 07:53:30

Gallex
Member
Registered: 2006-10-08
Posts: 1,292

Re: PHP SAPI support

jakob wrote #312132:

Perhaps you can post the contents of your htaccess file here and people may then be able to identify what might be problematic. Likely problem candidates might be php_flag and php_value. Neither of those, I believe, are needed by Textpattern.

here we go:

#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default

<IfModule mod_rewrite.c>
	RewriteEngine On
	#RewriteBase /relative/web/path/

	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.+) - [PT,L]

	RewriteCond %{REQUEST_URI} !=/favicon.ico
	RewriteRule ^(.*) index.php

	RewriteCond %{HTTP:Authorization}  !^$
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0

# SVG
AddType image/svg+xml  svg svgz
AddEncoding gzip       svgz
RewriteCond %{HTTP_REFERER} semalt\.com [NC]

RewriteRule .* – [F]

RewriteCond %{HTTP_REFERER} ([^.]+)\.semalt\.com [NC]

RewriteRule .* – [F]

Offline

#4 2018-05-29 10:19:07

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,609
Website

Re: PHP SAPI support

Well, there is one instance of php_value in your .htaccess file but it is commented out, so that won’t be a problem. You could simply remove that line altogether.

But I don’t have any in-depth knowledge of this, so you may want to wait and see if someone can give you a more expert reply.


TXP Builders – finely-crafted code, design and txp

Offline

#5 2018-05-29 10:34:18

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,144
GitHub

Re: PHP SAPI support

register_globals was deprecated in PHP 5.3 and removed in PHP 5.4.

As jakob said, it is currently commented out, and if your site functions OK right now, it’s safe to remove that line.

I think the hosting company was scanning for any instance of php_value, regardless of whether it was commented out.

gallex: kustuta see rida: #php_value register_globals 0

Offline

#6 2018-05-29 10:41:22

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: PHP SAPI support

@gaekwad

Can you raise an issue in GitHub to remove that line entirely in Textpattern 4.8? No reason to keep it when our minimum PHP will be 5.5. Cheers!

Offline

#7 2018-05-29 10:44:33

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,144
GitHub

Re: PHP SAPI support

philwareham wrote #312164:

Can you raise an issue in GitHub to remove that line entirely in Textpattern 4.8? No reason to keep it when our minimum PHP will be 5.5. Cheers!

It’s already zapped (July 2017) – that .htaccess is from 4.6.2 by the looks of things.

Offline

#8 2018-05-29 11:49:14

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: PHP SAPI support

Ah, OK, thanks!

Offline

#9 2018-05-29 12:40:23

Gallex
Member
Registered: 2006-10-08
Posts: 1,292

Re: PHP SAPI support

gaekwad wrote #312165:

It’s already zapped (July 2017) – that .htaccess is from 4.6.2 by the looks of things.

actually even from 4.5.7. ;)
and PHP 5.2.17

thank’s guys!

Offline

#10 2018-05-29 12:43:41

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,144
GitHub

Re: PHP SAPI support

Gallex wrote #312170:

actually even from 4.5.7. ;)

Wow! A vintage Textpattern!

Offline

Board footer

Powered by FluxBB