CloudLinux PHP Selector on Cpanel Server
CloudLinux come with PHP Selector, this allow you to select differnt PHP versions. When you enable PHP selector, you should do the…
CloudLinux come with PHP Selector, this allow you to select differnt PHP versions. When you enable PHP selector, you should do the…
On CentOS 7 VestaCP install PHP 5.6 by default. This is very old version of PHP. To upgrade PHP to latest version…
I moved a web site to new dedicated server. But for some reason, php-fpm crashed. I increased the max_children settings, but it…
CentOS 8 comes with PHP 7.2. To install PHP 7.3, you need to enable remi repo. You can download remi-release rpm file…
This PHP script will redirect website visitors to HTTPS (SSL) URL. You can add this in your index.php of the website To…
To allow large file upload in PHP, you need to edit php.ini file and change fllowing settings memory_limit = 512M upload_max_filesize =…
To execure a system command on a server, use PHP exec function. For example
On Ubuntu, to execute .htm files as PHP, create file vi /etc/apache2/conf-enabled/php-html.conf Add following content SetHandler application/x-httpd-php This is similar code from…
When doing a database migration on Laravel, I get the following error This is because MariaDB uses a different UTF8 format. To…
Debian 9 come with PHP 7. To install PHP 5.6, run apt install apt-transport-https lsb-release ca-certificates -y wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg sh…