Jump to content

Archived

This topic is now archived and is closed to further replies.

source_unknown

php cant see mysql?

Recommended Posts

Hey all Im having a bit of a problem. I have installed php5 and mysql succsessfuly but when I run phpBB instalation it tells me that I havent configured my database. Help would be apriciated. Pics below.

[URL=http://imageshack.us][IMG]http://img85.imageshack.us/img85/4513/problem1cs0.gif[/img][/URL]

[URL=http://imageshack.us][IMG]http://img166.imageshack.us/img166/4837/problem2vt0.gif[/img][/URL]

[URL=http://imageshack.us][IMG]http://img72.imageshack.us/img72/6204/problem3jr0.gif[/img][/URL]

Share this post


Link to post
Share on other sites
if this is a testing server you might try to download http://www.wampserver.com/en/ this will install php 5 along with mysql all in one go very easy on windows. It is quicker than me trying to go through it all

Share this post


Link to post
Share on other sites
oh and this also installs apache as well so everything you need all working. + if you want you can also add php 4 and switch between the two which is handy for doing some work

Share this post


Link to post
Share on other sites
Are you sure that you have selected right db type for the phpBB. it can occur problems.

Or check your php.ini file if the php_mysql or php_mysqli is enabled.

I recommend using wamp too. I have also configured my pgsql on wamp and It's really easy if you are a new to php. But most of the experienced will not recommend you installing wamp (not because they are only experienced:) because your developement environement should be like your real time server. And this pre made installers are not that good.

But try Zend Platform too. It's free for developers and very very easy.

Share this post


Link to post
Share on other sites
Yer the db type is set to 4/5  I have 5.

This is the error I get from phpmyadmin. I need to change something in the .ini but I dont know what.

[URL=http://imageshack.us][IMG]http://img116.imageshack.us/img116/5728/untitled1oc2.gif[/img][/URL]

Share this post


Link to post
Share on other sites
in the ini file find "extension=php_mysql.dll" and enable it by removing the semi colon (;) before it.

Share this post


Link to post
Share on other sites
i installed WAMP seperately using this tutorial

[url=http://www.puremango.co.uk/cm_wamp_97.php]http://www.puremango.co.uk/cm_wamp_97.php[/url]

I downloaded phpMAdmin and installed using this tutorial

[url=http://www.ubbcentral.com/resources/PhPMyAdmin.html]http://www.ubbcentral.com/resources/PhPMyAdmin.html[/url]

I haven't had any problems using these 2 tutorials and it all works perfectly

Share this post


Link to post
Share on other sites
Did you absolutely have to post all of those images? >:(

You could at least have posted thumbnails that linked to the full-sized image.

Share this post


Link to post
Share on other sites
It works fine now, thanks for the help.  One last thing.

My sites is  www.########.com  so when I go to my site it opens the index.html file. Thats what it is sposed to do... I dont want my site anymore I just want my phpbb forum.  I dont know how to tell apache that I dont want to open a index.html  I want it to open a index.php file.  How do i tell apache because even if I set my root to /phpbb it opens all the .php files    like config.php and help.php  but in a hirachy type thing. I just dont want to keep going to www.*******.com/phpbb2/index.php

Share this post


Link to post
Share on other sites
in you httpd.conf file look for this

[code]<IfModule mod_dir.c>
    DirectoryIndex index.html index.php
</IfModule>[/code]

then just take out index.html

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.