Skip to content

Optimer Server Requirements ​

Before installing Optimer, make sure your server meets the following requirements.

Since Optimer is built with Laravel and JavaScript, basic knowledge of these technologies is recommended.

Important

The proc_open PHP function must be enabled on your server.

Server Requirements ​

  • Server Type: Linux / macOS / CentOS (VPS Recommended)
  • PHP Version: 8.1 or later
  • MySQL Version: 5.7 or later
  • BCMath PHP Extension
  • Ctype PHP Extension
  • Fileinfo PHP Extension
  • JSON PHP Extension
  • Mbstring PHP Extension
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • ZIP PHP Extension

Update your php.ini file with the following values:

ini
max_execution_time = 300
memory_limit = 128M
upload_max_filesize = 256M
post_max_size = 256M

Note

Optimer requires an HTTPS connection. If you're installing it on a local machine, SSL must be enabled.

Required Image Optimization Binaries ​

Optimer relies on several third-party binaries to optimize images.

Install the required packages for your operating system.

Ubuntu ​

bash
sudo apt-get install jpegoptim
sudo apt-get install optipng
sudo apt-get install pngquant
sudo npm install -g [email protected]
sudo apt-get install gifsicle
sudo apt-get install webp

macOS (Homebrew) ​

bash
brew install jpegoptim
brew install optipng
brew install pngquant
npm install -g [email protected]
brew install gifsicle
brew install webp

Fedora / RHEL / CentOS ​

bash
sudo dnf install epel-release
sudo dnf install jpegoptim
sudo dnf install optipng
sudo dnf install pngquant
sudo npm install -g [email protected]
sudo dnf install gifsicle
sudo dnf install libwebp-tools

Note

These optimization binaries are not supported on Windows or Windows Server.

© 2021-present NativeCode. All rights reserved.