Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old April 16th, 2006   #1
Gaia
5 Cups of Ubuntu
 
Join Date: Apr 2006
Beans: 39
Ubuntu Breezy 5.10
configuring php5 to use mysql

hi,

I installed PHP5, MySQL 4.1 and Apache2. It says that PHP5 doesn't have MySQL enabled by default so i was wondering what I need to edit/do inorder to enable MySQL with PHP5?

Thanks.
Gaia is offline   Reply With Quote
Old April 16th, 2006   #2
gmclachl
Way Too Much Ubuntu
 
Join Date: Feb 2006
Beans: 221
Kubuntu Karmic Koala (testing)
Re: configuring php5 to use mysql

sudo apt-get install php5-mysql

George
gmclachl is offline   Reply With Quote
Old April 16th, 2006   #3
Gaia
5 Cups of Ubuntu
 
Join Date: Apr 2006
Beans: 39
Ubuntu Breezy 5.10
Re: configuring php5 to use mysql

Thanks George.

I seem to have another problem though. Apache2 seems to be working, but when i go to localhost and click a php file it keeps asking me where i want to save it/open it with rather then just running the actual file.

MySQL seems to work as i can connect using the MySQL Administrator i installed. But PHP won't seem to work...

Any suggestions?

Thanks.
Gaia is offline   Reply With Quote
Old April 16th, 2006   #4
gmclachl
Way Too Much Ubuntu
 
Join Date: Feb 2006
Beans: 221
Kubuntu Karmic Koala (testing)
Re: configuring php5 to use mysql

Hmmm, libapache2-mod-php5 is also installed when you get php5. So that should work.

Have you tried
sudo a2enmod php5

George
gmclachl is offline   Reply With Quote
Old April 16th, 2006   #5
Gaia
5 Cups of Ubuntu
 
Join Date: Apr 2006
Beans: 39
Ubuntu Breezy 5.10
Re: configuring php5 to use mysql

hey,

Thanks, it said that it was installed and that i just needed to force a reload of apache2.

Seems to be working fine now, thanks!
Gaia is offline   Reply With Quote
Old April 24th, 2006   #6
lamorack
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 1
Re: configuring php5 to use mysql

Quote:
Originally Posted by gmclachl
sudo apt-get install php5-mysql

George

Is there any problem using this command in a PHP5+Apache2+MySQL5 environment??

Im not sure, because the command tries to install mysql-common...

Any comment about it? Can mysql-common crash the MySQL5 installation?

Thanks, forum!
lamorack is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:44 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry