Article ID: 126655, created on Aug 23, 2015, last review on Aug 23, 2015

  • Applies to:
  • Operations Automation 5.5

Symptoms

After LSH -> NG Migration several websites show 500 Internal error. There are no user-uploaded content for these websites in their respective directories in the webspace. All sites have Wordpress content management siteapp enabled.

error_log of the webspace is full of entries like that:

/var/www/vhosts/13/133329/webspace/siteapps/WordPress-4633/htdocs/wp-content/themes/test/.htaccess: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration, referer: http://domain.tld/

Cause

php_value directives are used in the .htaccess files. This directive is not supported by Fast-CGI/PHP-fpm which are used in NG hosting. Old mod_php supported that. It was dropped due to its incompatibility with MPM worker.

Resolution

Find the entries "php_value" in the site source code (most probably you will find them in wordpress .htaccess files) and comment the lines found:

find ./webspace/siteapps/WordPress* -iname ".htaccess" -exec grep -l "^php_value" {} \;
find ./webspace/siteapps/WordPress* -iname ".htaccess" -exec sed -i 's/^php_value/#php_value/g' {} \;

Search Words

LSH NG migration

500 internal error

php_value

poa-lshng-migration-5.5-28

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 5b048d9bddf8048a00aba7e0bdadef37 2554725ed606193dd9bbce21365bed4e

Email subscription for changes to this article
Save as PDF