Install ionCube Loader on a CentOS 7 Rumi, December 8, 2019 1. Log in to your CentOS 7 VPS via SSH as user root # ssh root@IP_Address and update all installed services # yum update 2. Run the ‘arch’ command in the terminal to check if your system is 32-bit (i686) or 64-bit (x86_64) # arch x86_64 3. In our case… Continue Reading
PHP Session test Script Rumi, May 6, 2018May 6, 2018 I’ve just found a quality script to test php session- unless you’re in dark after some php.ini session tweaking done. To check if sessions really work you can use this code: <?php // Start Session session_start(); // Show banner echo ‘<b>Session Support Checker</b><hr />’; // Check if the page has… Continue Reading
Hiding Apache and PHP Server Signature Rumi, March 20, 2017March 26, 2017 Revealing web server signature with server/PHP version info can be a security risk as you are essentially telling attackers known vulnerabilities of your system. Thus it is recommended you disable all web server signatures as part of server hardening process. Disable Apache Web Server Signature Disabling Apache web server signature… Continue Reading
Remove apache, phpmyadmin etc from ubuntu 16.04 Rumi, February 4, 2017 You can remove the packages in Ubuntu by executing the commands: dpkg –purge phpmyadmin dpkg –purge mysql-server dpkg –purge apache2.2-common Or You have option also to remove the following packages: sudo apt-get remove apache2* sudo apt-get remove phpmyadmin sudo apt-get remove mysql-server sudo apt-get remove php5 Or sudo apt-get –purge… Continue Reading
Install ioncube on Linux server Rumi, July 14, 2016 Begin by downloading the latest loaders to your computer from http://www.ioncube.com/loaders.php Extract the contents of the archived file on your local PC to a folder of your choice. Upload the folder IONCUBE via FTP to your domain webspace Now establish an SSH connection with server using a suitable client (e.g…. Continue Reading
Increase file upload size limit in PHP-Nginx Rumi, June 9, 2014 To change max file upload size to 100MB Edit… vim /etc/php5/fpm/php.ini Set… upload_max_filesize = 100M post_max_size = 100M Continue Reading
Update PHP 5.1 to PHP 5.4 in CentOS Rumi, June 6, 2014 Update Yum repos For 32 bit CentOS- wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm For 64 bit CentOS- wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm Now it’s time to update our PHP to the latest one yum –enablerepo=remi update php php-* /etc/init.d/httpd restart And that’s it! You can check your installed PHP version executing: php… Continue Reading
Ozeki PHP Plugin Rumi, June 6, 2014 <?php $gatewayURL = 'http://192.168.1.100:9333/ozeki?'; $request = 'login=sendmail'; $request .= '&password=mypassword'; $request .= '&action=sendMessage'; $request .= '&messageType=SMS:TEXT'; $request .= '&recepient='.urlencode('01711673093'); $request .= '&messageData='.urlencode("PHP Hello World"); $url = $gatewayURL . $request; //Open the URL to send the message file($url); ?> Continue Reading
Update PHP 5.4 on Debian 6 Squeeze Rumi, June 6, 2014 Set up Dotdeb First add Dotdeb to your Apt sources: sudo vim /etc/apt/sources.list /etc/apt/sources.list deb http://packages.dotdeb.org squeeze all deb-src http://packages.dotdeb.org squeeze all deb http://packages.dotdeb.org squeeze-php54 all deb-src http://packages.dotdeb.org squeeze-php54 all Save & Exit. Now go for the next- Continue Reading
Install Phalcon framework in Debain 6/7 Rumi, June 6, 2014 This repo can be used additionally to the squeeze-php54 repo of dotdeb.org. Add the following into /etc/apt/sources.list deb http://debrepo.frbit.com/ frbit-squeeze main Add the key, update apt and install packages wget -O – http://debrepo.frbit.com/frbit.gpg | sudo apt-key add – aptitude update aptitude install php5-igbinary php5-mongo php5-oauth php5-phalcon php5-runkit php5-stats php5-stomp php5-yaf… Continue Reading