How-to Install PHP 7 on a Raspberry Pi

This short guide describes how to install PHP 7 on a Raspberry Pi running Raspbian Linux as operating system.

Edit the apt sources list, /etc/apt/sources.list
sudo nano /etc/apt/sources.list

Add the following lines to the file:

deb jessie-backports main contrib non-free
#deb-src jessie-backports main contrib non-free

Run the following commands in the terminal. You need superuser (root) access.

gpg --keyserver --recv-key CCD91D6111A06851
gpg --armor --export CCD91D6111A06851 | sudo apt-key add -
apt-get update
apt-get install php7.0 php7.0-curl php7.0-gd php7.0-imap php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-xmlrpc

And if you want to install Apache 2 + mod_php:
apt-get install apache2 libapache2-mod-php7.0

Bumping minimum WordPress Version

This week I`ve been updated the readme of all my WordPress plugins.
All have been tested and should be fully compatible with WordPress 4.0 and 4.1. The readme.txt will now require atleast WordPress 3.9
Later this month, when WordPress 4.1.1 arrives, I will update this to 4.0!

Don`t worry, the PHP and MySQL requirements stay the same for now.

Amazon EC2 Linux as LAMP server

The following guide demonstrates how to install

  • Apache Webserver 2.4
  • PHP 5.4
  • MySQL Server 5.5 (Community Edition)

Step 1: install Apache, PHP, MySQL

sudo yum install -y httpd24 php54 mysql55

Step 2: start the services

sudo /etc/init.d/mysqld start
sudo /etc/init.d/httpd start

Step 3: make sure services start after a reboot

sudo chkconfig --level 2345 httpd on
sudo chkconfig --level 2345 mysqld on

How-To Fedora 20 LAMP installation

This short guide demonstrates how to setup Fedora 20 as a LAMP server containing Apache, PHP, Perl, Python, Ruby and MySQL.

You have to use the shell and be able to use the machine as  root.

Start the terminal and run:

sudo yum install -y httpd php php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-magickwand php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy php-mysql php-odbc php-pear php-mhash curl perl-libwww-perl ImageMagick libxml2 php-pecl-apc mysql mysql-server phpmyadmin ruby mod_python perl mod_perl perl-HTML-Parser perl-DBI perl-Net-DNS perl-Digest-SHA1 perl-ExtUtils-AutoInstall perl-NetAddr-IP perl-Archive-Tar

Second step is to enable the Apache Webserver and MySQL Database server;

sudo systemctl enable httpd.service sudo systemctl start httpd.service sudo systemctl enable mysqld.service sudo systemctl start mysqld.service sudo mysql_secure_installation