Unable to Install Zend-Server 6.1 on CentOS 6.5 wtih PHP 5.4 and nginx - nginx

I'm getting "No package zend-server-nginx-php-5.4 available." after running yum install zend-server-nginx-php-5.4, setting the repo accordingly (see below) and I have no other idea rather then updating php to solve this problem (something which may cause some problems on my app).
As mentioned on the question title i'm trying to install Zend-Server 6.1 on CentOS 6.5 wtih PHP 5.4 and nginx.
Any Ideas?
I have tried:
https://www.digitalocean.com/community/tutorials/how-to-install-zend-server-6-on-a-centos-6-4-vps
and
http://blog.petermcdonald.co.uk/2013/07/11/installing-zend-server-6-1-using-nginx-and-php-5-4/
Repo file is:
[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/6.1/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/6.1/rpm/noarch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
Tried with this url and locally installing as well but it misses
"zend-server-php-5.4-common = 6.1.0-98"
and I'm not sure where to get that package. Help please!!

Wow, weird, turned out I just had to clean packages cache before installing to ensure retrieval of updates from the web. Just run:
yum clean all
and then
yum install zend-server-nginx-php-5.4
installation runs fine.

Related

Intall MCrypt extension in nginx server with PHP 7

I got a server with Ubuntu 16.04. I've installed nginx and PHP 7 with fpm. I need to install MCrypt extension but I cannot find how to do it, I found some information for PHP 5.6 and I'm not sure if the process is the same. How can I do it?
You may have to download the latest version of phpmyadmin 4.6.6
Fixes for PHP 7.1
Problems with MySQL servers running with lower_case_names=2
Fixes for several PHP notices/warnings being shown
they've fixed this bug
by the way , to install mcrypt in unbutu for PHP 7:
apt-get install php7.0-mcrypt
which again is DEPRECATED in PHP 7.1.x
Warning
This extension has been deprecated as of PHP 7.1.0 and moved to PECL
as of PHP 7.2.0.

WordPress 4.6 had problems with cURL error 23

After a recent upgrade to WordPress 4.6 had problems with cURL (eg when updating plug-ins that use cURL):
cURL error 23: Failed writing body (373 = 449!)
Judging by the forum, to 4.6 cURL broke, and 4.6.1 are still not rolled out the fix.
The decision to fix the line:
if (!function_exists('curl_init') || !function_exists('curl_exec')) {
to
if (true || !function_exists('curl_init') || !function_exists('curl_exec')) {
in ./wp-includes/Requests/Transport/cURL.php file
I don't recommend to edit Wordpress core files but Wordpress Developer have to fix that in next update.
the problem is that PHP was built without curl, not with the source code. if you're compiling PHP yourself make sure to compile with --with-curl as described here http://php.net/manual/en/curl.installation.php
if you're not compiling yourself, and you're on 1 of those linuxes with package managers, it's probably available through your package manager, for instance, with Ubuntu and Debian: apt-get install php5-curl or more recently (debian 9 testing, ubuntu 16.04 for instance) apt-get install php7.0-curl
if you're on windows, it's probably available in a DLL that you haven't loaded, add extension=php_curl.dll to php.ini

Missing mbstring in PHP 5.6 CentOS 6.8

I got the following error from one of my PHP functions (PHP verion 5.6)
Fatal error: Call to undefined function mb_detect_encoding()
It is one of the mbstring package functions. So I checked in the phpinfo(). There is no "mbsting". I tried to install mbstring by using the following command in my CentOS 6.8 server.
yum install php56w-mbstring
But it returns:
No package php56w-mbstring available. Error: Nothing to do
I also tried: rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
Ref: https://serverfault.com/questions/732468/how-to-install-php56-on-centos-6-x86-64
I have also tried: Cannot install mbstring php conflict
but still the same.
You should check your /etc/yum.conf
Just remove 'php*'
Same question I post over here: https://superuser.com/questions/1121176/installing-php-extension-mbstring-in-php-5-6-centos-6-8
All of these PHP configurations had done through EazyApache. There are some unusual changes because of installing/upgrades through EazyApache (rather installing/upgrades doing directly on the server). So have to follow EazyApache to install new modules. For how to install module through EazyApache, Ref: https://forums.cpanel.net/threads/enable-install-mbstring-module.158165/

Error installing Wordpress to Plesk

I'm having problems trying to install Wordpress to Plesk on my VPS. Everytime i go install wordpress it gets 100% then shows this message?
ERROR: Call to undefined method PHosting_Apache::getPHPCliPath() (Adapter.php:134)
I have re-imaged the server a few times now and still get the same problem.
Server Software : CentOS 6 with Parallels Plesk Panel 12 (64-bit)
Any suggestions?
Installation of microupdates was not completed successfully. Re-install micro updates by executing the below command:
/usr/local/psa/admin/bin/autoinstaller --install-component base --select-product-id plesk --select-release-current --reinstall-patch
Here is what I did that helped:
Install PHP 5.6 (or latest)
[Find Plesk Add/Remove Components][1]
Locate PHP installation (mine was here)
[Drill down into PHP option][3]
Install latest PHP
I went back and installed wordpress and it went through. Hope this helps

Symfony Installation gives fatal error

I'm new to the symfony2 and I was following http://symfony.com/doc/current/book/installation.html for installation using Composer now
It gives me a Fatal Error after some time:
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
Writing lock file
Generating autoload files
Fatal error: Call to undefined method Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::defineDirectoryStructure() in /Users/app/SymfonyStandard/RootPackageInstallSubscriber.php on line 28
#hap absolutely right on Debian/Ubuntu
sudo apt-get install php5-curl
is solving this issue. I think on another platform php5-curl will help too.
RESOLVED:
Got the same problem. Deleted the file composer.phar, installed again via curl -s https://getcomposer.org/installer | php - problem persists
/path/to/webroot/project/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/ScriptHandler.php file does not have the method defineDirectoryStructure() in it
symfony/framework-standard-edition (v2.6.1)
PHP 5.5.9-1ubuntu4.5 (cli) (built: Oct 29 2014 11:59:10)
problem here
sensio/distribution-bundle (v3.0.11)
Thanks #hap, this helped
sudo apt-get install php5-curl
Just had this problem on Debian. For me the problem was that sensio/distribution-bundle in its last version (v3.0.12, the one introducing the defineDirectoryStructure function) requires the cURL PHP extension, which was not installed, so it installed v3.0.11 (which don't contain the required method).
After installing php5-curl, Composer finaly installed the last version of sensio/distribution-bundle and everything was fine.
Got the same problem too ... Works on a debian distrib, but doesn't work on my wamp on windows 7 !
So tried to update my wamp, to get PHP5.5, reconfigure composer to use this PHP, still didn't work ..
Then I tried to launch the Console in Administrator mode, and launch :
"composer create-project symfony/framework-standard-edition sfproject/"
And guess what .... That finally worked !! With administrator rights ... Just give it a try ;)
I have same problem. I just added in composer.json string "symfony/symfony": "2.3.*", And its working for me.
Also, i deleted my composer.phar and composer.lock files.
The problem, if you have in your project symfony 2.3 it installing dependencies for v 2.7 .
I got this error from a install into a new vagrant VM, it would appear that something done recently has broken this as I managed to install a 2.6.0 version last week whilst testing, now it doesn't work.
After a bit of trial and error, it appears that the 2.6x and 2.5x branches are both affected and will not install, but 2.3x and 2.4x do install without the error.
incase anyone doesn't know how to install a specific version, just add it onto the end of the composer command, i.e.
composer create-project symfony/framework-standard-edition . 2.4.x
VM: Ubuntu 14.01 / PHP 5.5.9
I had the same problem in an Ubuntu 14.04 VM set up with PuPHPet and Vagrant/VirtualBox.
I've noticed that when I had the same problem, the DistributionBundle was severely out of date. Trying to upgrade it manually from composer.json (changing the version to 3.0.12, which was the las one available at the time I had the problem) produced a more verbose error, stating I hadn't installed php5-curl.
After updating the PuPHPet config file to include the cURL module for PHP and reprovisioning my VM, Symfony installed just fine, having installed the last version of Sensio Distribution Bundle, which contained the defineDirectoryStructure() method.

Resources