Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for PHP

May 7, 2020

PHP Modules

Here are some missing PHP modules on my WordPress install.

apt install php-gd php-dom php-mbstring php-imagick php-zip

apt install php-gd php-dom php-mbstring php-imagick php-zip

Reboot Apache after the install.

systemctl restart apache2

systemctl restart apache2

March 2, 2020

List Available PHP Modules

Here’s how to list the available PHP modules.

apt-cache search php- | less

apt-cache search php- | less

To get details about a module.

apt-cache show php-curl

apt-cache show php-curl

To install a module.

apt install php-curl

apt install php-curl

Or install all modules.

apt install php*

apt install php*

Restart Apache after each install.

systemctl restart apache2

systemctl restart apache2

September 10, 2019

Phpinfo Blank Page

Here’s how to fix when phpinfo is displaying a blank page. The install is missing this php module.

apt install php libapache2-mod-php

apt install php libapache2-mod-php

Restart after install.

service apache2 restart

service apache2 restart

July 17, 2019

HTTPS in CodeIgniter

If you switched to HTTPS in Apache, make sure to update CodeIgniter’s config file.

vim /var/www/applications/config/config.php

vim /var/www/applications/config/config.php

Change the base URL to https.

$config['base_url']	= 'https://yourdomain.com/ci/';

$config['base_url'] = 'https://yourdomain.com/ci/';

March 18, 2019

CodeIgniter 2.1.3 on PHP7

If you’re still running older versions of CodeIgniter, here are a couple of tips to make it work with PHP7.

  1. Make sure to install all PHP tools and libraries that comes with PHP7. I was missing curl.
  2. Change your database driver from mysql to mysqli (application/config/config.php).
  3. Fix the /system/core/Common.php error or as some prefer, upgrade to a newer version.

Considering v2.1.3 is very old (currently 3.1.10) , I’m surprised it works with PHP7 with just a few modifications.

  • 1
  • 2
  • 3
  • …
  • 15
  • Next Page »
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021