Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: mmccarn on October 15, 2011, 05:19:39 PM

Title: [SOLVED?] pcre-8.x on SME8b6
Post by: mmccarn on October 15, 2011, 05:19:39 PM
I am trying to install and evaluate The Bug Genie (http://www.thebuggenie.com/) on my SME8b6 system.

Requirements include
Code: [Select]
db accounts setprop tbg AllowOverride All
echo 'php_flag magic_quotes_gpc Off' > /home/e-smith/files/ibays/tbg/html/.htaccess
signal-event remoteaccess-update

The only place I've found a possibly appropriate version of a pcre-8.x rpm is at http://pkgs.org/centos-5-rhel-5/utter-ramblings-i386/pcre-8.02-1.jason.1.i386.rpm.html, pointing to a repository I've never heard of before named 'Utter Ramblings'.

Questions
Title: Re: [SOLVED?] pcre-8.x on SME8b6
Post by: mmccarn on October 17, 2011, 02:43:55 PM
I noticed that 'utterramblings' is mentioned as a repo on in the Centos wiki, so I decided to risk using it to update pcre.

I did this (based on the settings for configuring the dag repo):
Code: [Select]
/sbin/e-smith/db yum_repositories set utterramblings repository \
Name 'UtterRamblings' \
BaseURL 'http://www.jasonlitka.com/media/EL$releasever/$basearch/' \
EnableGroups no \
GPGCheck yes \
GPGKey http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka \
Visible no \
IncludePkgs pcre \
status enabled
repo setup command modified per note from gregswallow below

Then I did this:
Code: [Select]
signal-event yum-modify
yum --enablerepo=utterramblings update pcre
sv t httpd-e-smith

So far everything looks OK; I'll report back here if I observe any problems with my SME.
Title: Re: [SOLVED?] pcre-8.x on SME8b6
Post by: gregswallow on October 17, 2011, 08:18:54 PM
Instead of listing what you exclude, it might be better to use:

IncludePkgs pcre
...so you don't inadvertently install something else from that repo

and

status enabled
...so you get notified of updates/fixes.
Title: Re: [SOLVED?] pcre-8.x on SME8b6
Post by: mmccarn on October 17, 2011, 10:18:34 PM
Thanks!

I did this:
* run 'yum update' to confirm that I had no pending updates
* modify the repo setup as you recommended (and update my original post to match)
* run 'yum update' again to verify that no unwanted updates are being offered

Title: Re: [SOLVED?] pcre-8.x on SME8b6
Post by: soprom on November 10, 2011, 09:51:41 PM
Thanks! It also solves a problem with CakePHP's console...
Title: Re: [SOLVED?] pcre-8.x on SME8b6
Post by: pmstewart on February 28, 2014, 12:47:39 AM
As a follow up post it appears the site has been moved to  - http://yum.jasonlitka.com

Will edit after trying the new code.

Code: [Select]
/sbin/e-smith/db yum_repositories set utterramblings repository \
Name 'UtterRamblings' \
BaseURL 'http://yum.jasonlitka.com/EL$releasever/$basearch/' \
EnableGroups no \
GPGCheck yes \
GPGKey http://yum.jasonlitka.com/RPM-GPG-KEY-jlitka \
Visible no \
IncludePkgs pcre \
status enabled

Works......
Title: Re: [SOLVED?] pcre-8.x on SME8b6
Post by: CharlieBrady on March 03, 2014, 01:39:20 AM
Quote
db accounts setprop tbg AllowOverride All
echo 'php_flag magic_quotes_gpc Off' > /home/e-smith/files/ibays/tbg/html/.htaccess
signal-event remoteaccess-update

A better solution is to disable magic quotes within a location container in httpd.conf using a custom template. .htaccess files are inherently less secure, since the potential exists for them to be modified by a compromised php application, or some other way, e.g. via samba access.
Title: Re: [SOLVED?] pcre-8.x on SME8b6
Post by: mmccarn on March 03, 2014, 02:47:37 PM
A better solution is to disable magic quotes within a location container in httpd.conf using a custom template. .htaccess files are inherently less secure, since the potential exists for them to be modified by a compromised php application, or some other way, e.g. via samba access.

I'm pretty sure we don't need to do anything to disable magic_quotes_gpc any more, as it is now forcefully set to 'off' in /etc/php.ini:
Bug 7522 (http://bugs.contribs.org/show_bug.cgi?id=7522) (SME 8.1)
Bug 7605 (http://bugs.contribs.org/show_bug.cgi?id=7605) (SME 9.0b1)