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
CentOS 7 VestaCP Upgrade PHP to 7.x
On CentOS 7 VestaCP install PHP 5.6 by default. This is very old version of PHP. To upgrade PHP to
PHP Script to monitor Apache/php-fpm
I moved a web site to new dedicated server. But for some reason, php-fpm crashed. I increased the max_children settings,
Install PHP 7.3 in CentOS 8
CentOS 8 comes with PHP 7.2. To install PHP 7.3, you need to enable remi repo. You can download remi-release
Redirect a site to HTTPS using PHP
This PHP script will redirect web site visitor to HTTPS (SSL) url. You can add this in your index.php of
Large file upload in PHP
To allow large file upload in PHP, you need to edit php.ini file and change fllowing settings If you have
PHP running system commands with exec
To execure a system command on a server, use PHP exec function. For example See php
phpstrom
Installing PhpStorm on Ubuntu
Run .html files as PHP in Apache
On Ubuntu, to execute .htm files as PHP, create file Add following content This is similar code from your PHP
Laravel Database Migration Error Key too long
When doing a database migration on Laravel, i get following error This is because MariaDB use different UTF8 format. To
PHP Script to List Enabled Extensions
Create a php script with following content See php
Install PHP 5.6 on Debian
Debian 9 come with PHP 7. To install PHP 5.6, run Install PHP 5.6 with Enable SimpleXML module Install php-fpm