Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > Database & Database Programming

Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC).

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-19-2008, 11:35 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Compile MySQL post Install?

Has anyone configured MYSQL with PHP after they are both already installed? I found that installing a simple LAMP server on ubuntu 8.10 is not so simple, the php doesnt even come with a php.ini file, but john helped me with that one. I am however having problems getting MySQL to work. I know how to compile it when im installing everything, but how about once they are already installed? Im a bit scared to uninstall anything, it was crazy hard to get it to all work together as it is.

Justin
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 08-20-2008, 07:30 AM
morefood2001's Avatar   
morefood2001 morefood2001 is offline
Guru
 
Join Date: Jan 2008
Location: Western New York
Posts: 1,415
Last Blog:
VPS Hosting with Revie...
Rep Power: 16
morefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nice
Send a message via AIM to morefood2001 Send a message via MSN to morefood2001 Send a message via Yahoo to morefood2001 Send a message via Skype™ to morefood2001
Default Re: Compile MySQL post Install?

I normally use apt-get commands to install php, php-mysql, mysql-client, mysql-server. Apt-get does the rest of the configuration.

It sounds like you did a manual compile, but version 8.10 doesn't exist, are you using 8.04 or 7.10? If you compiled manually, you need to go into the php.ini and enable the php-mysql extension. If you didn't install the module files, you are going to have to recompile php with mysql support.

I trust that mysql works correctly out of the box as I have never had to configure it, even after a build compile.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 08-20-2008, 11:27 AM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: Compile MySQL post Install?

Quote:
Originally Posted by morefood2001 View Post
I normally use apt-get commands to install php, php-mysql, mysql-client, mysql-server. Apt-get does the rest of the configuration.

It sounds like you did a manual compile, but version 8.10 doesn't exist, are you using 8.04 or 7.10? If you compiled manually, you need to go into the php.ini and enable the php-mysql extension. If you didn't install the module files, you are going to have to recompile php with mysql support.

I trust that mysql works correctly out of the box as I have never had to configure it, even after a build compile.
It seems that LAMP for 8.10 is pretty much screwed, unless its installed on 7.04 then you upgrade your OS.

I installed it just like you said, and also tried it with the SPM, neither provided the php.ini file where it should be, I did however manage to restore that, but not the MySQL support.

Heh, I VNC'd to my pc from work and copied the php.ini to php.txt in the public_html folder, lol.
http://68.165.192.156/php.txt
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 08-20-2008, 12:45 PM
morefood2001's Avatar   
morefood2001 morefood2001 is offline
Guru
 
Join Date: Jan 2008
Location: Western New York
Posts: 1,415
Last Blog:
VPS Hosting with Revie...
Rep Power: 16
morefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nice
Send a message via AIM to morefood2001 Send a message via MSN to morefood2001 Send a message via Yahoo to morefood2001 Send a message via Skype™ to morefood2001
Default Re: Compile MySQL post Install?

Mysql is enabled in php from that txt file.

Apt get makes most everything easier and does the configuration for you, so you don't have to think lol. Why not attempt uninstalling it? I'm sure there must be a way to uninstall it.

If not, just try installing it from apt-get, I'm sure the server will fix the conf files to point to the apt-get install version.

If you aren't that far into configuring the server, perhaps starting over is the best way. To install apache, I believe its apt-get install httpd or apache2. In centos, I know that will also enable service restart httpd (a command I frequently use lol).

Hope this helps!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 08-20-2008, 01:02 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: Compile MySQL post Install?

I have un installed it and installed it, every way I can think of, apt-get, and even the install manager.

The installs arent meant for ubuntu 8.10 is my guess...
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 08-20-2008, 01:04 PM
morefood2001's Avatar   
morefood2001 morefood2001 is offline
Guru
 
Join Date: Jan 2008
Location: Western New York
Posts: 1,415
Last Blog:
VPS Hosting with Revie...
Rep Power: 16
morefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nice
Send a message via AIM to morefood2001 Send a message via MSN to morefood2001 Send a message via Yahoo to morefood2001 Send a message via Skype™ to morefood2001
Default Re: Compile MySQL post Install?

Thats strange. Must be since you already compiled it, apt-get won't let you uninstall it.

Try apt-get remove php etc. See if its already installed. Feel free to contact me when I get on IM later tonight (I'm kind of on the road atm), maybe I can help you then
__________________
Phil Matuskiewicz
My Personal Website My Other Website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 08-20-2008, 03:40 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: Compile MySQL post Install?

I have removed MySQL and PHP multiple times, and each time I do a complete install, it wont install the php.ini file. which puts me back to step 1.

I didnt even know php would work without php.ini. lol

php.ini is fixed tho, its about getting php to work with MySQL
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 08-20-2008, 06:00 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 886
Last Blog:
Programming "Just a ...
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default Re: Compile MySQL post Install?

is it possible to downgrade ubuntu? lol
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 08-20-2008, 07:00 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,433
Last Blog:
Google Web Toolkit
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Re: Compile MySQL post Install?

As mentioned last month (when you first started setting up a LAMP), why not compile it from source?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 08-20-2008, 09:15 PM
morefood2001's Avatar   
morefood2001 morefood2001 is offline
Guru
 
Join Date: Jan 2008
Location: Western New York
Posts: 1,415
Last Blog:
VPS Hosting with Revie...
Rep Power: 16
morefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nicemorefood2001 is just really nice
Send a message via AIM to morefood2001 Send a message via MSN to morefood2001 Send a message via Yahoo to morefood2001 Send a message via Skype™ to morefood2001
Default Re: Compile MySQL post Install?

Quote:
Originally Posted by John View Post
As mentioned last month (when you first started setting up a LAMP), why not compile it from source?
I rarely have luck building from source, but I would recommend it at this point.
__________________
Phil Matuskiewicz
My Personal Website My Other Website
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial: Storing Images in MySQL with PHP Jordan PHP Tutorials 13 09-23-2008 07:11 PM
MYSQL CheatSheet - A must for MySQL Users reachpradeep Database & Database Programming 1 03-03-2007 04:05 PM
MySQL Resources dirkfirst Database & Database Programming 1 05-25-2006 03:31 AM


All times are GMT -5. The time now is 11:50 AM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 97%

Ads