PDA

View Full Version : SLE 12 can't get phar module to work on PHP



FHaze
11-Jun-2015, 15:52
I'm trying to install composer but I can't get phar module to work on PHP.

The following packages were installed:

apache2-mod_php5
php5
php5-ctype
php5-dom
php5-ftp
php5-gd
php5-iconv
php5-json
php5-mbstring
php5-mysql
php5-openssl
php5-pdo
php5-pear
php5-sqlite
php5-tokenizer
php5-xmlreader
php5-zlib

But "php -i | grep -i -e phar" shows no result.

Any ideas?

OS: Suse Linux Enterprise 12

Automatic reply
17-Jun-2015, 05:30
FHaze,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit http://www.suse.com/support and search the knowledgebase and/or check all
the other support options available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.suse.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.suse.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team
http://forums.suse.com

swadm
01-Sep-2015, 08:08
we ran into the same issue trying to install Composer (https://getcomposer.org(https://getcomposer.org/download/), needed in a Web project:
The install routing repors:


Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again: The phar extension is missing. Install it or recompile php without --disable-phar

Currently , PHAR (PHP archive) support is missing from SLES12, although it should be part of PHP core (https://www.script-tutorials.com/phar-php-archiving-practice/#sthash.qLv2lcwd.dpuf):


Phar extension appear in PHP since version 5.2. And since 5.3 this is part of PHP core.

Perhaps things change, if customers report their need to SuSE (as we did): it is a decision of product management at SuSE.

Regards, Thomas

Stenbryggen
29-Sep-2015, 14:21
In php.ini for the cli, there is a section about phar.

[Phar]
; http://php.net/phar.readonly
phar.readonly = Off

; http://php.net/phar.require-hash
;phar.require_hash = On

;phar.cache_list =

I've tried phar.readonly = On and Off, but it made no difference.

I'm also trying to install Composer.