Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: festus on April 25, 2017, 07:39:22 PM
-
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:
# 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
-
Moving to SME9. X contribs
-
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
-
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
-
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.
-
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.
-
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.
-
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
-
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
-
On further investigation, I edited the fragment '10LanguageOptions' and find that fragment to contain the section with the 'Output_Buffering' = 4026, as copied below:
[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.
-
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
-
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.
-
expand-template /opt/remi/php56/root/etc/php.ini
HTH