Gentoo Forums
Gentoo Forums
Quick Search: in
PHPMyAdmin Session problem
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
davidfowler2000
n00b
n00b


Joined: 04 Nov 2005
Posts: 57
Location: Glasgow, Scotland

PostPosted: Mon Jan 02, 2006 8:32 pm    Post subject: PHPMyAdmin Session problem Reply with quote

Hi. Ive just installed phpmyadmin with apache2, mysql 4 and php 5.

Whenever i go to http://blah/phpmyadmin, it comes up with a red banner saying

Code:
Cannot load session extension. Please check your PHP configuration.



I havn't a scooby how to go about fixing this so all help is appreciated
-David
Back to top
View user's profile Send private message
steveb
Veteran
Veteran


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Mon Jan 02, 2006 8:43 pm    Post subject: Reply with quote

I think this is a PHP5 issue. If you can, then try with phpMyAdmin with PHP4 and you will probably not see this error any more.

cheers

SteveB
Back to top
View user's profile Send private message
davidfowler2000
n00b
n00b


Joined: 04 Nov 2005
Posts: 57
Location: Glasgow, Scotland

PostPosted: Tue Jan 03, 2006 10:55 am    Post subject: Reply with quote

Cheers. Works fine with PHP 4
Back to top
View user's profile Send private message
steveb
Veteran
Veteran


Joined: 18 Sep 2002
Posts: 4564

PostPosted: Tue Jan 03, 2006 11:18 am    Post subject: Reply with quote

:)
Back to top
View user's profile Send private message
Dieter@be
Guru
Guru


Joined: 03 Apr 2005
Posts: 307
Location: Wetteren, Belgium

PostPosted: Tue Jan 03, 2006 11:28 am    Post subject: Reply with quote

you need the sessions use flag
(add +sessions for dev-lang/php in package.use)

if you have an error with function preg_replace() on line 37, then you need the use flag pcre

seems like the ebuild comes without some important modules per default, i had to recompile 3 times now, and i'm still missing stuff...
and it's hard to figure out
Back to top
View user's profile Send private message
davidfowler2000
n00b
n00b


Joined: 04 Nov 2005
Posts: 57
Location: Glasgow, Scotland

PostPosted: Tue Jan 03, 2006 11:48 am    Post subject: Reply with quote

To be honest, php5 isnt an issue for me. The only thing i'm going to be hosting is a bulletin board for a friend.

Next challenge is to get ProFTPd to use mysql as it's user source.

Cheers
-David
Back to top
View user's profile Send private message
kommissar
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2005
Posts: 77

PostPosted: Tue Jan 03, 2006 2:20 pm    Post subject: Reply with quote

davidfowler2000 wrote:

Next challenge is to get ProFTPd to use mysql as it's user source.


Be sure that you compile it with the mysql use flag as well. If need be
echo "net-ftp/proftpd mysql >> /etc/portage/package.use"
Back to top
View user's profile Send private message
cyb0rg51
n00b
n00b


Joined: 28 Nov 2004
Posts: 27

PostPosted: Thu Jan 26, 2006 11:21 am    Post subject: Reply with quote

Dieter@be wrote:
you need the sessions use flag
(add +sessions for dev-lang/php in package.use)

if you have an error with function preg_replace() on line 37, then you need the use flag pcre


I'm having that exact error right now.. I'm still a newbie to gentoo and i don't really know how to add USE flags other then adding it into the make.defaults profile. Can you tell me how to get PHP to work with pcre and preg function?

Have php 5, apache2 and mysql4

EDIT: im an idoit, after looking over the gentoo doc i guess i shouldn't have been chaning that file
Back to top
View user's profile Send private message
Dieter@be
Guru
Guru


Joined: 03 Apr 2005
Posts: 307
Location: Wetteren, Belgium

PostPosted: Thu Jan 26, 2006 11:58 am    Post subject: Reply with quote

type this as root
Code:
nano -w /etc/portage/package.use

if there is a line that starts with "dev-lang/php", make sure it contains the flags you need (eg sessions or pcre or whatever)
if there is no such line, create it

for example, mine looks like this
Quote:

#dev-db/mysql innodb berkdb
dev-lang/php spl iconv tokenizer posix xml dba session calendar pcre crypt jpeg png gd -berkdb mysql ftp soa$
net-www/apache mpm-worker
net-irc/irssi perl ssl socks5 nls


(dont mind the $, its nano's way of telling there is more text on the right)
Back to top
View user's profile Send private message
cyb0rg51
n00b
n00b


Joined: 28 Nov 2004
Posts: 27

PostPosted: Thu Jan 26, 2006 12:15 pm    Post subject: Reply with quote

i dont seem to have a package.use file.

/etc/portage/

inside portage is a .keep and thats it.
Is package.use same as or similar to make.conf?
Back to top
View user's profile Send private message
kommissar
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2005
Posts: 77

PostPosted: Thu Jan 26, 2006 12:23 pm    Post subject: Reply with quote

cyb0rg51 wrote:
i dont seem to have a package.use file.

/etc/portage/

inside portage is a .keep and thats it.
Is package.use same as or similar to make.conf?

Just create the file by typing nano -w /etc/portage/package.use and editing / saving it (as root user). By default there isn't one.
Back to top
View user's profile Send private message
Albert_Alligator
Apprentice
Apprentice


Joined: 12 May 2004
Posts: 193
Location: Okefenokee Swamp

PostPosted: Thu Mar 02, 2006 5:04 am    Post subject: Reply with quote

Well, I'm having to remove PHP5 and anything to do with it from all my servers as it is the boondoggle for every web based program I have. What's strange is that this only happened after upgrading to php-5.1.1

I'm going back to dev-php/php instead since that seemed to work for me.

Al
_________________
As Socrates once said "I drank what?"
Back to top
View user's profile Send private message
toralf
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1139
Location: Hamburg/Germany

PostPosted: Thu Mar 16, 2006 10:15 am    Post subject: Re: PHPMyAdmin Session problem Reply with quote

davidfowler2000 wrote:
Hi. Ive just installed phpmyadmin with apache2, mysql 4 and php 5.

Whenever i go to http://blah/phpmyadmin, it comes up with a red banner saying

Code:
Cannot load session extension. Please check your PHP configuration.



I havn't a scooby how to go about fixing this so all help is appreciated
-David
Do you defined PHP5
Code:
tfoerste@n22 ~ $ grep PHP5 /etc/conf.d/apache2
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D DOC -D [b]PHP5[/b] -D DAV -D SVN -D SVN_AUTHZ -D DAV_FS"
?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum