LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-11-2005, 11:43 PM   #1
Nelsond
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Problems installing MySql & PHP from rpms?


I am new to Fedora 3 and trying to get my way around it. I am trying to install mysql-server, mysql-client, and php from rpms. i have checked and and can confirm that i have all these rpms on my machine. i am however not able to able to install and start any of these services despite repeated trials to run the appropriate install commands. I did log on as super user and am tearing my hair off trying to figure this out. Please help! when i use YUM it asks for gpg keys. when i try to do the # mysql_install_db it asks me to "make install" first before running this script.
 
Old 08-11-2005, 11:58 PM   #2
jayemef
Member
 
Registered: Aug 2005
Location: Juniata College, PA
Distribution: Ubuntu, Slackware
Posts: 67

Rep: Reputation: 15
Both PHP and MySQL come with FC3, so you may already have them installed (though they are not the most current versions). You can check with
Code:
$ rpm -q mysql
$ rpm -q php
If you have MySQL, you can start it with
Code:
# /etc/init.d/mysqld start
If one or neither of these packages are installed, you can install them with your Fedora installation discs and system-config-packages.

As for yum, I strongly suggest checking the FAQ on how to set it up (note: link is for FC3).

Last edited by jayemef; 08-11-2005 at 11:59 PM.
 
Old 08-12-2005, 09:59 AM   #3
Nelsond
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Problems starting mysql, Apache and PHP

Thanks for the reply. I tried the suggestions you gave me and i was able to confirm that both mysql and php are installed on my computer. I cannot get mysql started however because i think i have it in a different folder than your solution suggested. i also get the error 2002 message, "Cant connect to the local mysql server through the socket /var/lib/mysql/mysql.sock".

I also searched for the location of mysql and i find it is in /usr/bin/mysql also in /usr/lib/mysql and also usr/share/mysql.

where do i start? how do i get mysql to start?

nelson
 
Old 08-12-2005, 11:09 AM   #4
Nelsond
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
i might have spotted the problem..still no solution

i found out that i do not have mysqld file in the init.d folder because 1. i looked for it there and it is not there 2. when i run the /etc/init.d/mysqld start script, it says no such directory found. Now question is:
how do i get the mysqld file and put it in the init.d folder? any help will be greatly appreaciated. i am begginig to get an even better grasp of how FC3 is organized/works.
thanks
nelson
 
  


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
Get PHP , MySQL and Apache RPMS manhcuong Linux - Software 6 12-04-2005 03:59 PM
MySQL & pgSQL problems w/ PHP dolvmin Linux - Software 2 10-28-2005 10:36 PM
problems in installing php with mysql krunal Linux - Newbie 3 08-18-2005 08:38 AM
problems installing MySQL & PHP on FC4 alpineedge3 Linux - Newbie 9 07-23-2005 05:00 PM
Installing Apache,MySQL&PHP on Linux foo_mulan Linux - Newbie 1 07-16-2004 01:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 07:31 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