Results 1 to 5 of 5
I have the newest mysql (I got it by urpmi) and the latest phpbb.
Everytime I try to use phpbb's install.php script I get this error: "The PHP configuration on ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-03-2005 #1Linux Newbie
- Join Date
- Jan 2005
- Location
- Quebec, Canada
- Posts
- 100
mysql and phpbb
I have the newest mysql (I got it by urpmi) and the latest phpbb.
Everytime I try to use phpbb's install.php script I get this error: "The PHP configuration on your server doesn't support the database type that you chose"
I would like to know if there is a specific way to setup mysql or my apache server, so I can get this working (I installed apache-mod_php, with urpmi as well).
As you can tell, I'm a noob to this, but I want to learn, please help...
-->Nikosapi
- 09-04-2005 #2
try creating a new file (in a web readable directory) in that file put:
save, then hit the page as though it were a website.Code:<?phpinfo();?>
Look in the resultant output for any MySQL related stuff.
it hould have it's own section, and also be listed in the "Supported Types" in the "dbx" section (well, it is here, and it works
).
also, did you setup a root password for MySQL? And also (i know this is stupid part with phpBB) did you setup a database for it to go into? I seem to remember that with phpBB you need to put a blank database there for it to install to!
try running:
That'll create a database called <dbname> for you using the root username/password. Then install to <dbname>Code:echo "create database <dbname>;" | mysql -u root -p
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327
- 09-04-2005 #3Linux Newbie
- Join Date
- Jan 2005
- Location
- Quebec, Canada
- Posts
- 100
Nope, that doesn't seem to work (although, the echo with the | is quite clever).
It seems to me that the problem is that I can't connect to my mysql server with php.
I tried this:
With no avail, it gives me this error: "Fatal error: Call to undefined function: mysql_connect() in /home/www/nikosapi/php/test.php on line 2"Code:<?php if(!($dbLink = mysql_connect("localhost", "nikosapi", "*******"))) { print("Failed to connect to database! \n"); exit(); } ?>
So, either my little php script is wrong or I have a configuration problem.
Please help,
-->Nikosapi
P.S. The only place I see mysql on the .php page with <?phpinfo();?> in it is in the "Extensions listed here are (or will be soon) available as external modules. To install one or all of these, use "urpmi" php-EXTENSION_NAME" catergory, but I have mysql installed ( version 4.0.20 ) because I am able to create tables and add users from the terminal.
- 09-04-2005 #4but have you enabled support for mysql in php? in my fedora distro I installed php and php-mysql, maybe there is a release for your distro?
Originally Posted by Nikosapi
- 09-05-2005 #5Linux Newbie
- Join Date
- Jan 2005
- Location
- Quebec, Canada
- Posts
- 100
that was the problem!
thank you,
-->Nikosapi


Reply With Quote
