LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-13-2004, 11:15 PM   #1
Stryks
LQ Newbie
 
Registered: Oct 2004
Posts: 11

Rep: Reputation: 0
Configuring Apache, PHP AND mySql


In another thread I was looking at which mySQL installation I should use for my system (red hat 9) as Apache and PHP were pre-installed.

I decided on the binaries package and installed it. I've been really stuck ever since.

I installed it using the instructions provided, but from the first time I ran it its been nothing but a hassle. I cant stop it for one thing. I rebooted and it wasnt running, but then for some reason I cant run the files anymore. I go to the directory where it is installed and run mysqld_safe as instructed in the documentation and it just says bash: mysqld_safe: command not found. I can see it though ... its in the directory I am calling it from.

I can get Webmin to start it and stop it on occasion, but not always.

I logged in as root and got the same thing.

Then, I found that php isn't loading the mysql libraries so I cant access any databases through PHP which was the prupose of the whole excersise.

I'm just stumped guys ... I really am. Can anybody throw be a line here?

Thanks
 
Old 10-14-2004, 01:09 AM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Did you install the default databases?

Also try:

./mysql_safe

And check your /etc/my.cnf file

Last edited by DaHammer; 10-14-2004 at 01:10 AM.
 
Old 10-14-2004, 02:02 AM   #3
Stryks
LQ Newbie
 
Registered: Oct 2004
Posts: 11

Original Poster
Rep: Reputation: 0
Ok. I didnt have a my.cnf file, so I used the example file my-medium.cnf and saved it there as my.cnf

I'm a little unsure of how to even start it.

There is a file called mysqld_safe in the bin directory (/usr/local/mysql/bin) but as I mentioned, I cannot just boot the machine, go into a terminal window and run the file. It just says that the command was not found.

There was a procedure I was supposed to follow to get the server to start on reboot, which I did, but it doesnt seem to be running when it boots.

What is the difference between mysqld and mysqld_safe anyhow?

Hope you can shed some light on this for me.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configuring php for apache PennyroyalFrog Linux - Newbie 3 02-07-2008 11:58 PM
configuring apache, php mjl3434 Linux - Software 4 09-22-2005 06:49 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
Configuring PHP with MySQL pembo13 Linux - Software 5 09-24-2003 06:07 PM
configuring PHP with MYSQL saravanan1979 Linux - Software 0 11-07-2002 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration