Use geolocation plugin in october cms - geolocation

I have try to install geolocation plugin in october cms
but i am getting errorenter image description here

You posted that your version is PHP 7.0.2 but it supports the array as constant
I guess, PHP version below 5.6 is not supporting this.
may be you are having issue related to version.
reference : https://3v4l.org/T44gG
may be, you did check command line version (CLI version) of php using
php --version
so at there it may be showing you 7.0 but in your apache config you may still using old version.
to confirm that you are also using PHP 7.0 in Apache you can create small php file with below code.
<?php
phpinfo();
then check what version is there.
if its also showing 7.0 then i don't know its something else.
but if its shows 5.x some things then you need to update your apache config
I assume you are on linux machine so, all commands are related to linux op. system
install apache php 7.0 mod (mod = module)
sudo apt-get install libapache2-mod-php7.0
now enable php 7 module before that disable old php5 mod, (sudo a2dismod php5)
sudo a2enmod php7.0
let me know if its works or not.

Related

How to properly install Hack and HHVM on Windows 7

I am trying to install and configure Facebook programming language Hack and HHVM on Windows, probably Windows 7. I could not find any solution on it. I saw a Bitnami link which suggest HHVM Installers.
source
I have downloaded the installer files HHVM installer files
but it cannot run on Windows due .run extension filename. How can I achieve this using HACK and HHVM installations on Windows 7.
Hack and HHVM do not support Windows. There was some work in 2015, but it doesn't seem to have continued since then.
Recent versions of HHVM do not support PHP. The Bitnami link mentions running phpmyadmin, so it looks like it's targeting an old HHVM release.
Hack and HHVM do not support Windows but you can try Building and Installing HHVM on Cygwin or Installation: Building From Source although not recommended because they are monumental tasks.
You can also take a look at Building and Installing HHVM.
I personally gave up and installed the supported package in my Mac where I'm using Visual Studio Code with the HackLang plug-in for development.

Upgrade php version from 5.2 to 5.3 Joomla

Our new website in Joomla 3 needs at least PHP v5.3 to run the Akeeba Next Generation Installer. Any my server is running a PHP 5.2. I have tried adding the line
AddHandler application/x-httpd-php53 .php
on my .htaccess but instead it downloads the index.php file.. Hosting provided is Doteasy. How do we go upgrading the PHP?
Any help would be much appreciated. THanks.
This isn't going to work. You'll need to have php installed to the version. Do you have SSH access to the server? if you do what platform is it? Most web servers run on Linux and if that's the case you'll need to upgrade php on the linux server. On Windows you'll need to
uninstall and install php to the latest.
a,
if it is centos or fedora, you need to have the correct repo enabled and you need to issue
To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:
CentOS/RHEL 7.x:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
CentOS/RHEL 5.x:
rpm -Uvh https://mirror.webtatic.com/yum/el5/latest.rpm
Now you can install php by doing:
yum install php54w
If you would like to upgrade php to this version it is recommended that you check that your system will support the upgrade, e.g. making sure any CPanel-like software can run after the upgrade.
Unless you know what you are doing, it is risky upgrading an existing system. It’s much safer to do this by provisioning a separate server to perform the upgrade as a fresh install instead.
If you know what you are doing, you can upgrade PHP by:
yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y“. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.
or
if its a debian ubuntu linux dist you need to issue
*this will be the easiest option. For PHP 5.4.x run the command:*
sudo add-apt-repository ppa:ondrej/php5-oldstable
or for PHP 5.5.x run:
sudo add-apt-repository ppa:ondrej/php5
And then update your packages:
sudo apt-get update
sudo apt-get upgrade

DataStax Enterprise 4.5 on RHEL / CentOS 7 won't fully install cqlsh

When trying to install DataStax Enterprise from the yum repository, cqlsh won't actually install because it depends on python 2.6 while RHEL/CentOS now ships with python 2.7 and removed 2.6.
It seems it should also be able to accept python 2.7, as far as I know, it is compatible. I just used the CentOS 7 system python 2.7 to install pip and then pip install cqlsh and it all seems to be good.
Hm... yes, that's tricky. The target path for site files is in the package, so one would need different packages for different versions of python (I believe). I filed a ticket, we will look into this.

Is OpenCV supported on Python 3 yet?

I already have part of a program running in Python 3 but I need OpenCV (or SimpleCV), for a robotic vehicle, but I haven't found any install commands that seem to work, other than for Python 2.7.
If it is compatible could you please include instructions (/links to) for installation of the module?
I am using Ubuntu 14.
Maybe a little late to answer, but it's actually supported on OpenCV version 3 (in alpha state nowadays). I have successfully managed to install it, on MacOS, but I guess it would be similar on Ubuntu.
Now you have separated options for python2 and python3 when using Cmake. So you'll have to set those to make it work. That's all I needed to set:
BUILD_opencv_python3
PYTHON3_LIBRARY
PYTHON3_INCLUDE_DIR
PYTHON3_INCLUDE_DIR2
PYTHON3_NUMPY_INCLUDE_DIRS
...
Here you can find more detailed description: Link
Luigolas is correct that OpenCV 3.0 supports Python 3.x bindings. It was in release candidate status since April and the production version was released on 4 June 2015. Unfortunately for some reason the downloadable installation program on the OpenCV site does not contain a Python 3.x-compatible cv2.pyd file.
OP asked about Ubuntu but for those requiring a Windows installer, use Christoph Gohlke's site, which maintains Windows binaries for many Python packages, including OpenCV 3.0 with Python 3.x bindings. Visit:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
To install, just download the 64-bit or 32-bit .whl file appropriate for your system, then run pip install [filename]. Then the instruction import cv2 should work in your Python 3.x interpreter.

Passenger/nginx installation on AIX 5.3

Encounter a peculiar issue while trying to install nginx module through phusion passenger's auto installer. Command is:
passenger-install-nginx-module
Well, this installer tries to run Tar with 'z' flag, which is not supported by AIX 5.3. Is there a lib/package that can upgrade AIX capability to do so? I'm sure there is no way to update the installer to run two separate commands on AIX to unzip the package..
Thanks
Install GNU tar on AIX from http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/alpha.html - but you'll need to somehow point to the /opt/freeware/bin/tar version.

Resources