Your message dated Thu, 02 Jun 2022 07:04:28 +0000 with message-id <[email protected]> and subject line Bug#834842: fixed in wordpress 6.0+dfsg1-1 has caused the Debian Bug report #834842, regarding wordpress: allow multiple wp instances in same webserver to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 834842: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=834842 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: wordpress Version: 4.5.3+dfsg-1 Severity: wishlist Dear Maintainer, Please accpet my contribution to the wordpress package. It allows users to select a wordpress specific configuration from the web server config file. The issue with the current wordpress configuration lookup is that it uses only the host name to perform lookup. This does not allow you to host multiple separate wordpress sites on the same domain/hostname. My solution adds a few lines to the config and enables users to select the wordpress config they wish to use by setting a CGI variable called 'WORDPRESS_CONFIG'. The solution should work with every web server that implements CGI specification [1]. I have included sample apache config option and wp-config.php updates. In apache vhost configuration you can set the configuration you wish to use with somethink like: ```` SetEnvIf Request_URI "^/blog/(.*)$" WORDPRESS_CONFIG=blog ```` ```` /* Look up a host-specific config file in * /etc/wordpress/config-<host>.php or /etc/wordpress/config-<domain>.php */ $debian_server = preg_replace('/:.*/', "", $_SERVER['HTTP_HOST']); $debian_server = preg_replace("/[^a-zA-Z0-9.\-]/", "", $debian_server); if (isset($_SERVER['WORDPRESS_CONFIG'])) { $debian_file = '/etc/wordpress/config-'.$_SERVER['WORDPRESS_CONFIG'] .'.php'; } else { $debian_file = '/etc/wordpress/config-'.strtolower($debian_server).'.php'; } ```` The above code will select configuration '/etc/wordpress/config-blog.php' if the request path starts with "/blog/". I believe the patch greatly enhances the flexibility of the package with just a few lines of code. It enables users to host multiple wordpress instances in the same virtual host configuration like: - example.com - example.com/blog - example.com/other-wp-site etc. [1] https://tools.ietf.org/html/rfc3875 [2] https://httpd.apache.org/docs/current/mod/mod_setenvif.html -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=ro_RO.UTF8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages wordpress depends on: ii apache2 [httpd] 2.4.23-4 ii ca-certificates 20160104 ii libapache2-mod-php 1:7.0+44 ii libapache2-mod-php7.0 [libapache2-mod-php] 7.0.9-2 ii libjs-cropper 1.2.2-1 ii libphp-phpmailer 5.2.14+dfsg-2 ii mysql-client 5.6.30-1 ii nginx-full [httpd] 1.10.1-1 ii php 1:7.0+44 ii php-gd 1:7.0+44 ii php-getid3 1.9.12+dfsg-1 ii php-mysql 1:7.0+44 ii php7.0 [php] 7.0.9-2 ii php7.0-gd [php-gd] 7.0.9-2 ii php7.0-mysql [php-mysqlnd] 7.0.9-2 Versions of packages wordpress recommends: ii wordpress-l10n 4.5.3+dfsg-1 ii wordpress-theme-twentysixteen 4.5.3+dfsg-1 Versions of packages wordpress suggests: pn mysql-server <none> ii php-ssh2 1.0+0.13-1 -- no debconf information
--- End Message ---
--- Begin Message ---Source: wordpress Source-Version: 6.0+dfsg1-1 Done: Craig Small <[email protected]> We believe that the bug you reported is fixed in the latest version of wordpress, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Craig Small <[email protected]> (supplier of updated wordpress package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Thu, 02 Jun 2022 16:37:59 +1000 Source: wordpress Architecture: source Version: 6.0+dfsg1-1 Distribution: unstable Urgency: medium Maintainer: Craig Small <[email protected]> Changed-By: Craig Small <[email protected]> Closes: 834842 Changes: wordpress (6.0+dfsg1-1) unstable; urgency=medium . * New upstream release * Added more suggestions for php modules * Update standards version to 4.6.1, no changes needed. * Allow WordPress config file to be defined Closes: #834842 Checksums-Sha1: 95bcab71742f8d15deb2b69d562360d63d7ac3c2 2380 wordpress_6.0+dfsg1-1.dsc 0a31b434cbda52e50177cf75030fd3c85a1e96dc 15479020 wordpress_6.0+dfsg1.orig.tar.xz 04c0b192e4e99e967a4c3ad1f6157abae1d1ef5f 6825320 wordpress_6.0+dfsg1-1.debian.tar.xz 78cb55fa1773a16b3127b8be4a2a04f15cc18d8d 7418 wordpress_6.0+dfsg1-1_amd64.buildinfo Checksums-Sha256: 0472b51858aeac75e30aae7b23a66b76971f666314cb36909ba1a599e1af786f 2380 wordpress_6.0+dfsg1-1.dsc 82e963f258dca2a34148236e1fccb2e6a26fb6c88382e20ff9747162b93fb7b0 15479020 wordpress_6.0+dfsg1.orig.tar.xz c7891f42ec1e9fa7057ae204df5f08e66cdf03e12eedc066d40139844c852d60 6825320 wordpress_6.0+dfsg1-1.debian.tar.xz 121056607b10e1dd9223afe31df206a807bf2c9c35a6b300ec925f7b6510008f 7418 wordpress_6.0+dfsg1-1_amd64.buildinfo Files: 3fceb0c4d43626e47d08e0b08c86013a 2380 web optional wordpress_6.0+dfsg1-1.dsc 8d2ea64d104a26db15fe2e98e0ca2fd0 15479020 web optional wordpress_6.0+dfsg1.orig.tar.xz 76eebfa31710cf3f0f8c2cbf71332321 6825320 web optional wordpress_6.0+dfsg1-1.debian.tar.xz 4413088635b21d4fe9389a52fe43b640 7418 web optional wordpress_6.0+dfsg1-1_amd64.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEXT3w9TizJ8CqeneiAiFmwP88hOMFAmKYW+8ACgkQAiFmwP88 hONGqA/6A0sX6acDuJIHcL5o4UgA4KoYBShEQLJjZU+NJTMsnbzZvYXNNlYcgPkc 7jxfR7WRqmU8OSvsi3lOyZjfOLYlMjGxd3lrUNbnQ318lg7fG9QE5cNW1sh3B15p ChU/JtXCzmzz/S2XLptQJN9RlM1l2jX8DGtDT71SJbWzCr1H6/Ho+f+EVdmVH3Yx GRiKyOcGgn8t40TZz0C0B+q58v1aWUbg7MuNO/6Ax4isrvTJpvqcgG26DK4+urSf 9Qn2Tfz8ny4aKO4A3q7m5wNHRgMcEKNB7kftNBxLmCCzbCmwNEod2g2a4njLYRxv OJRITZoIKaBg9o68Lt7OGStdUbBYdKQjSuJu2K5K8SxadXI4s0DPyb1eeN+y4KH5 i2a6u9aA7Kso4B2uuMrbMeCcHghexm73KDOdf7HD22u5ZvMZRWpT9iI5X2OTaJIL 9ZxNdPpiolbTZ/gacdwncz3I3DBtyXzWb5qU3NuiHgC4dOJZp94kLldbnSCcgonz I7J1GLb9WwNpYRpOYgxQXZDo/zPFt6eqQsDDybTOGOlMuknstGgnCEmtboKjYGoP 8xBBaE4+oeOdHiXSM9pwS7DfLbC02N7mAcvyodYT/VPhUWyNI94KYnlGT0ii/yI+ MZQdiU6e9CxLbAqbALA/cTqXv9Mtk9eWWkdg0RHj5qn11nVs1BM= =NYDj -----END PGP SIGNATURE-----
--- End Message ---

