Skip to content

https://frankenphp.dev/install.sh should ask whether the installation will be used to run Wordpress, and use saner defaults #2434

@glenstewart

Description

@glenstewart

Describe your feature request

Users trying to use Frankenphp to serve up Wordpress are having a steep learning curve. My personal experience is coming from a working Caddy installation - one would assume this would be somewhat easy, but it's not.

If install.sh was modified to ask whether the installation will be used to run Wordpress, some crucial settings could be set/suggested to ensure a better experience, so people are not turned off by FraknenPHP.

Suggestions:

Add this to a custom Wordpress site plugin:

add_filter('wp_image_editors', function($editors) {
return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');
});

Why?
//WordPress defaults to Imagick if the PHP extension is available. Imagick is notorious for causing segmentation faults under FrankenPHP's C-bindings (Go/CGO memory space allocations) when handling complex image types like webp or progressive jpegs. Force WordPress to use the standard, more stable GD library by adding this filter to your theme's functions.php file.

Set these settings in php.ini:

memory_limit = 512M
max_execution_time = 300
max_input_time = 300

Set these values in /usr/lib/systemd/system/frankenphp.service:

After=network.target network-online.target mariadb.service
User=www-data
Group=www-data
ReadWritePaths=/usr/share/wordpress/

A suggestion to install the following PHP modules:
apt-get install php-zts-gd php-zts-gettext php-zts-imagick php-zts-intl php-zts-mysqli php-zts-mysqlnd php-zts-pdo-mysql php-zts-pdo php-zts-zip

Finally, provide a link for basic instructions to modify the Caddyfile if they are transitioning from Caddy/PHP-FPM to Frankenphp.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions