All-in-one PHP bundle for Ubuntu - php

I need to deploy Zend Framework app on Ubuntu.
I've downloaded Ubuntu desktop, installed using apt-get apache+php+mysql,
but PHP turned out to be not the latest 5.3, but 5.2.1 and even
mysql extension is missing.
I understand I can get somewhere a fresh php installation, get dependent libs (like curl or libxml2) compile them one by one and then I get full-features latest PHP bundle.
But is there anywhere already full PHP bundle with latest version and all libs to get
ZF app running very quickly?

One of the downsides of package management is that you're at the mercy of the package maintainers. Ubuntu has opted not to update to PHP 5.3 in this version, so you'll have to either wait until 2010 for it or compile PHP yourself.

Most of the PHP extensions that arent in a default source build directly from PHP are in seperate apt packages. If you do a search for PHP5 in you package manager youll see packages like:
PHP5
PHP5-Mysql
PHP5-cli
PHP5-SQLite
etc..
Im going to assume that there are also packages specifically for php 5.3 - most likely labeled as php53-* or something similar. You may need to adda repo for this as im not sure its in the crore repos.
Anyhow you need to isntall all these packages that you need to use.

I ran into similar issues getting the latest PHP on my CentOS server. I installed Zend Server Community Edition, which sets up it's own Apache/PHP5.3 stack in /usr/local/zend. And here's a Getting Started article.
It's a full PHP bundle.

If you need other packages for Ubuntu, check the ubuntu repository for PHP5 at http://bg.archive.ubuntu.com/ubuntu/pool/main/p/php5/

Related

Error in installing Symfony4

I am new to Symfony skeleton. Can anyone please help to get out from this error for installation of Symfony? I had searched a lot on the internet but cannot find any working solutions. Composer is working well. I am using PHP7 and XAMP server.
Error is Could not find package Symfony/skeleton with stability Stable in a version installable using your PHP version 7.0.2.
Cerad's answer is correct. Please check Requirements for Running Symfony
It states the following:
Symfony 4.0 requires PHP 7.1.3 or higher to run, in addition to other minor requirements.
If you have to live with php7.0, you are able to install the symfony demo project via symfony installer, see how to install symfony installer for sf3.4.
After you have installed sf installer, you can install the demo project with old symfony version by doing:
$ symfony new blog 3.0.1
As mentioned by Cerad, you need have php7.1 or newest php version to install latest symfony demo project. But you can also have a try to install the demo project with older version by doing:
$ composer create-project symfony/website-skeleton:3.3
you can find the the release version which you need here
You just need to change your Php version from 7.02 to upper version.
I had the same issue, my path variable was pointing at php7.0., change it to php7.2. and the problem solved immediatly.
Important : Don't forget to restart you terminal.
I had a similar problem not being able to find 4.4 without php version part.
In case some one comes in contact with this (As I did), installing Symfony CLI and using it instead of direct composer, might solve the problem.
I was actually able to install Symfony 4.4 project as below
composer create-project symfony/website-skeleton:"^6.0" yourProjetName
try to specify the version 6.0
It solved my problem
I encountered this error while installing Symfony Demo App (Symfony 6). If your PHP runtime has passed symfony check:requirements, you may want to enable PDO-SQLite PHP extension or other project requirements such as the supported PHP version - Symfony Demo's Requirements.
Assuming that OP's goal is to setup and install Symphony, according to Synfony's Official Docs there are various ways one can go about doing it.
First of all, make sure one is satisfying all the requirements. For my example I will be using the most recent versions of Symphony and PHP:
Install PHP 8.1 or higher and these PHP extensions (which are
installed and enabled by default in most PHP 8 installations): Ctype,
iconv, PCRE, Session, SimpleXML, and Tokenizer;
Install Composer, which is used to install PHP packages.
Optionally, you can also install Symfony CLI. This creates a binary called symfony that provides all the tools you need to develop and run your Symfony application locally.
In this case, it seems that OP has already installed both PHP and composer, however OP might have to update the PHP version (as Cerad mentioned).
Now, depending on one's goals, there are different ways to move one:
If one is building a traditional web application open the CMD or Git Bash, and run
composer create-project symfony/skeleton:"6.1.*" my_project_directory
Then
cd my_project_directory
And
composer require webapp
If one is building a microservice, console application or API, then open the CMD or Git Bash and run
composer create-project symfony/skeleton:"6.1.*" my_project_directory
Notes:
In both cases, by specifying the version shouldn't give us the error that OP is facing.
If error keeps on appearing, would recommend using CMD or Git Bash as I've tried here and worked fine with both.
you forgot to specify the installation folder. Use a dot to install in the current folder.

How to install a right version phpmyadmin on Centos 6.9 accordingly?

I am moving a Magento 1.8 web to a lower cost hosting and exhausted by phpmyadmin installation.
Magento 1.8 was suggested to run with PHP 5.4 and Mysql 5.5, therefore, I chose a Centos6.9 image and thought could be easier...The LAMP stack installation is smooth, but always got problem with phpmyadmin. I have tried PHP5.4 + Mysql5.5, PHP5.4 + Mysql5.6, PHP5.5 + Mysql5.6 combinations, none of them turn out success...
Most of online blogs suggest same way to install phpmyadmin which I followed as below:
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
or
rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
then
yum install phpmyadmin
I thought the EPEL package will be able to automatically identify php modules already installed and install the right version phpmyadmin accordingly...
instead it seems stick with php 5.3 which is default php version with Centos 6....here is error message:
the list is very long and involved many php modules...
I am kind of newbie with linux server stuff...Can anyone help to address this issue and point a solution out? thank you in advance.
BTW, I am big fan of open source, but from this point, I feel a bit disappointed to open source products...especially when end user need to work with multiple of them together...it can never be said as user-friendly.
If you have the Remi repo installed you should be able to use:
yum install phpmyadmin --enablerepo=remi-php56
You have php 5.4.45 installed from remi-php54, so you need to enabled this repository to install any additional module.
As explained by the Wizard.
Please note than PHP 5.4 and 5.5 are not maintained anymore, so I hearthly recommend to upgrade to a supported release (5.6 or more recent)
P.S. phpMyAdmin in EPEL is quite old (4.0) but suitable for old PHP versions. For more recent version of PHP (5.6, 7 and up), you probably need the latest phpMyAdmin version 4.7 (which is available in "remi" reposotiry)

install old php extension ubuntu 14.04

I want to install the phpmotion on Ubuntu 14.04. I need to use it for php 5.3, and older. I did the PHP installation package but I can not attach extensions. How can I do?
I'm unsure how to get an old copy of PHP 5.3 except from compiling it yourself; it's past end of life so you might be better off finding a newer library than risking the security of your entire application.
The Ondřej Surý PHP 5.4 repo is your best bet to get an older version, though it's one ahead of the version you suggest.

Google V8 Javascript Engine, Ubuntu and PHP - how to get it built and working?

some help would be much appreciated here.
I am running Ubuntu 10.04, I want to use the V8 Javacript engine inside PHP. Has anyone managed to do this yet?
So I installed libv8-2.0.3, libv8-dbg, libv8-dev from the software centre. Then I tried:
sudo pecl install v8js-0.1.2. This failed due to (i think) this:
/tmp/pear/temp/v8js/v8js.cc:220: error: no matching function for call to ‘v8::Array::Get(unsigned int&)’
and
/tmp/pear/temp/v8js/v8js.cc:438: error: ‘ContextDisposedNotification’ is not a member of ‘v8::V8’
I am assuming it is because the packaged version of libv8 is too old?
I checked out the SVN source (svn co http://v8.googlecode.com/svn/trunk/ v8) and used scons to build it, although it looks like it finished successfully (ranlib libv8.a; scons: done building targets.), I have no idea what to do with what has been generated (and what files were built - there only appears to be .o files built in obj/release/).
I am stuck and somewhat confused as to what I need to do. Help please!
Iam using 10.04 Ubuntu, after upgrade gcc and install newest version of libv8 I can install v8js-0.1.3.

Php 5 on RedHat Enterprise Linux 5

By default, RHEL5.x64 comes with 5.1.6 - pretty old. I'm looking for a more up to date version, 5.2.8, or even the latest 5.2.9 (as of March 2009). Ideally, a Yum/RPM-based solution, for transparent upgrades (when I plan).
How do you upgrade the default for an up-to-date version?
Oracle have some up-to-date PHP RPMs, but not in a repository that I can see. You could try asking Christopher Jones if he would be interested in building repository metadata for them?
There are also versions in the CentOS testing repository, and Remi Collet has PHP 5.2.9 in his repository (read his announcement).
you could also install a fedora RPM package for PHP in redhat enterprise. RHEL5 rpm packages are like fedora core 6 packages. something like this.
I have installed many Fedora Core 6 RPM packages on RHEL 5 without any problems.
I suggest getting the spec file for the Red Hat PHP rpm, then use that to create your own RPM, in your own local repo, and use that. This way you get the benefits of the newest PHP, configured to be as compatible as possible with your system, and when using YUM for other things, that require PHP, they will be satisfied with your install.
I've elected to go for the Zend-CE solution, installed with YUM (default on rhel5). It's not perfect, the admin-dashboard security leaves something to be desired, and enabling it to be used for php-cli needs at least a manual removale of the old php-cli package + a symlink to the new, but otherwise, its not complicated.
please look at:
http://bluhaloit.wordpress.com/2008/03/13/installing-php-52x-on-redhat-es5-centos-5-etc/
it'll up2date your php for 5.3
[]'

Categories