Skip to content

Instantly share code, notes, and snippets.

@clivewalkden
Created December 10, 2019 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clivewalkden/f105d9eda292b83114d929689c35cb44 to your computer and use it in GitHub Desktop.
Save clivewalkden/f105d9eda292b83114d929689c35cb44 to your computer and use it in GitHub Desktop.
Installation process for IonCube on CentOS 7
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.2.so

Installing IonCube on CentOS 7

Download the Loaders zip file for linux 64bit. Upload to the server and setup a nginx vhost for the domain (ion-vhost.conf).

Visit the http://ioncube.sozowebdesign.com/loader-wizard.php, this won't be able to do the install but will tell you what to do.

sudo cp /var/www/magento/ioncube/ioncube_loader_lin_7.2.so /usr/lib64/php/modules/
sudo chmod 755 /usr/lib64/php/modules/ioncube_loader_lin_7.2.so

Setup configuration for the PHP module (using 00-ioncube.conf)

sudo vim /etc/php.d/00-ioncube.ini
sudo systemctl restart php-fpm
server {
listen 80;
server_name ioncube.sozowebdesign.com;
root /var/www/magento/ioncube;
index index.php index.html index.htm;
autoindex off;
charset UTF-8;
# PHP entry point for main application
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_buffers 1024 4k;
fastcgi_param PHP_FLAG "session.auto_start=off \n suhosin.session.cryptua=off";
fastcgi_param PHP_VALUE "memory_limit=756M \n max_execution_time=18000";
fastcgi_read_timeout 600s;
fastcgi_connect_timeout 600s;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
gzip on;
gzip_disable "msie6";
gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/xml+rss
image/svg+xml;
gzip_vary on;
# Banned locations (only reached if the earlier PHP entry point regexes don't match)
location ~* (\.php$|\.htaccess$|\.git) {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment