How do I install different (upgrade or downgrade) PHP version in still supported Ubuntu release?


HP 7 provides 2x faster performance and 50% better memory consumption than PHP version 5.6. How do I install PHP 7 on Ubuntu Linux version 14.04 LTS server? How do I install PHP 7 with PHP-FPM in along with Nginx web server?

You need to install a PPA called ondrej/php. This allows you to co-install PHP versions 5.6 and 7.0. The latest

version of PHP 7 is 7.0.5 and you will learn how to install the same on Ubuntu 14.04 LTS


Configure a PPA for co-installable PHP 5.6 + 7.0

Type the following command:
$ sudo apt-get install -y language-pack-en-base
$ sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
$ sudo add-apt-repository ppa:ondrej/php
Sample outputs:

Fig.01: Configure a PPA for PHP 7.0 packages

Update the package index

To resynchronize the package index files from their sources, enter:
$ sudo apt-get update
Sample outputs:

List all PHP 7 packages

0 0

Hi there,

I already searched the forums and read all the threads referencing the problem, but found no solution yet.

I did a manual installation of Cacti on Ubuntu 16.04, since the apt-get version is 0.8.8f with some things not working.

apache 2, php7, mysql 5.7, snmp, snmpd and rrdtools 1.5.x installed with apt-get.
Followed the installationguide from cacti website. Installpath is /var/www/html/cacti

Skipped the database user step and used the mysql root user for connection to cacti database. Imported the cacti.sql without any problems after I fixed the sql-mode bug.

Now when I call the http://localhost/cacti there is only an empty page with no html source.

Did I miss anything?

Apache2 access log throws this - - [15/Jun/2016:19:58:42 +0200] "GET / HTTP/1.1" 500 364 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0" - -...

0 0

Please note: This works fine. But this package will also upgrade your apache to version 2.4 which has different config files than apache 2.2 and even deletes stuff, like /etc/apache2/sites-available/default when upgrading. This may result in a loss of your apache settings (vhost, mod_rewrite stuff etc.). Be aware of that ! This shit cost me a full weekend. This affects only upgrades, not fresh installs for sure. Update: This is a known bug (more here), I’ll keep this post updated…

How to install

There’s an excellent and (usually) hassle-free method to install the latest version of PHP5 (which is 5.5.3 when i’m writing this) with 3 simple bash commands:

1. Add this package-repository to your system. If Ubuntu says that you need to download a key first, then follow the instructions given in the notice.

sudo add-apt-repository ppa:ondrej/php5

If you get an error message now, then please do an update first and install the python-software-properties, that...

0 0

Updated: 14 August 2016 (PDT)


PHP versions supported

Magento requires:

Help if you're just starting out

If you’re new to all this and need some help getting started, we suggest the following:

Verify PHP is installed

To verify if PHP is installed already, enter php -v. If PHP is installed, messages similar to the following display:

PHP (cli) (built: Dec 21 2014 19:26:25) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies

If PHP is installed, continue with the next prerequisite, MySQL.

If PHP is not installed, see one of the following sections:

PHP 7.0 on Ubuntu 14 or 16

Enter the following commands in the order shown:

sudo apt-get -y update sudo add-apt-repository ppa:ondrej/php sudo apt-get -y update sudo apt-get install -y...
0 0
0 0

OK, I think I have a clue to what might be going on, but I have no idea how to fix it. What I have found is that from a command line I get this:


dev@dev-desktop:~$ php -info |more phpinfo() PHP Version => 5.2.17 System => Linux dev-desktop 2.6.32-35-generic #78-Ubuntu SMP Tue Oct 11 15:27:15 UTC 2011 i686 Build Date => Sep 22 2011 16:26:24 But from a browser I get this:

PHP Version 5.3.2-1ubuntu4.10
System Linux dev-desktop 2.6.32-35-generic #78-Ubuntu SMP Tue Oct 11 15:27:15 UTC 2011 i686
Build Date Oct 14 2011 23:57:47

What this tells me is that I have two different PHP instances running and, so, when I try to add pdo-oci to my install by the command line it goes to the wrong instance.

Does this make sense?

If not, what does?

If so, how do I "uninstall" the older one and get only one version on my machine? I have tried extensive searches on this forum and general Google...

0 0

The latest major release of PHP version 7.0 has been released with lots of speed optimizations and security. So you should try this version for your development. This tutorial will help you to install PHP 7.0, Apache >= 2.4.17, & MySQL 5.6 on Ubuntu 15.10, 15.04 & 14.04 LTS release. To setup LAMP stack on Ubuntu 16.04 LTS, visit our new tutorial below.

How To Install LAMP Stack on Ubuntu 16.04

For installHow To Install LAMP Stack on Ubuntu 16.04

Install PHP 7

First install python-software-properties package on your system which provides add-apt-repository command then use the following set of commands to add PPA for PHP 7 in your Ubuntu system and install it.

$ sudo apt-get install python-software-properties $ sudo add-apt-repository ppa:ondrej/php $ sudo apt-get update $ sudo apt-get install -y php7.0

Install Apache 2.4

After successfully installation, lets begin installing Apache 2.4. Use the following set of commands to...

0 0
0 0

SiteGround has implemented a unique server setup that allows each customer to choose which version of PHP to use for his / her account. What is more, the customer can even use different PHP versions for different directories in one and the same hosting account.

The PHP versions currently supported are: PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, and PHP 7.0.

It is really easy to change PHP versions for your website with a web hosting account with SiteGround. All you need to do is follow those step:

Log in to cPanel for your account Go to 1H Software section -> PHP Version Manager Navigate to the directory you would like to change the PHP version for (note that the change will apply to sub-directories for it as well) Click on the directory name Select the desired PHP version and click Save

That is all.

You can find detailed instructions how to manually change the PHP version for your account below:

Go to cPanel, File Manager and choose "Web Root...

0 0

Same error.

When I save and close the lsb-release file, I get the following errors

(gedit:5585): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

(gedit:5585): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.13TTHX': No such file or directory

(gedit:5585): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory

When I use 'echo' and then run sudo intel-linux-graphics-installer, I get the following errors

(intel-linux-graphics-installer:5573): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
diagnostics-view.c/new_diagnostic: Adding diagnostic for...

0 0
0 0

I am going toume everyone knows how to install there flasher. There are many guides on this already. If you do not know how to install your flasher correctly go here..// The Ultimate Fool Proof Guide: Ps3 hardware downgrading You Can Downgrade From all firmware versions. its the PS3 model that is .Microsoft’s Windows 10 ‘Redstone 2’ test build 14915 now available for PCs, phones. Microsoft has released Build 14915, its latest Windows 10 ‘Redstone 2’ test build .Asus released the new Android 4.2 to our beloved devices and you may be wondering how can you update if you are unlocked and how can you root it. Note: th.

2013-03-13 Asus released the new Android 4.2 to our beloved devices and you may be wondering how can you update if you are unlocked and how can you root it. Note: th.I am going toume everyone knows how to install there flasher. There are many guides on this already. If you do not know how to install your flasher correctly go here.


0 0
0 0

Ubuntu 16.04 comes with php 7.0, and some php applications might still fail with php 7.0 .Therefore, in some cases, it might be sensible to have both php 7.0 and php 5.x, so that you can choose which version to use for your needs at any time.

You can do so with:

xavi@computer# sudo su root@computer# add-apt-repository ppa:ondrej/php root@computer# apt-get update root@computer# apt-get install php7.0 php5.6 php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 libapache2-mod-php7.0 php5.6-curl php5.6-gd php5.6-mcrypt php5.6-xml php5.6-xmlrpc

Installing both php5.6 & php7.0 was clean in my case: no complain of issues, etc.

To switch from php 5.6 to php 7.0 you need to do two things:

# For php in web apps sudo a2dismod php5.6 && sudo a2enmod php7.0 && sudo service apache2 restart # For php-cli in the command line sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php

or from php7.0 to php5.6:

# For php in web apps sudo a2dismod php7.0 &&...
0 0

TL;DR: If you want to stay with php5, you will need to stay at Ubuntu 14.04 LTS

Using PHP 7.0 on Ubuntu 16.04 LTS

Ubuntu 16.04 has switched to PHP 7.0 with a new infrastructure for PHP package. So, no, you can't install php5 on Ubuntu 16.04, but you can install PHP 7.0 packages with:

apt-get install libapache2-mod-php

That will install a virtual package that depends on the latest PHP version and pull libapache2-mod-php7.0 as a dependency.

If you are looking for extensions, always use a version-less variant as well (e.g. php-apcu instead of php7.0-apcu) as the PECL extensions are packaged without the version to allow smooth upgrades.

Using PHP PPA to coinstall PHP 5.6 with PHP 7.0

There's an option to co-install PHP 5.6 packages using ppa:ondrej/php.

For more information, please see that answer:

Extracted from link above:

Assuming libapache2-mod-php is a suitable way to...

0 0

I realize this is an old question, but it's also pretty general without any details about the specific hardware involved. That said, you can't file a bug or go about fixing things until you figure out some more details.

I thought I'd take a stab at this since I faced the issue and recovered from it pretty recently. I'll probably run through here again later and throw in some more info and simplify the steps, but the answer list is already pretty big, so I'll go easy on the screenshots.

Recovery mode is your friend, but you don't always need a single-user root session to solve things. In fact, you might just be able to do a normal console login by selecting "resume" without considering any of the other options on the recovery menu. The nice thing about a normal console session over the single-user root mode is that you can get multiple terminals running at once--Switch between them or open up new ones with Alt+F1, Alt+F2, etc. There's a good chance that it's a video...

0 0

One of the great things about WAMP is that it allows you to easily switch between different versions of PHP. All you need to do is properly install the different versions of PHP for your machine. Here is how it’s done.

Download the zip file for the version of PHP for Windows that you wish to install.

Create a new folder in [path-to-wamp]/bin/php/php.#.#.# where [path-to-wamp] is the location that WAMP is installed on your machine and #.#.# corresponds to the version that you are installing, ie: c:/wamp/bin/php/php5.4.29

Extract the all files from your download to the new PHP directory you created in the previous step. That list of files should look similar to the ones captured in the screenshot below.

Copy the following files from your old PHP directory to your new PHP directory.

php.ini phpForApache.ini wampserver.conf

These files contain your PHP, Apache and WAMP configurations.

Open the php.ini and phpForApache.ini files in...

0 0

Based on the original article located here:

UniFi 3.1.3-beta release

NOTE: We do not recommend running this in a production environment. Make sure you do a backup, especially if you plan to upgrade your existing installation.

Release Notes

Starting from V3, UniFi controller will honor "Automatic Firmware Upgrade" settings. APs with incompatible versions will show up as "Connected (needs upgrade)" where no provision will be performed A new wireless uplink is introduced, you would need to upgrade the isolated/downlink AP first. See footnote 2 and 3 for voucher / portal customization See footnote 4 for API changes See v2->v3 Migration FAQ for more information.

New Features Introduced in V3

Multi-site management, read-only admin support

Instead of running multiple controllers, now you can use one controller to manage multiple sites. Each site has its own...
0 0

PHP 5.2 was sent to end of life in December of 2010, so while there's a small chance you might find a PPA or .deb file in some dark alley of the Internet, you're very likely going to have to compile it from source if you want it to run on Ubuntu 12.04. Additionally, it's possible you'll run into problems with dependencies (particularly if anything has changed their API), so keep that in mind.

That said, you can find the latest source for the PHP 5.2 series on their GitHub (I found the 5.2.17 tag for you), and compile it using make. The PHP site also offers information on compiling PHP. The required versions will be different, but it's typically a "this version or greater" unless you get into major release differences (1.0 to 2.0, for example).

As a side note, it might be worth putting pressure on the people that maintain your external application to upgrade to at least the 5.3 series, or better yet, the 5.4 series. There have been a ton of bug fixes and security...

0 0

These release notes for Ubuntu 14.04.5 (Trusty Tahr) provide an overview of the release and document the known issues with Ubuntu 14.04.5 and its flavors. For details of the changes applied since 14.04.4, please see the 14.04.5 change summary. The release notes for 14.04, 14.04.1, 14.04.2, 14.04.3, and 14.04.4 are available as well.

Support lifespan

Ubuntu 14.04 LTS will be supported for 5 years for Ubuntu Desktop, Ubuntu Server, Ubuntu Core, Kubuntu, Edubuntu, and Ubuntu Kylin. All other flavours will be supported for 3 years.

Official flavour release notes

Find the links to release notes for official flavors here.

Download Ubuntu 14.04 LTS

Images can be downloaded from a location near you.

You can download ISOs from: (Ubuntu Desktop and Server) (Ubuntu Cloud Server)

0 0
I am working on porting the latest upstream version and will update this post as things start working.

Things to do:

[DONE] Create boot image that boots into the Ubuntu Touch rootfs. [DONE] Create Android container started by Ubuntu. [WIP] Customize configurations and work on kernel and android system to make things work properly (e.g. audio). [TODO] Setup apparmor security. Testing, debugging and optimization...

Any help is welcome!

The information and images below are very out-of-date.

The port of Ubuntu Touch to our beloved TF300T is more or less working now.
Please see section "Known Issues" below.

And please read the instructions carefully, including the linked threads, before doing anything to your tablet that might result in a very expensive paper-weight.

Known Issues

Just listing major issues that are specific to the TF300T port.
This is not the place to discuss general issues with Ubuntu Touch.

Camera is broken....
0 0