Posts

Showing posts with the label php

increase local php memory limit

  Local Value check htacess ## adjust memory limit     php_value memory_limit 2048M     php_value max_execution_time 18000

Install Multiple PHP Versions on Ubuntu

Install PHP 5.6 Step 1: Update Apt-Get As always, we update and upgrade our package manager before beginning installation. If you are currently running PHP 7.X, after updating apt-get, continue to step 2 to downgrade to PHP 5.6. apt-get update && apt-get upgrade Step 2: Install PHP 5.6 Install the PHP5.6 repository with these two commands. apt-get install -y software-properties-common add-apt-repository ppa:ondrej/php apt-get update apt-get install -y php5.6 PHP Version for Apache Step 3: Switch PHP 7.0 to PHP 5.6 Switch from PHP 7.0 to PHP 5.6 while restarting Apache to recognize the change: a2dismod php7.0 ; a2enmod php5.6 ; service apache2 restart   Note Optionally you can switch back to PHP 7.0 with the following command: a2dismod php5.6 ; a2enmod php7.0 ; service apache2 restart   Now, let’s verify that PHP 5.6 is running on Apache by creating a PHP info page. To do so, insert the code below into a file named  phpinfo.php and upload it to the  /var/www/h...

PHP memory limit and upload limit

To increase the PHP memory limit and upload limit, change these lines in PHP.ini memory_limit = 256M upload_max_filesize = 12M post_max_size = 13M file_uploads = On max_execution_time = 180

PHP Fatal error: Allowed memory size of 157286400 bytes exhausted diractadmin

PHP Fatal error:  Allowed memory size of 157286400 bytes exhausted diractadmin Loaded Configuration File /usr/local/lib/php.ini memory_limit 199M

php repo mangement

/etc/yum.repos.d/ you will have all the list of repo that is added to the system  to enable a package just vi that repo name like  vi remi.repo just change enabled=1 1 means enabled and 0 means disabled to check the packages that are currently enabled  just do yum repolist or dnf repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink                                                             | 5.9 kB  00:00:00       * base: mirrors.praction.in  * epel: repos.del.extreme-ix.org  * extras: mirrors.praction.in  * remi: rpms.remirepo.net  * remi-php73: rpms.remirepo.net  * remi-safe: rpms.remirepo.net  * updates: mirrors.praction.in base        ...

Install ionCube Loader on a CentOS 7

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 the system is 64-bit and we will download the 64-bit version of ionCube Loader # wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz 4. If your system is 32-bit download the following archive # wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz 5. Once it is downloaded, unpack the tar archive # tar xfz ioncube_loaders_lin_x86-64.tar.gz The ionCube Loaders for all PHP versions will be extracted in a new ‘ioncube’ directory. 6. We need to know the PHP version installed on the server. We can find out using the following command # php -v PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.4.0, Copyright (c) ...

PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 change in /etc/php.ini upload_max_filesize = 150M post_max_size = 150M

Error: Package: php-mcrypt-7.1.27-1.el7.remi.x86_64 (remi-php71)

Error: Package: php-mcrypt-7.1.27-1.el7.remi.x86_64 (remi-php71)            Requires: php-common(x86-64) = 7.1.27-1.el7.remi            Installed: php-common-7.2.16-1.el7.remi.x86_64 (@remi-php72)                php-common(x86-64) = 7.2.16-1.el7.remi            Available: php-common-5.4.16-46.el7.x86_64 (base)                php-common(x86-64) = 5.4.16-46.el7            Available: php-common-7.1.26-1.el7.remi.x86_64 (remi-php71)                php-common(x86-64) = 7.1.26-1.el7.remi            Available: php-common-7.1.27-1.el7.remi.x86_64 (remi-php71)                php-common(x86-64) = 7.1.27-1.el7.remi  You could try using --skip-broken to work around the problem ...

How to Install LAMP server in ubuntu through terminal

Image
how    to install php , mysql and Apache server LAMP L-linux(probably you already having linux) A-Apache M-mysql p-php Installing LAMP On Ubuntu In this guide I will show you how to install a LAMP system. LAMP stands for Linux, Apache, MySQL, PHP. The guide is intended to help those who have very little knowlegde of using Linux. Install Apache To start off we will install Apache. Open up the Terminal (Applications > Accessories > Terminal). (Ctrl+T also works) Copy/Paste the following line of code into Terminal and then press enter: sudo apt-get install apache2 The Terminal will then ask you for you're password, type it and then press enter. Testing Apache To make sure everything installed correctly we will now test Apache to ensure it is working properly. Open up any web browser and then enter the following into the web address: http://localhost/   if this page opens it means apache is installed and working proper...