- Plesk for Linux
Note: This article has the reference to the issue with the fix available:
- #EXTWPTOOLK-2210 "Certain security measures no longer add incorrect directives to the Apache config file if the target WordPress instance contains a space in its path."
- WordPress Toolkit 3.5.3 11 December 2018
The following error is shown in Plesk interface:
PLESK_ERROR: Unable to configure a web server on the host <example.com>
Unable to generate the web server configuration file on the host <example.com> because of the following errors:
Template_Exception: AH00526: Syntax error on line 147 of /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf:
RewriteCond: bad flag delimiters
Please resolve the errors in web server configuration templates and generate the file again.
Upon accessing domains hosted on the server, the "Default Server Page" is shown.
One of the WordPress instances is installed in the subdirectory containing space, e.g.
WordPress toolkit bug EXTWPTOOLK-2210, which will be fixed in future product updates.
Until a fix became available, remove all spaces in paths to the folders to WordPress instances:
Access the file manager for the domain shown in the error message: Domains > example.com > /httpdocs.
Rename the folder containing a WordPress installation, removing the space.
Connect to the server via SSH.
Rebuild Apache configuration:
# plesk repair web -y
Note: in order to make sure that the issue will not reoccur, it is possible to disable WordPress Toolkit until the bug is fixed:
# plesk bin estension --disable wp-toolkit # to disable
# plesk bin estension --enable wp-toolkit # to enable it back once the issue is fixed