View previous topic :: View next topic |
Author |
Message |
calubro Tux's lil' helper
Joined: 14 May 2005 Posts: 112 Location: vienna
|
Posted: Sun Oct 23, 2005 2:07 pm Post subject: not loading mysql |
|
|
hi again,
in wanted to install phpmyadmin with apache2, so the apache works, mysql works, and php works ...
but when i try to access 192.168.1.100/phpmyadmin/
it says:
Code: | Die Erweiterung "mysql" kann nicht geladen werden.
Bitte überprüfen Sie Ihre PHP-Konfiguration. |
means that mysql cannot be loaded and that i should check my php configuration. so i did this.
Code: | * dev-php/mod_php
Latest version available: 4.4.0-r3
Latest version installed: 4.4.0-r3
Size of downloaded files: 4,372 kB
Homepage: http://www.php.net/
Description: Apache module for PHP
License: PHP-3
|
is installed and also mysql is installed:
Code: | mysql> show databases;
+----------+
| Database |
+----------+
| mysql |
+----------+
1 row in set (0.00 sec)
mysql> |
then ... also the php_info() function works .. and gives me an output ... but the thing, that i think could be the reason is the line:
Code: | Configure Command:
.....
...
'--without-mysql'
|
but i dont know where i can change this because in the /etc/conf.d/apache2 it is enabled ..
Code: | APACHE2_OPTS="-D SSL -D PHP4" |
thanks for help! _________________ «calubro is the sound of the future.» |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Oct 23, 2005 2:14 pm Post subject: |
|
|
Hi.
You need to check how php was installed. Do the following
Code: | # emerge -pv dev-php/php
# emerge -pv mod_php |
You will need to have the support for mysql activated in both, I think. If the support in deactivated, you can either do
Code: | # USE="mysql" emerge -av dev-php/php mod_php |
or, preferably edit /etc/portage/package.use and add the following two lines
Code: | dev-php/php mysql
dev-php/mod_php mysql |
_________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
calubro Tux's lil' helper
Joined: 14 May 2005 Posts: 112 Location: vienna
|
Posted: Sun Oct 23, 2005 2:21 pm Post subject: |
|
|
Code: |
# emerge -pv dev-php/php
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] dev-php/php-4.4.0-r1 +X +berkdb +crypt -curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix +ipv6 -java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +ncurses +nls -oci8 -odbc +pam +png -postgres +readline -snmp +spell +ssl -tiff +truetype +xml2 -yaz 0 kB
Total size of downloads: 0 kB
# emerge -pv mod_php
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] dev-php/mod_php-4.4.0-r3 +X -apache2 +berkdb +crypt -curl -debug -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp -hardenedphp -imap -informix +ipv6 -java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql* +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl -tiff +truetype +xml2 -yaz 0 kB
Total size of downloads: 0 kB |
this is the output .. so i think it is activated!? _________________ «calubro is the sound of the future.» |
|
Back to top |
|
|
calubro Tux's lil' helper
Joined: 14 May 2005 Posts: 112 Location: vienna
|
Posted: Sun Oct 23, 2005 3:33 pm Post subject: |
|
|
thanks,
after emerging it again with
# USE="mysql" emerge -av dev-php/php mod_php
i can reach the login .. but now i cant login ... don't know why because everytime i had to enter a pw and a username i entered root and everytime the same password ...
*hmpf* ... frustrating ; -)( _________________ «calubro is the sound of the future.» |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Sun Oct 23, 2005 7:45 pm Post subject: |
|
|
Are you using mysql's root or phpmyadmin account? I think you need to use the latter. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon Oct 24, 2005 4:44 pm Post subject: |
|
|
Moved from Installing Gentoo to Networking & Security.
Not an installing gentoo problem, gentoo is installed. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
|