Koozali.org: home of the SME Server

SME9 and phpmyadmin

guest22

Re: SME9 and phpmyadmin
« Reply #30 on: October 15, 2014, 10:09:01 PM »
Code: [Select]
[root@www tmp]# patch -p2 <patch2.pm
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?

Maybe adding a space helps? 'patch -p2 < patch2.pm'

Please read the patch man, it will tell you how to test a patch before really applying it.

Good to see you've figured out 'patch'

guest



Offline waldviertler

  • ***
  • 107
  • +0/-0
Re: SME9 and phpmyadmin
« Reply #31 on: October 15, 2014, 10:22:15 PM »
No, just the same :-(

Code: [Select]
[root@www tmp]# patch -p2 < patch2.pm
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Nur e-smith-base-5.6.0.old/root/etc/e-smith/events/actions/init-accounts e-smith-base-5.6.0/root/etc/e-smith/events/actions/init-accounts
|--- e-smith-base-5.6.0.old/root/etc/e-smith/events/actions/init-accounts      2014-10-12 16:28:02.872982921 +0200
|+++ e-smith-base-5.6.0/root/etc/e-smith/events/actions/init-accounts   2014-10-12 17:18:58.748369354 +0200
--------------------------
File to patch:

The patchfile contains:

Code: [Select]
diff -Nur e-smith-base-5.6.0.old/root/etc/e-smith/events/actions/init-accounts e-smith-base-5.6.0/root/etc/e-smith/events/actions/init-accounts
--- e-smith-base-5.6.0.old/root/etc/e-smith/events/actions/init-accounts 2014-10-12 16:28:02.872982921 +0200
+++ e-smith-base-5.6.0/root/etc/e-smith/events/actions/init-accounts 2014-10-12 17:18:58.748369354 +0200
@@ -41,6 +41,17 @@
      system("/bin/rpm --setugids --setperms httpd mod_auth_tkt mod_ssl php pwauth 2> /dev/null") == 0
      );
 
+# set the correct 102 GID to apache group if doesn't exist or wrong settled
+   my $apachegidtest = getgrnam("apache");
+       if ( ! getgrnam("apache"))
+           {
+           system(qw(/usr/sbin/groupadd -g 102 -r -o -f apache));
+           }
+       elsif ( $apachegidtest != '102' )
+           {
+           system('/usr/sbin/groupmod -o -g 102 apache');
+           }
+
 # delete unwanted user accounts
 foreach my $user (qw(halt shutdown sync))
 {

guest22

Re: SME9 and phpmyadmin
« Reply #32 on: October 15, 2014, 10:24:27 PM »
Please post the full events, including command given until back to prompt. Cutting of pieces makes it hard to analyze.

Offline waldviertler

  • ***
  • 107
  • +0/-0
Re: SME9 and phpmyadmin
« Reply #33 on: October 15, 2014, 11:06:09 PM »
Hi

In the article above the first line IS the command:
Code: [Select]
patch -p2 < patch2.pm!

Then you find the output from the patch.

After that I wrote the content of the patch.

It stops after "File to patch".

I had to cancel it witch CTRL-X.

Do you need some other informations?


Thanks.
Martin

Offline ReetP

  • *
  • 3,731
  • +5/-0
Re: SME9 and phpmyadmin
« Reply #34 on: October 15, 2014, 11:22:16 PM »
Martin,

I can't help as I am in Germany right now. Stephane will undoubtedly come back to you.

Best place to follow up is on the bug as other devs may be able to help you - not all of them read here !!

B. Rgds
John
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

guest22

Re: SME9 and phpmyadmin
« Reply #35 on: October 15, 2014, 11:48:56 PM »
Agree, let's see if any dev can assist.

Offline waldviertler

  • ***
  • 107
  • +0/-0
Re: SME9 and phpmyadmin
« Reply #36 on: October 16, 2014, 01:38:53 AM »
Ok, now I know how the patches will work.
I'll try it tomorrow.

Thanks
Martin

Offline waldviertler

  • ***
  • 107
  • +0/-0
Re: SME9 and phpmyadmin
« Reply #37 on: October 17, 2014, 02:01:16 AM »
Ok, I tried tonight the fresh install - update - patch - restore procedure.

Everything runs fine, also the two patches.

But after the restore, it is not possible to logon with the /server-manager
And when I try to login at the server console with the "admin" user to get the server options, it jumps back to "login:"

ll /usr/bin/pwauth
Code: [Select]
-rwsr-x--- 1 root apache 6872  5. Jun 2013  /usr/bin/pwauth
cat /etc/group|grep apache
Code: [Select]
apache:x:102:
id apache
Code: [Select]
uid=48(apache) gid=102(apache) Gruppen=102(apache)
groups apache
Code: [Select]
apache : apache


Then I tried to install phpmyadmin.
Same Error as before:

Code: [Select]
Error: Package: php-tcpdf-6.0.091-1.el6.noarch (epel)
           Requires: php-tidy
Error: Package: php-tcpdf-dejavu-sans-fonts-6.0.091-1.el6.noarch (epel)
           Requires: dejavu-sans-fonts
Error: Package: php-tcpdf-6.0.091-1.el6.noarch (epel)
           Requires: php-bcmath
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

But after restoring default yum repositories http://wiki.contribs.org/Useful_Commands#Restoring_Default_Yum_Repositories
phpmyadmin installs without any error.

But it is not possible to login to myserver/phpmyadmin/


So, in short, same as before :-((

When I chown /usr/bin/pwauth from root apache to root www - it is possible to login with the server-manager!


Please, please help me.

best regards
Martin