You are not logged in.

#1 2008-02-11 14:23:08

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

yet another phpMyAdmin problem

Hi! this is my first try with Arch Linux and im trying to set up a webserver with apache, mysql and php.
everything works great, mysql works, apache works and php works (atleast phpinfo works)
but now im trying to install phpMyAdmin and i get this error:

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

i dont know were the php logfile is or the apache log? please help a desperate newb...

Offline

#2 2008-02-11 14:45:45

Zyx
Member
From: Poland
Registered: 2006-12-09
Posts: 20
Website

Re: yet another phpMyAdmin problem

All the logs can be found in /var/log/httpd. It should also contain PHP script errors, so you can see, what went wrong. Try to check, whether the session.so module is loaded (/etc/php/php.ini at the bottom of the file).

Offline

#3 2008-02-11 15:11:26

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: yet another phpMyAdmin problem

allright, i couldent make annything out of my logfiles...
but it seems like the mysql module isnt loading proparly or something.
im trying to connect from another computer tho, might be a problem somewere? :S
the session.so is activated in php.ini

error_log:

[Mon Feb 11 21:46:51 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 11 21:46:51 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Mon Feb 11 21:46:51 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 11 21:46:51 2008] [notice] Digest: done
[Mon Feb 11 21:46:52 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Mon Feb 11 21:47:14 2008] [error] [client 192.168.0.1] File does not exist: /home/httpd/html/favicon.ico
[Mon Feb 11 21:53:14 2008] [notice] caught SIGTERM, shutting down
[Mon Feb 11 21:53:17 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 11 21:53:17 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Mon Feb 11 21:53:17 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 11 21:53:17 2008] [notice] Digest: done
[Mon Feb 11 21:53:18 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Mon Feb 11 21:54:40 2008] [error] [client 192.168.0.1] File does not exist: /home/httpd/html/favicon.ico
[Mon Feb 11 22:05:24 2008] [notice] caught SIGTERM, shutting down
[Mon Feb 11 22:07:04 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 11 22:07:04 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Mon Feb 11 22:07:05 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 11 22:07:05 2008] [notice] Digest: done
[Mon Feb 11 22:07:07 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Mon Feb 11 23:14:39 2008] [error] [client 192.168.0.1] File does not exist: /home/httpd/html/favicon.ico
[Mon Feb 11 23:14:56 2008] [error] [client 192.168.0.1] File does not exist: /home/httpd/html/phpmyadmin/script
[Mon Feb 11 23:15:46 2008] [error] [client 192.168.0.1] File does not exist: /home/httpd/html/phpinfo
[Mon Feb 11 23:27:16 2008] [error] [client 192.168.0.1] File does not exist: /home/httpd/html/phpMyAdmin
[Mon Feb 11 23:49:51 2008] [notice] caught SIGTERM, shutting down
[Mon Feb 11 23:49:54 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 11 23:49:54 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Mon Feb 11 23:49:54 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 11 23:49:54 2008] [notice] Digest: done
[Mon Feb 11 23:49:56 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Mon Feb 11 23:50:39 2008] [notice] caught SIGTERM, shutting down
[Mon Feb 11 23:50:43 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 11 23:50:43 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Mon Feb 11 23:50:43 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 11 23:50:43 2008] [notice] Digest: done
[Mon Feb 11 23:50:43 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Mon Feb 11 23:51:44 2008] [notice] caught SIGTERM, shutting down
[Mon Feb 11 23:51:47 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Mon Feb 11 23:51:47 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Mon Feb 11 23:51:47 2008] [notice] Digest: generating secret for digest authentication ...
[Mon Feb 11 23:51:47 2008] [notice] Digest: done
[Mon Feb 11 23:51:48 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Feb 12 00:03:19 2008] [notice] caught SIGTERM, shutting down
[Tue Feb 12 00:03:24 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 12 00:03:24 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Tue Feb 12 00:03:24 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 12 00:03:24 2008] [notice] Digest: done
[Tue Feb 12 00:03:26 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Feb 12 00:32:17 2008] [notice] caught SIGTERM, shutting down
[Tue Feb 12 00:34:01 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 12 00:34:01 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Tue Feb 12 00:34:01 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 12 00:34:02 2008] [notice] Digest: done
[Tue Feb 12 00:34:03 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations
[Tue Feb 12 00:47:09 2008] [error] [client 192.168.0.1] File does not exist: /home/httpd/html/favicon.ico
[Tue Feb 12 00:48:47 2008] [notice] caught SIGTERM, shutting down
[Tue Feb 12 00:48:50 2008] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Feb 12 00:48:50 2008] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Tue Feb 12 00:48:50 2008] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 12 00:48:50 2008] [notice] Digest: done
[Tue Feb 12 00:48:51 2008] [notice] Apache/2.2.8 (Unix) DAV/2 mod_ssl/2.2.8 OpenSSL/0.9.8g configured -- resuming normal operations

Last edited by eldamar (2008-02-11 15:13:09)

Offline

#4 2008-02-11 18:09:24

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: yet another phpMyAdmin problem

humm, i fixed the problem with mysql by adding "bind-address = 127.0.0.1" but phpMyAdmin still doesnt work.
i have some problem with the gd module too, wont work with jinzora.
im not using the AUR version of phpMyAdmin tho, that got installed in /srv/www/ wich is not were my webserver is.

Last edited by eldamar (2008-02-11 18:11:04)

Offline

#5 2008-02-11 19:07:49

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: yet another phpMyAdmin problem

I had a similar problem so edited PKGBUILD and changed

--enable-session=shared \

to

--enable-session=

Then I rebuilt the package with makepkg.

That solved session based problems.

(I may have tweaked some session based settings in php.ini.)

I hope that helps.

BTW, why is phpMyAdmin no longer a package?


Kind regards

Benedict White

Offline

#6 2008-02-11 19:08:45

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: yet another phpMyAdmin problem

Oops.

The second code block should read:

--enable-session= \

Kind regards

Benedict White

Offline

#7 2008-02-11 21:19:33

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: yet another phpMyAdmin problem

what excactly is PKGBUILD? and what will that do? :S

Offline

#8 2008-02-11 22:37:15

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: yet another phpMyAdmin problem

if you do

pacman -S abs

and then

 abs

you will get the entire cvs tree of Arch Linux build scripts. If you don't like the way a package is built you can build it yourself.

So then you would do the following:

cd /var/abs
mkdir local
mkdir local/php
cp extra/devel/php/* local/php/
cd local/php/
nano PKGBUILD

Go and edit the line with --enable-session=shared \ on it to remove the =shared and then type:

makepkg --asroot

You will then have made a package that you have customised to work how you want it to.
The type

pacman -U php-5.2.5-3-i686.pkg.tar.gz

(or whatever the new packages file name is)

Then if you restart apache sessions will work with phpMyAdmin


Kind regards

Benedict White

Offline

#9 2008-02-12 15:31:30

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: yet another phpMyAdmin problem

i get allot of missing dependencies when i try to do makepkg --asroot
is there someway to make the gd module work with this too?

==> Making package: php 5.2.5-3  (Wed Feb 13 01:29:00 CET 2008)
==> WARNING: Running makepkg as root...
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Missing Dependencies:
  -> imap
  -> postgresql-libs
  -> smtp-server
  -> libpng
  -> libjpeg
  -> sqlite3
  -> unixodbc
  -> net-snmp
  -> libmcrypt
  -> tidyhtml
  -> aspell
  -> libtool
  -> freetype2
  -> libjpeg
  -> curl
  -> libxslt

Offline

#10 2008-02-13 09:44:11

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: yet another phpMyAdmin problem

That is to make php with the ability to use the modules. I would just pacman -S the whole list in one go. GD should work with php if it is installed. From the looks of your dependencies you already have it installed.


Kind regards

Benedict White

Offline

#11 2008-02-13 14:52:16

eldamar
Member
From: Sweden
Registered: 2008-02-11
Posts: 104

Re: yet another phpMyAdmin problem

allright, i installed all the packages but when i try to makepkg i get this error now:

  -> bsdtar -x -f php-5.2.5.tar.bz2
bsdtar: Failed to set default locale

Offline

#12 2008-02-13 17:20:27

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: yet another phpMyAdmin problem

Holy crap, never do "makepkg --asroot". It's a terrible idea. Build packages as a user, for the love of god.

Offline

#13 2008-02-14 13:34:04

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 331
Website

Re: yet another phpMyAdmin problem

eldamar, Hm. No idea. Mind you, you could try to check your locale settings.

Phrakture, why the issue with doing it as root?


Kind regards

Benedict White

Offline

Board footer

Powered by FluxBB