# SLE 12 can't get phar module to work on PHP

**URL:** <https://forums.suse.com/t/sle-12-cant-get-phar-module-to-work-on-php/27148>\
**Category:** SLES Configure-Administer\
**Created:** [June 11, 2015, 5:52pm UTC](https://forums.suse.com/t/sle-12-cant-get-phar-module-to-work-on-php/27148 "2015-06-11T17:52:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FHaze](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@FHaze](https://forums.suse.com/u/FHaze)\
**Post date:** [June 11, 2015, 5:52pm UTC](https://forums.suse.com/t/sle-12-cant-get-phar-module-to-work-on-php/27148/1 "2015-06-11T17:52:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [June 17, 2015, 7:30am UTC](https://forums.suse.com/t/sle-12-cant-get-phar-module-to-work-on-php/27148/2 "2015-06-17T07:30:08Z")

</div>

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](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](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](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](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![swadm](https://avatars.discourse-cdn.com/v4/letter/s/bc79bd/32.png) [@swadm](https://forums.suse.com/u/swadm)\
**Post date:** [September 1, 2015, 10:08am UTC](https://forums.suse.com/t/sle-12-cant-get-phar-module-to-work-on-php/27148/3 "2015-09-01T10:08:08Z")

</div>

we ran into the same issue trying to install [Composer](https://getcomposer.org), 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

---

<div class="post-metadata">

**Author:** ![Stenbryggen](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@Stenbryggen](https://forums.suse.com/u/Stenbryggen)\
**Post date:** [September 29, 2015, 4:21pm UTC](https://forums.suse.com/t/sle-12-cant-get-phar-module-to-work-on-php/27148/4 "2015-09-29T16:21:15Z")

</div>

In php.ini for the cli, there is a section about phar.

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

; [http://php.net/phar.require-hash](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.
