Starting from scratch

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

QuickSnail
Forum Commoner
Posts: 46
Joined: Fri Dec 21, 2007 11:13 am

Starting from scratch

Post by QuickSnail »

Ok.. i have tryed tuts.. I just can't seem to get everything right or everything i need..

Heres what i have..

Apache 2.0 running.
Php 5


I need... A Nice and easy phpbb3 Forum.

I've downloaded Mysql 5.0 and 4.1 and both are ..supposley running..

But when i go to install the forum it doesn't find any mysql.

What else do i do? am i missing something?

Do i have to add an ext line like with php in the apache conf file? if so what do i add?

Do i add something to the php.ini?

I'm Starting from scratch pretty much so i need to know EVERYTHING to do. ... EVERYTHING.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You need to compile MySQL support into PHP. You need MySQL installed to do that. Now that you have that (I would recommend removing MySQL4), recompile PHP using the "--with-mysql=/path/to/mysql" directive.
(#10850)
QuickSnail
Forum Commoner
Posts: 46
Joined: Fri Dec 21, 2007 11:13 am

Post by QuickSnail »

Where would i add that?
alex.w474
Forum Newbie
Posts: 3
Joined: Wed Dec 26, 2007 11:26 am

Post by alex.w474 »

Which operation system do you use?

It you prefer to install manually, you can use the instruction http://www.witsuite.com/support/knowled ... ll-php.php.
If you want to save your time, use XAMPP software bundle or WITSuite EasyInstaller (WITSuite installation video: http://www.witsuite.com/products/installer/). It is most simple way to install Apache, PHP, MySQL on Windows.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Since PHP 5, the mysql extension was unbundled from PHP, so you need to include with php.ini like this:

Code: Select all

extension = php_mysql.dll
As far as I can remember, you may need to download the PECL binaries to get php_mysql.dll.
QuickSnail
Forum Commoner
Posts: 46
Joined: Fri Dec 21, 2007 11:13 am

Post by QuickSnail »

Ok i have added the

Code: Select all

extension = php_mysql.dll
To php.ini and php_mysql.dll is in the php folder.

Now what do i do?


alex.w474 Thanks for the help but i really don't want to have to spend money for something that is free if you know how to set it up.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Try installing the forum. If you are using PHP as an Apache module, you'll need to reboot Apache, but otherwise it should work/give a big fat error message saying dynamic library could not be loaded,
QuickSnail
Forum Commoner
Posts: 46
Joined: Fri Dec 21, 2007 11:13 am

Post by QuickSnail »

It comes out as mysql Unavailable

Code: Select all

Firebird: Unavailable 
MySQL with MySQLi Extension: Unavailable 
MySQL: Unavailable 
MSSQL Server 2000+: Unavailable 
MSSQL Server 2000+ via ODBC: Available 
Oracle: Unavailable 
PostgreSQL 7.x/8.x: Unavailable 
SQLite: Unavailable
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Have you rebooted Apache? Checked Apache's error logs?
QuickSnail
Forum Commoner
Posts: 46
Joined: Fri Dec 21, 2007 11:13 am

Post by QuickSnail »

I have rebooted apache


I don't see anything in the error log from todays date.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Wait, I am assuming Windows. Are you on Windows or Unix?
QuickSnail
Forum Commoner
Posts: 46
Joined: Fri Dec 21, 2007 11:13 am

Post by QuickSnail »

windows xp
ianhull
Forum Contributor
Posts: 310
Joined: Tue Jun 14, 2005 10:04 am
Location: Hull England UK

Post by ianhull »

Just noticed you mentioned that you said

php_mysql.dll is in the php directory,

it needs to be in the C:/php/ext directory.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

You have to move libmysql (or something similar) to the extension folder, too. Thought I should note that. What is your extensions path? Make sure that the loaded extensions are a) uncommented from the php.ini file and b) in the proper extension directory and c) you are rebooting apache after you make changes (make sure you save the changes, too!)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
QuickSnail
Forum Commoner
Posts: 46
Joined: Fri Dec 21, 2007 11:13 am

Post by QuickSnail »

My bad hit the submit button twice. (look on next page)
Last edited by QuickSnail on Fri Dec 28, 2007 11:28 am, edited 1 time in total.
Post Reply