Koozali.org: home of the SME Server

SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'

Offline festus

  • **
  • 43
  • +0/-0
I am in the process of installing Joomla 3.6.5 in the ibay and am unable to meet all the pre-requisites, since the install script detects that 'MCrypt' support is not met. I have searched the Forum and the few relevant posts I found indicated that I should enable the 'Epel' repository and then install crypt.

I have installed 'PHP software collections' and enabled php 5.6 to the ibay.

Following is the result of my attempt:

Quote
# yum install php-phpseclib-crypt-random --enablerepo=epel
   Loaded plugins: fastestmirror, smeserver
   Error getting repository data for epel, repository not found

Hope to get a solution soon.
Festus

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #1 on: April 25, 2017, 09:38:21 PM »
Moving to SME9. X contribs

Offline TerryF

  • grumpy old man
  • *
  • 1,821
  • +6/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #2 on: April 25, 2017, 11:14:43 PM »
At its most basic, Have you configured your server to use the epel repo as per relevant wiki entry?

If yes please show result of following:
# db yum_repositories show
--
qui scribit bis legit

Offline DanB35

  • ****
  • 764
  • +0/-0
    • http://www.familybrown.org
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #3 on: April 26, 2017, 12:11:17 AM »
The wiki should have your answers: https://wiki.contribs.org/Joomla_3

Edit: and though the Joomla page links there, here's the wiki page on the Epel repository, which you haven't configured: https://wiki.contribs.org/Epel
« Last Edit: April 26, 2017, 12:15:02 AM by DanB35 »
......

Offline festus

  • **
  • 43
  • +0/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #4 on: April 26, 2017, 02:43:40 AM »
Thank you very much for the links provided.
I followed the steps and have been able to resolve the problem.
Appreciate the prompt support and clear instructions.

Offline festus

  • **
  • 43
  • +0/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Output Buffering Setting
« Reply #5 on: April 26, 2017, 04:10:39 AM »
In the Joomla 'Recommended Settings', I notice the 'Output Buffering' status is recommended to be 'OFF' and that it is currently detected to be 'ON'. I have searched in all the php.ini config files I can find in the SME server to check this setting. I find that setting to be 'OFF'. I am wondering what is causing this and how I can clear this warning.

Appreciate some advise.

Offline festus

  • **
  • 43
  • +0/-0
Since posting my request for help with turning OFF 'Output Buffering', I managed to locate the file location and the actual location where the setting needs to be turned OFF.

a) File Location

/opt/remi/php56/root/etc/php.ini

I realised that the setting for 'Output_Buffering' appears in 'Line 6' as well as around 'Line 24'
Although the setting in 'Line 6' was set to OFF by default. However the setting in 'Line 24'
is set to ON by default. When I manually set Line 24 to OFF, and after restarting httpd service
the Joomla install warning for the 'recommended setting' cleared up.

Anyone who already has the correct procedure, kindly provide your input.

b) Edit the file

[PHP]

engine
short_open_tag
asp_tags
precision
y2k_compliance
output_buffering   = off  (line 6)

Near Lin 24 ...
;added stephdl settings
output_buffering   = 4096

c) configure php.ini using custom template

Currently I am in the process of figuring out the procedure to turn OFF in line 24 by using the custom template procedure since I read the following instructions not to edit the file 'manually', but to use the template method.

I am documenting the steps I have gone through so that it could help as reference to someone else facing similar issues with the latest version of Joomla 3.6.5 in SME 9x server. I will update here once I have figured out the template method to update the file setting.

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #7 on: April 26, 2017, 02:39:02 PM »
I don't use remi php56 so I ask you: is that file templated? do you have anything like /etc/e-smith/templates/opt/remi/php56/root/etc/php.ini/ ?

if so, you just need a custom fragment

Offline festus

  • **
  • 43
  • +0/-0
Yes. That file is templated.
I found the following template fragments in the file path you provided.

[root@sme902 etc]# pwd
/etc/e-smith/templates/opt/remi/php56/root/etc/php.ini

00PHP                           80ModuleSettings04Logging      80ModuleSettings17MSSQL
10LanguageOptions               80ModuleSettings05Java         80ModuleSettings18Assertion
15ExposePHP                     80ModuleSettings06SQL          80ModuleSettings19IngresII
20ResourceLimits                80ModuleSettings07ODBC         80ModuleSettings20VerisignPayflowPro
30ErrorHandling                 80ModuleSettings08MySQL        80ModuleSettings21Sockets
40DataHandling                  80ModuleSettings09mSQL         80ModuleSettings22Interbase
50PathsDirectories              80ModuleSettings10PostgresSQL  80ModuleSettings23MySQLi
60FileUploads                   80ModuleSettings11Sybase       80ModuleSettings24PostgreSQL
65FopenWrappers                 80ModuleSettings12Sybase-CT    80ModuleSettings25Tidy
70TimeZone                      80ModuleSettings13bcmath       80ModuleSettings26Soap
80ModuleSettings01Syslog        80ModuleSettings14browscap     80ModuleSettings27Ldap
80ModuleSettings02mailfunction  80ModuleSettings15Informix     80ModuleSettings28CliServer
80ModuleSettings03Debugger      80ModuleSettings16Session      template-begin
[root@sme902 php.ini]#

Will be helpful if you can provide instruction on how I can use the tempalate system to update that file to set 'line 24' value to OFF

Offline festus

  • **
  • 43
  • +0/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Output Buffering Setting
« Reply #9 on: April 26, 2017, 03:52:53 PM »
On further investigation, I edited the fragment '10LanguageOptions' and find that fragment to contain the section with the 'Output_Buffering' = 4026, as copied below:

Quote
[root@sme902 php.ini]# nano 10LanguageOptions

safe_mode                              = Off
safe_mode_exec_dir                     =
safe_mode_allowed_env_vars             = PHP_
safe_mode_protected_env_vars           = LD_LIBRARY_PATH
disable_functions                      =
highlight.string                       = #DD0000
highlight.comment                      = #FF8000
highlight.keyword                      = #007700
highlight.bg                           = #FFFFFF
highlight.default                      = #0000BB
highlight.html                         = #000000

;added stephdl settings
output_buffering = 4096
zlib.output_compression = Off
unserialize_callback_func =
serialize_precision = 17
disable_classes =
zend.enable_gc = On
default_charset = "UTF-8"

I assume I should edit this fragment, save and then issue the expand fragment command.
Please advise.
« Last Edit: April 26, 2017, 04:28:12 PM by festus »

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #10 on: April 26, 2017, 05:02:04 PM »
well, you have to create /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini dir, copy there the fragment you need, edit them, expand template

Offline festus

  • **
  • 43
  • +0/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #11 on: May 22, 2017, 03:01:58 PM »
I have gone through the following steps to copy, edit and expand the template and ran into an error as documented below:

mkdir -p /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini

cp /etc/e-smith/templates/opt/remi/php56/root/etc/php.ini/10LanguageOptions /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini/10LanguageOptions

cd /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini/

nano 10LanguageOptions

Edit 'output_buffering = 4096' to 'output_buffering = off'

Save and Exit

# expand-template /etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini
ERROR: Could not expand //etc/e-smith/templates-custom/opt/remi/php56/root/etc/php.ini template - it is a directory
 at /sbin/e-smith/expand-template line 45

Need advise on how to proceed.

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: SME 9.1 - Installing Joomla 3.6.5 in IBay - Need 'MCrypt Support'
« Reply #12 on: May 22, 2017, 03:03:44 PM »
Code: [Select]
expand-template /opt/remi/php56/root/etc/php.ini

HTH