location = /phpthumb {
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME /srv/http/example.com/vendor/x-yuri/phpthumb-laravel/phpthumb-github/phpThumb.php;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
}
# to check configuration (for development only)
location = /phpthumb-check {
include fastcgi.conf;
fastcgi_param SCRIPT_FILENAME /srv/http/example.com/vendor/x-yuri/phpthumb-laravel/phpthumb-github/demo/phpThumb.demo.check.php;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
}
Give php permissions to create and write to cache directory.
Check the configuration. Comment out line 17 in vendor/x-yuri/phpthumb-laravel/phpthumb-github/demo/phpThumb.demo.check.php, and open your browser at /phpThumb.demo.check.php.
Ignore "phpThumb.config.php" version does not match phpThumb version error. It's the way it is in this release.
x-yuri/phpthumb-laravel
phpThumb() - The PHP thumbnail generator
Installation
Install the package:
Register
phpThumb
's provider (config/app.php
):Publish config:
Set
high_security_password
inconfig/phpthumb.php
, and possibly other options:nginx
settings:Give
php
permissions to create and write to cache directory.Check the configuration. Comment out line 17 in
vendor/x-yuri/phpthumb-laravel/phpthumb-github/demo/phpThumb.demo.check.php
, and open your browser at/phpThumb.demo.check.php
.Ignore
"phpThumb.config.php" version does not match phpThumb version
error. It's the way it is in this release.Usage
For more information see the readme.
Links
Home page